AIX 5.3 gcc 4.1.2 bootstrap error

Jonathan Saxton jsaxton@appsecinc.com
Tue Mar 18 16:44:00 GMT 2008


Brian:

Yes I knew about that and I had been careful to supply the appropriate
"--with" options to the configure script.  What I didn't know was how
aggressive the stage 3 configuration was in searching for the gnu tools.  I
only discovered the problem because I just happened to be watching the
screen at the moment stage 3 started.  Of course everything scrolled off too
quickly for me to read but a repeat of the build piped through tee showed
"Target ld ..." and "Target as ..." to be something other than the native
AIX tools.  I purged all traces of binutils and everything worked.

Subsequently I did restore cxxfilt because that is useful and harmless but I
think a warning should be added to the text which you mentioned.


-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Brian Dessent
Sent: 18 March, 2008 10:41
To: Jonathan Saxton
Cc: 'Ben Scurr'; gcc-help@gcc.gnu.org
Subject: Re: AIX 5.3 gcc 4.1.2 bootstrap error

Jonathan Saxton wrote:
> 
> I had lots of difficulty building 4.2.2 on AIX 5.2.  Problem turned out to
> be binutils.  I found that I had to delete binutils altogether.  It was
not
> sufficient to use the make options to specify the native versions of ld
and

For what it's worth gcc documents this requirement:
<http://gcc.gnu.org/install/specific.html#x-ibm-aix>

quote:

> The native as and ld are recommended for bootstrapping on AIX 4 and 
> required for bootstrapping on AIX 5L. The GNU Assembler reports that it 
> supports WEAK symbols on AIX 4, which causes GCC to try to utilize weak 
> symbol functionality although it is not supported. The GNU Assembler and 
> Linker do not support AIX 5L sufficiently to bootstrap GCC. The native 
> AIX tools do interoperate with GCC.

Brian



More information about the Gcc-help mailing list