[kaffe] configure failure on AIX

Riccardo Mottola rollei at tiscalinet.it
Thu Oct 28 01:41:59 PDT 2004


Hey,

look at this nice error message that makes configure abort!

...
checking for off_t... yes
checking for pid_t... yes
checking alignment of void*... configure: error: Unexpected result

in config.log I see:

configure:30764: gcc -o conftest -g -O2 -Wno-import -Wchar-subscripts
-Wcomment -Wformat=2 -Wimplicit-int -Wmain -Wmissing-braces -Wmultichar
-Wparentheses -Wreturn-type -Wswitch -Wtrigraphs -W -Wundef -Wshadow
-Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align
-Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wmissing-noreturn -Wredundant-decls -Wnested-externs -Winline
-Wlong-long -fsigned-char -mpowerpc -D_THREAD_SAFE   -DKAFFE_VMDEBUG 
conftest.c   >&5
In file included from conftest.c:38:
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/stdio.h:396:
warning: redundant redeclaration of `fgetpos64' in same scope
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/stdio.h:250:
warning: previous declaration of `fgetpos64'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/stdio.h:397:
warning: redundant redeclaration of `fopen64' in same scope
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/stdio.h:220:
warning: previous declaration of `fopen64'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/stdio.h:398:
warning: redundant redeclaration of `freopen64' in same scope
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/stdio.h:221:
warning: previous declaration of `freopen64'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/stdio.h:399:
warning: redundant redeclaration of `fseeko64' in same scope
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/stdio.h:392:
warning: previous declaration of `fseeko64'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/stdio.h:400:
warning: redundant redeclaration of `fsetpos64' in same scope
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/stdio.h:252:
warning: previous declaration of `fsetpos64'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/stdio.h:401:
warning: redundant redeclaration of `ftello64' in same scope
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/include/stdio.h:393:
warning: previous declaration of `ftello64'
conftest.c:39: warning: return-type defaults to `int'
conftest.c:39: warning: function declaration isn't a prototype
conftest.c: In function `main':
conftest.c:44: warning: function might be possible candidate for
attribute `noreturn'
configure:30767: $? = 0
configure:30769: ./conftest
/mnt_nfs/kaffe_cvs/kaffe/configure[30770]: 13106 Illegal
instruction(coredump)
configure:30772: $? = 132
configure: program exited with status 132
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "Kaffe Virtual Machine"
| #define PACKAGE_TARNAME "kaffe"
| #define PACKAGE_VERSION "1.1.x-cvs"
| #define PACKAGE_STRING "Kaffe Virtual Machine 1.1.x-cvs"
| #define PACKAGE_BUGREPORT "kaffe at kaffe.org"
| #define PACKAGE "kaffe"
| #define VERSION "1.1.x-cvs"
| #define HAVE_GNUC25_ATTRIB
| #define HAVE_GNUC25_ALWAYS_INLINE
| #define HAVE_GNUC25_CONST
| #define HAVE_GNUC25_PRINTFFORMAT
| #define HAVE_GNUC25_NORETURN
| #define HAVE_GNUC25_PACKED
| #define HAVE_GNUC25_UNUSED
| #define _LARGE_FILES 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define KAFFE_LOCALEDIR "NONE/share/locale"
| #define HAVE_LC_MESSAGES 1
| #define PTHREAD_CREATE_JOINABLE $ok
| #define ARCHOS "powerpc-aix"
| #define SIZEOF_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF___INT64 0
| #define SIZEOF_VOIDP 4
| /* end confdefs.h.  */
| #include <stdio.h>
| main() { struct { char c; void *p; } t; FILE *f;
|   if ((char*) &t.c != (char*) &t)  exit (1);
|   f=fopen ("conftestdata", "w");
|   if (! f)                         exit (1);
|   fprintf (f, "%d", ((char*) &t.p)-((char*) &t));
|   fclose(f); exit (0); }
configure:30781: error: Unexpected result

-Riccardo





More information about the kaffe mailing list