public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* AIX 5.3 gcc 4.1.2 bootstrap error
@ 2008-02-14 12:43 Ben Scurr
  2008-02-14 13:44 ` Ralf Wildenhues
  2008-03-18 14:15 ` Jonathan Saxton
  0 siblings, 2 replies; 6+ messages in thread
From: Ben Scurr @ 2008-02-14 12:43 UTC (permalink / raw)
  To: gcc-help

I was wondering if anyone could help me as I'm at my wits end regarding 
building gcc on AIX. I have the toolkit version of gcc 4.0.0 installed 
(and associated binutils) and I am trying to build version 4.1.2 
(preferable 4.2.x, but I have other build issues on that version). My 
configuration is as follows:

# oslevel -r
5300-04

# gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../configure --with-as=/usr/bin/as 
--with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ 
--prefix=/opt/freeware --enable-threa
ds --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.0.0

# gmake -v
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

configuration of gcc:
../gcc-4.1.2/configure --prefix=/tools/gcc-4.1.2 
--enable-languages=c,c++ --disable-nls --disable-shared 
--with-as=/usr/bin/as --with-ld=/usr/bin/ld

during the bootstrap I get:

gmake[2]: Entering directory `/tmp/gcc-b/t/gcc'
gmake \
  CFLAGS="-g -O2  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros 
-Wold-style-definiti
on -Wmissing-format-attribute  " \
  CONFIG_H="config.h  auto-host.h 
../../gcc-4.1.2/gcc/../include/ansidecl.h" \
  MAKEOVERRIDES= \
  -f libgcc.mk all
gmake[3]: Entering directory `/tmp/gcc-b/t/gcc'
/tmp/gcc-b/t/./gcc/xgcc -B/tmp/gcc-b/t/./gcc/ 
-B/tools/gcc-4.1.2/powerpc-ibm-aix5.3.0.0/bin/ 
-B/tools/gcc-4.1.2/powerpc-ibm-aix5.3.0.0/lib/ -isystem /
tools/gcc-4.1.2/powerpc-ibm-aix5.3.0.0/include -isystem 
/tools/gcc-4.1.2/powerpc-ibm-aix5.3.0.0/sys-include -O2  -O2 -g -O2   
-DIN_GCC    -W -Wall -Ww
rite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wold-style-definition  -isystem ./include  -mlong-double-128 -g 
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC
2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-4.1.2/gcc 
-I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include 
-I../../gcc-4.1.2/gcc/../libcpp/inc
lude  -DL_muldi3 -c ../../gcc-4.1.2/gcc/libgcc2.c -o libgcc/./_muldi3.o
cc1: error: unrecognized command line option "-quiet"
cc1: error: unrecognized command line option "-I."
cc1: error: unrecognized command line option "-I."
cc1: error: unrecognized command line option "-I../../gcc-4.1.2/gcc"
cc1: error: unrecognized command line option "-I../../gcc-4.1.2/gcc/."
cc1: error: unrecognized command line option 
"-I../../gcc-4.1.2/gcc/../include"
cc1: error: unrecognized command line option 
"-I../../gcc-4.1.2/gcc/../libcpp/include"
cc1: error: unrecognized command line option "-DIN_GCC"
cc1: error: unrecognized command line option "-DHAVE_GTHR_DEFAULT"
cc1: error: unrecognized command line option "-DIN_LIBGCC2"
cc1: error: unrecognized command line option "-D__GCC_FLOAT_NOT_NEEDED"
cc1: error: unrecognized command line option "-DL_muldi3"
cc1: error: unrecognized command line option "-quiet"
cc1: error: unrecognized command line option "-dumpbase"
cc1: error: unrecognized command line option "-mlong-double-128"
cc1: error: unrecognized command line option "-auxbase-strip"
cc1: error: unrecognized command line option "-g"
cc1: error: unrecognized command line option "-g"
cc1: error: unrecognized command line option "-O2"
cc1: error: unrecognized command line option "-O2"
cc1: error: unrecognized command line option "-O2"
cc1: error: unrecognized command line option "-W"
cc1: error: unrecognized command line option "-Wall"
cc1: error: unrecognized command line option "-Wwrite-strings"
cc1: error: unrecognized command line option "-Wstrict-prototypes"
cc1: error: unrecognized command line option "-Wmissing-prototypes"
cc1: error: unrecognized command line option "-Wold-style-definition"
cc1: error: unrecognized command line option "-o"
cc1: warning: -Wformat-nonliteral ignored without -Wformat
cc1: warning: -Wformat-security ignored without -Wformat

Execution times (seconds)
 TOTAL                 :   0.00             0.00             
0.00                  0 kB
gmake[3]: *** [libgcc/./_muldi3.o] Error 1
gmake[3]: Leaving directory `/tmp/gcc-b/t/gcc'
gmake[2]: *** [stmp-multilib] Error 2
gmake[2]: Leaving directory `/tmp/gcc-b/t/gcc'
gmake[1]: *** [all-gcc] Error 2
gmake[1]: Leaving directory `/tmp/gcc-b/t'
gmake: *** [all] Error 2
#

I have tried bootstrapping 4.1.2, 4.1.1 and even 4.0.1, all of which 
have recorded successful builds on the gcc website on AIX, yet all of 
them fail in the same way on my machine. Can anyone help please?

Regards

Ben

-- 
Ben Scurr
Development Engineer             
World Programming Ltd.     Web: www.teamwpc.co.uk
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to be disclosed to anyone other than the addressee. Unauthorised recipients are requested to preserve this confidentiality and to advise the sender immediately of any error in transmission.



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

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

* Re: AIX 5.3 gcc 4.1.2 bootstrap error
  2008-02-14 12:43 AIX 5.3 gcc 4.1.2 bootstrap error Ben Scurr
@ 2008-02-14 13:44 ` Ralf Wildenhues
  2008-02-19 17:03   ` Thomas Mittelstaedt
  2008-03-18 14:15 ` Jonathan Saxton
  1 sibling, 1 reply; 6+ messages in thread
From: Ralf Wildenhues @ 2008-02-14 13:44 UTC (permalink / raw)
  To: Ben Scurr; +Cc: gcc-help

Hello Ben,

* Ben Scurr wrote on Thu, Feb 14, 2008 at 01:43:11PM CET:
>
> # gcc -v
> Using built-in specs.
> Target: powerpc-ibm-aix5.3.0.0
> Configured with: ../configure --with-as=/usr/bin/as  

I do not know whether it has to do with your issue, but your build tree
should be separate from your source tree, and it also should not be a
subdir of your source tree.

Cheers,
Ralf

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

* Re: AIX 5.3 gcc 4.1.2 bootstrap error
  2008-02-14 13:44 ` Ralf Wildenhues
@ 2008-02-19 17:03   ` Thomas Mittelstaedt
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Mittelstaedt @ 2008-02-19 17:03 UTC (permalink / raw)
  To: Ralf Wildenhues; +Cc: Ben Scurr, gcc-help

Ben,

I had success building gcc 4.2.2 on aix 5.2 recently via the following 
script:

CONFIG_SHELL=/usr/bin/bash
CC=/opt/gcc-4.1.1/bin/gcc # path to the bootstrap compiler

../gcc-4.2.2/configure --enable-version-specific-runtime-libs 
--enable-static --
enable-shared --enable-threads --with-as=/usr/bin/as --without-gnu-ld 
--with-ld=
/usr/bin/ld --prefix=/opt/gcc-4.2.2 --disable-nls --with-pic 
--disable-symvers -
-enable-symvers=no --enable-languages=c,c++,objc

make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-i
mplicit-templates' bootstrap


Ralf Wildenhues schrieb:
> Hello Ben,
>
> * Ben Scurr wrote on Thu, Feb 14, 2008 at 01:43:11PM CET:
>   
>> # gcc -v
>> Using built-in specs.
>> Target: powerpc-ibm-aix5.3.0.0
>> Configured with: ../configure --with-as=/usr/bin/as  
>>     
>
> I do not know whether it has to do with your issue, but your build tree
> should be separate from your source tree, and it also should not be a
> subdir of your source tree.
>
> Cheers,
> Ralf
>   

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

* RE: AIX 5.3 gcc 4.1.2 bootstrap error
  2008-02-14 12:43 AIX 5.3 gcc 4.1.2 bootstrap error Ben Scurr
  2008-02-14 13:44 ` Ralf Wildenhues
@ 2008-03-18 14:15 ` Jonathan Saxton
  2008-03-18 14:41   ` Brian Dessent
  1 sibling, 1 reply; 6+ messages in thread
From: Jonathan Saxton @ 2008-03-18 14:15 UTC (permalink / raw)
  To: 'Ben Scurr', gcc-help

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
as because the stage 3 build process would drill down through the installed
tools and will find and use the Gnu versions.  The result was a compiler
which would not link anything which used STL (libstdc++.a)

I got rid of binutils, did a full bootstrap, and everything worked.

And without binutils you don't need the options for ld and as at all.

Hope this helps.  I was stuck on this for weeks.  (For what it is worth the
compiler could build itself so it wasn't necessary to go back to 4.0.0 to do
the bootstrap.)


-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Ben Scurr
Sent: 14 February, 2008 07:43
To: gcc-help@gcc.gnu.org
Subject: AIX 5.3 gcc 4.1.2 bootstrap error

I was wondering if anyone could help me as I'm at my wits end regarding 
building gcc on AIX. I have the toolkit version of gcc 4.0.0 installed 
(and associated binutils) and I am trying to build version 4.1.2 
(preferable 4.2.x, but I have other build issues on that version). My 
configuration is as follows:

# oslevel -r
5300-04

# gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../configure --with-as=/usr/bin/as 
--with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ 
--prefix=/opt/freeware --enable-threa
ds --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.0.0

# gmake -v
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

configuration of gcc:
../gcc-4.1.2/configure --prefix=/tools/gcc-4.1.2 
--enable-languages=c,c++ --disable-nls --disable-shared 
--with-as=/usr/bin/as --with-ld=/usr/bin/ld

during the bootstrap I get:

gmake[2]: Entering directory `/tmp/gcc-b/t/gcc'
gmake \
  CFLAGS="-g -O2  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros 
-Wold-style-definiti
on -Wmissing-format-attribute  " \
  CONFIG_H="config.h  auto-host.h 
../../gcc-4.1.2/gcc/../include/ansidecl.h" \
  MAKEOVERRIDES= \
  -f libgcc.mk all
