Unable to build gcc on AIX 5.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am getting the following errors:

        gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I/home/b06reg/sources/gcc-4.0.2
/libiberty/../include  -W -Wall -Wtraditional -pedantic
/home/b06reg/sources/gcc-4.0.2/libiberty/cplus-dem.c -o ./cplus-dem.o
In file included from /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/3.0.1
/include/sys/signal.h:309,
                 from /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/3.0.1
/include/sys/wait.h:62,
                 from /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/3.0.1
/include/stdlib.h:235,
                 from /home/b06reg/sources/gcc-4.0.2
/libiberty/cplus-dem.c:53:
/usr/include/sys/context.h:173: parse error before "sigset64_t"
/usr/include/sys/context.h:176: parse error before '}' token


	The problem is that you are trying to run GCC built for AIX 4.3.2
(note the powerpc-ibm-aix4.3.2.0 in the path) on AIX 5.3.  GCC uses cached
copies of header files that it "fixes".  If there is no change, no header
file is cached.  This causes a sequence of included header files to thread
between GCC's copy and the system header files.  Different releases of AIX
change the header files in ways that one cannot mix them.

	To bootstrap a newer version of GCC on a newer release of AIX, the
solution is to delete the GCC header file cache FOR THE SOLE PURPOSE OF
BUILDING GCC.  Do not use GCC in that state for any other purpose than
building and immediately installing the new version of GCC.  Do not
complain to me or anyone else if that warning is ignored.

David



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux