public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Unable to build gcc on AIX 5.3
@ 2006-10-05 17:58 Ray Gebbie
  2006-10-05 18:04 ` Ferng, Andrew D
  2006-10-05 18:45 ` David Edelsohn
  0 siblings, 2 replies; 3+ messages in thread
From: Ray Gebbie @ 2006-10-05 17:58 UTC (permalink / raw)
  To: gcc-help


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
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.

I have seen postings about the setset64_t errors, and they mention the
-npowerpc compiler flag, but since I am not able to build the compiler,
that info does not help.

Thanks.

Ray Gebbie
Federated Systems Group
San Francisco, CA 94102
415-422-1662

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Unable to build gcc on AIX 5.3
  2006-10-05 17:58 Unable to build gcc on AIX 5.3 Ray Gebbie
@ 2006-10-05 18:04 ` Ferng, Andrew D
  2006-10-05 18:45 ` David Edelsohn
  1 sibling, 0 replies; 3+ messages in thread
From: Ferng, Andrew D @ 2006-10-05 18:04 UTC (permalink / raw)
  To: gcc-help

http://aixpdslib.seas.ucla.edu/packages/gcc.html 

I used the binaries from UCLA and it worked well so you might want to
try that if you don't need any special compile options.




-----Original Message-----
From: Ray Gebbie [mailto:Ray.Gebbie@fds.com] 
Sent: Thursday, October 05, 2006 10:58 AM
To: gcc-help@gcc.gnu.org
Subject: Unable to build gcc on AIX 5.3


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
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.

I have seen postings about the setset64_t errors, and they mention the
-npowerpc compiler flag, but since I am not able to build the compiler,
that info does not help.

Thanks.

Ray Gebbie
Federated Systems Group
San Francisco, CA 94102
415-422-1662

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Unable to build gcc on AIX 5.3
  2006-10-05 17:58 Unable to build gcc on AIX 5.3 Ray Gebbie
  2006-10-05 18:04 ` Ferng, Andrew D
@ 2006-10-05 18:45 ` David Edelsohn
  1 sibling, 0 replies; 3+ messages in thread
From: David Edelsohn @ 2006-10-05 18:45 UTC (permalink / raw)
  To: Ray Gebbie; +Cc: gcc-help

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-05 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-05 17:58 Unable to build gcc on AIX 5.3 Ray Gebbie
2006-10-05 18:04 ` Ferng, Andrew D
2006-10-05 18:45 ` David Edelsohn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).