Problom compiling gcc 2.95.1 on AIX 4.3.2
Jeremy W. Murphy
jwm@amc.com.au
Wed Oct 13 22:31:00 GMT 1999
At 12:23 13/10/1999 +0200, you wrote:
>When I try to compile gcc 2.95.1 on AIX 4.3 I get the following error
>message:
>
>gcc -DIN_GCC -DHAIFA -g -DHAVE_CONFIG_H -I. -I. -I./config
-I./../includ
>e \
>-DTARGET_MACHINE=\"powerpc-ibm-aix4.3.2.0\" -DUSE_COLLECT2 \
>-c `echo ./collect2.c | sed 's,^\./,,'`
>In file included from collect2.c:98:
>/usr/include/ldfcn.h:47: #error -qlonglong must be used
>gmake[2]: *** [collect2.o] Error 1
>gmake[2]: Leaving directory `/src/gcc-2.95.1/gcc'
>gmake[1]: *** [bootstrap] Error 2
>gmake[1]: Leaving directory `/src/gcc-2.95.1/gcc'
>gmake: *** [bootstrap] Error 2
>r
Hahah, yes, same thing happened to me. I did solve it easily enough, by
defining a particular macro that tells the AIX headers that your compiler
supports long long int. Look in ldfcn.h on line 46 or so for the #ifdef
_LONG_LONG (or something), then make with CPPFLAGS=-D_LONG_LONG or add
#define _LONG_LONG
to the config.h file.
Can anyone tell us if it is a bug in gcc, that it does not define this
macro by itself on AIX? There you go, cheers.
Jeremy
More information about the Gcc-help
mailing list