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
______________________________________________________________________