gmake[3]: Entering directory `/tmp/gcc-b/t/gcc'
/tmp/gcc-b/t/./gcc/xgcc -B/tmp/gcc-b/t/./gcc/ 
-B/tools/gcc-4.1.2/powerpc-ibm-aix5.3.0.0/bin/ 
-B/tools/gcc-4.1.2/powerpc-ibm-aix5.3.0.0/lib/ -isystem /
tools/gcc-4.1.2/powerpc-ibm-aix5.3.0.0/include -isystem 
/tools/gcc-4.1.2/powerpc-ibm-aix5.3.0.0/sys-include -O2  -O2 -g -O2   
-DIN_GCC    -W -Wall -Ww
rite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wold-style-definition  -isystem ./include  -mlong-double-128 -g 
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC
2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-4.1.2/gcc 
-I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include 
-I../../gcc-4.1.2/gcc/../libcpp/inc
lude  -DL_muldi3 -c ../../gcc-4.1.2/gcc/libgcc2.c -o libgcc/./_muldi3.o
cc1: error: unrecognized command line option "-quiet"
cc1: error: unrecognized command line option "-I."
cc1: error: unrecognized command line option "-I."
cc1: error: unrecognized command line option "-I../../gcc-4.1.2/gcc"
cc1: error: unrecognized command line option "-I../../gcc-4.1.2/gcc/."
cc1: error: unrecognized command line option 
"-I../../gcc-4.1.2/gcc/../include"
cc1: error: unrecognized command line option 
"-I../../gcc-4.1.2/gcc/../libcpp/include"
cc1: error: unrecognized command line option "-DIN_GCC"
cc1: error: unrecognized command line option "-DHAVE_GTHR_DEFAULT"
cc1: error: unrecognized command line option "-DIN_LIBGCC2"
cc1: error: unrecognized command line option "-D__GCC_FLOAT_NOT_NEEDED"
cc1: error: unrecognized command line option "-DL_muldi3"
cc1: error: unrecognized command line option "-quiet"
cc1: error: unrecognized command line option "-dumpbase"
cc1: error: unrecognized command line option "-mlong-double-128"
cc1: error: unrecognized command line option "-auxbase-strip"
cc1: error: unrecognized command line option "-g"
cc1: error: unrecognized command line option "-g"
cc1: error: unrecognized command line option "-O2"
cc1: error: unrecognized command line option "-O2"
cc1: error: unrecognized command line option "-O2"
cc1: error: unrecognized command line option "-W"
cc1: error: unrecognized command line option "-Wall"
cc1: error: unrecognized command line option "-Wwrite-strings"
cc1: error: unrecognized command line option "-Wstrict-prototypes"
cc1: error: unrecognized command line option "-Wmissing-prototypes"
cc1: error: unrecognized command line option "-Wold-style-definition"
cc1: error: unrecognized command line option "-o"
cc1: warning: -Wformat-nonliteral ignored without -Wformat
cc1: warning: -Wformat-security ignored without -Wformat

Execution times (seconds)
 TOTAL                 :   0.00             0.00             
0.00                  0 kB
gmake[3]: *** [libgcc/./_muldi3.o] Error 1
gmake[3]: Leaving directory `/tmp/gcc-b/t/gcc'
gmake[2]: *** [stmp-multilib] Error 2
gmake[2]: Leaving directory `/tmp/gcc-b/t/gcc'
gmake[1]: *** [all-gcc] Error 2
gmake[1]: Leaving directory `/tmp/gcc-b/t'
gmake: *** [all] Error 2
#

I have tried bootstrapping 4.1.2, 4.1.1 and even 4.0.1, all of which 
have recorded successful builds on the gcc website on AIX, yet all of 
them fail in the same way on my machine. Can anyone help please?

Regards

Ben

-- 
Ben Scurr
Development Engineer             
World Programming Ltd.     Web: www.teamwpc.co.uk
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to be
disclosed to anyone other than the addressee. Unauthorised recipients are
requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

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

* Re: AIX 5.3 gcc 4.1.2 bootstrap error
  2008-03-18 14:15 ` Jonathan Saxton
@ 2008-03-18 14:41   ` Brian Dessent
  2008-03-18 16:44     ` Jonathan Saxton
  0 siblings, 1 reply; 6+ messages in thread
From: Brian Dessent @ 2008-03-18 14:41 UTC (permalink / raw)
  To: Jonathan Saxton; +Cc: 'Ben Scurr', gcc-help

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

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

* RE: AIX 5.3 gcc 4.1.2 bootstrap error
  2008-03-18 14:41   ` Brian Dessent
@ 2008-03-18 16:44     ` Jonathan Saxton
  0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Saxton @ 2008-03-18 16:44 UTC (permalink / raw)
  To: gcc-help; +Cc: 'Ben Scurr'

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

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

end of thread, other threads:[~2008-03-18 16:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-14 12:43 AIX 5.3 gcc 4.1.2 bootstrap error Ben Scurr
2008-02-14 13:44 ` Ralf Wildenhues
2008-02-19 17:03   ` Thomas Mittelstaedt
2008-03-18 14:15 ` Jonathan Saxton
2008-03-18 14:41   ` Brian Dessent
2008-03-18 16:44     ` Jonathan Saxton

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).