* Problem compiling gcc 4.2.1 on AIX 5.3 @ 2008-01-17 19:27 Anant Athavale 2008-01-17 20:08 ` Thomas Mittelstaedt 2008-01-17 21:36 ` Kai Ruottu 0 siblings, 2 replies; 9+ messages in thread From: Anant Athavale @ 2008-01-17 19:27 UTC (permalink / raw) To: gcc-help gcc compilation fails with the following error AIX 5.3 --------------------------------------------------------- make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libiberty' make[4]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libiberty/testsuite' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libiberty/testsuite' make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libiberty' make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/intl' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/intl' make[3]: Entering directory `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/libiberty' make[4]: Entering directory `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/libiberty/testsuite' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/libiberty/testsuite' make[3]: Leaving directory `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/libiberty' make[3]: Entering directory `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/fixincludes' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/fixincludes' make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/zlib' true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -fkeep-inline-functions" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-O2 -g -O2 " "INSTALL=/tmp/gcc-4.2.1/install-sh -c" "INSTALL_DATA=/tmp/gcc-4.2.1/install-sh -c -m 644" "INSTALL_PROGRAM=/tmp/gcc-4.2.1/install-sh -c" "INSTALL_SCRIPT=/tmp/gcc-4.2.1/install-sh -c" "LDFLAGS=-Wl,-bbigtoc" "LIBCFLAGS=-g -fkeep-inline-functions" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 " "MAKE=make" "MAKEINFO=/tmp/gcc-4.2.1/missing makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "tooldir=/usr/local/powerpc-ibm-aix" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -fkeep-inline-functions" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/zlib' make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libcpp' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libcpp' make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libdecnumber' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libdecnumber' make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/gcc' make[3]: *** No rule to make target `all'. Stop. make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/tmp/gcc-4.2.1' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/tmp/gcc-4.2.1' make: *** [all] Error 2 --------------------------------------------------- I searched internet for the same, but some suggested use gnu tar to untar the gcc source file.tar. Some said use gmake. Even after using both, I getting this error. Please suggest how do I proceed. The system already has older version of gcc installed ver 4.1.1. Regards, Anant Athavale. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem compiling gcc 4.2.1 on AIX 5.3 2008-01-17 19:27 Problem compiling gcc 4.2.1 on AIX 5.3 Anant Athavale @ 2008-01-17 20:08 ` Thomas Mittelstaedt 2008-01-28 14:41 ` Anant S Athavale 2008-01-17 21:36 ` Kai Ruottu 1 sibling, 1 reply; 9+ messages in thread From: Thomas Mittelstaedt @ 2008-01-17 20:08 UTC (permalink / raw) To: Anant Athavale; +Cc: gcc-help Anant, How did you configure gcc? I recently built version gcc 4.2.2 on aix 5.2 with the following configure ../gcc-4.2.2/configure --enable-version-specific-runtime-libs --enable-static --enable-shared --enable-threads --prefix=/opt/gcc-4.2.2 --without-gnu-ld --disable-nls --with-pic --disable-symvers --enable-symvers=no --enable-languages=c,c++,objc then built with: make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap You may also consider to set environment variable CONFIG_SHELL to the full path of bash like CONFIG_SHELL=/usr/local/bin/bash At least when building on hp, it also proved to be useful to set CC to the full path of the bootstrap compiler like CC=/opt/gcc-3.2.1/bin/gcc Hope that gets you going. You also should use a gnu tar version higher than 1.13 to untar the sources and gnu make, of course. I used version 3.79.1. thomas Anant Athavale schrieb: > gcc compilation fails with the following error AIX 5.3 > > --------------------------------------------------------- > make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libiberty' > make[4]: Entering directory > `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libiberty/testsuite' > make[4]: Nothing to be done for `all'. > make[4]: Leaving directory > `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libiberty/testsuite' > make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libiberty' > make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/intl' > make[3]: Nothing to be done for `all'. > make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/intl' > make[3]: Entering directory `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/libiberty' > make[4]: Entering directory > `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/libiberty/testsuite' > make[4]: Nothing to be done for `all'. > make[4]: Leaving directory > `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/libiberty/testsuite' > make[3]: Leaving directory `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/libiberty' > make[3]: Entering directory `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/fixincludes' > make[3]: Nothing to be done for `all'. > make[3]: Leaving directory `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/fixincludes' > make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/zlib' > true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g > -fkeep-inline-functions" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" > "CFLAGS_FOR_TARGET=-O2 -g -O2 " "INSTALL=/tmp/gcc-4.2.1/install-sh -c" > "INSTALL_DATA=/tmp/gcc-4.2.1/install-sh -c -m 644" > "INSTALL_PROGRAM=/tmp/gcc-4.2.1/install-sh -c" > "INSTALL_SCRIPT=/tmp/gcc-4.2.1/install-sh -c" "LDFLAGS=-Wl,-bbigtoc" > "LIBCFLAGS=-g -fkeep-inline-functions" "LIBCFLAGS_FOR_TARGET=-O2 -g > -O2 " "MAKE=make" "MAKEINFO=/tmp/gcc-4.2.1/missing makeinfo > --split-size=5000000 --split-size=5000000 --split-size=5000000 " > "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" > "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" > "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" > "tooldir=/usr/local/powerpc-ibm-aix" "AR=ar" "AS=as" "CC=gcc" > "CXX=c++" "LD=ld" "LIBCFLAGS=-g -fkeep-inline-functions" "NM=nm" > "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make > make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/zlib' > make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libcpp' > make[3]: Nothing to be done for `all'. > make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libcpp' > make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libdecnumber' > make[3]: Nothing to be done for `all'. > make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libdecnumber' > make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/gcc' > make[3]: *** No rule to make target `all'. Stop. > make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/gcc' > make[2]: *** [all-stage1-gcc] Error 2 > make[2]: Leaving directory `/tmp/gcc-4.2.1' > make[1]: *** [stage1-bubble] Error 2 > make[1]: Leaving directory `/tmp/gcc-4.2.1' > make: *** [all] Error 2 > --------------------------------------------------- > > I searched internet for the same, but some suggested use gnu tar to > untar the gcc source file.tar. Some said use gmake. Even after using > both, I getting this error. > > Please suggest how do I proceed. The system already has older version > of gcc installed ver 4.1.1. > > Regards, > > Anant Athavale. > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem compiling gcc 4.2.1 on AIX 5.3 2008-01-17 20:08 ` Thomas Mittelstaedt @ 2008-01-28 14:41 ` Anant S Athavale 0 siblings, 0 replies; 9+ messages in thread From: Anant S Athavale @ 2008-01-28 14:41 UTC (permalink / raw) To: gcc-help Thanks everybody. Finally I could compile in full gcc 4.2.2 on AIX 5.3. It required me to install GNU bash and GNU bison to achieve it. I ran normal configure without any options. And make went through. It took several hours on my p610 system for to finish compiling. Thanks a lot again for pointing me towards solving my problem. Regards, ANANT. ----- Message from T.Mittelstaedt@cadenas.de --------- Date: Thu, 17 Jan 2008 10:05:05 +0100 From: Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> Reply-To: Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> Subject: Re: Problem compiling gcc 4.2.1 on AIX 5.3 To: Anant Athavale <asa@isac.gov.in> Cc: gcc-help@gcc.gnu.org > Anant, > > How did you configure gcc? > > I recently built version gcc 4.2.2 on aix 5.2 with the following configure > > > ../gcc-4.2.2/configure --enable-version-specific-runtime-libs > --enable-static --enable-shared --enable-threads > --prefix=/opt/gcc-4.2.2 --without-gnu-ld --disable-nls --with-pic > --disable-symvers --enable-symvers=no --enable-languages=c,c++,objc > > then built with: > make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 > -fno-implicit-templates' bootstrap > > You may also consider to set environment variable CONFIG_SHELL to the > full path of bash like > CONFIG_SHELL=/usr/local/bin/bash > At least when building on hp, it also proved to be useful to set CC to > the full path of the bootstrap compiler like > CC=/opt/gcc-3.2.1/bin/gcc > > Hope that gets you going. You also should use a gnu tar version higher > than 1.13 to untar the sources and gnu make, of course. > I used version 3.79.1. > > thomas > > > > Anant Athavale schrieb: >> gcc compilation fails with the following error AIX 5.3 >> >> --------------------------------------------------------- >> make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libiberty' >> make[4]: Entering directory >> `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libiberty/testsuite' >> make[4]: Nothing to be done for `all'. >> make[4]: Leaving directory >> `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libiberty/testsuite' >> make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libiberty' >> make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/intl' >> make[3]: Nothing to be done for `all'. >> make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/intl' >> make[3]: Entering directory `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/libiberty' >> make[4]: Entering directory >> `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/libiberty/testsuite' >> make[4]: Nothing to be done for `all'. >> make[4]: Leaving directory >> `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/libiberty/testsuite' >> make[3]: Leaving directory `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/libiberty' >> make[3]: Entering directory >> `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/fixincludes' >> make[3]: Nothing to be done for `all'. >> make[3]: Leaving directory >> `/tmp/gcc-4.2.1/build-powerpc-ibm-aix/fixincludes' >> make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/zlib' >> true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g >> -fkeep-inline-functions" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g >> -O2" "CFLAGS_FOR_TARGET=-O2 -g -O2 " >> "INSTALL=/tmp/gcc-4.2.1/install-sh -c" >> "INSTALL_DATA=/tmp/gcc-4.2.1/install-sh -c -m 644" >> "INSTALL_PROGRAM=/tmp/gcc-4.2.1/install-sh -c" >> "INSTALL_SCRIPT=/tmp/gcc-4.2.1/install-sh -c" >> "LDFLAGS=-Wl,-bbigtoc" "LIBCFLAGS=-g -fkeep-inline-functions" >> "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 " "MAKE=make" >> "MAKEINFO=/tmp/gcc-4.2.1/missing makeinfo --split-size=5000000 >> --split-size=5000000 --split-size=5000000 " "PICFLAG=" >> "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" >> "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" >> "infodir=/usr/local/info" "libdir=/usr/local/lib" >> "prefix=/usr/local" "tooldir=/usr/local/powerpc-ibm-aix" "AR=ar" >> "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g >> -fkeep-inline-functions" "NM=nm" "PICFLAG=" "RANLIB=ranlib" >> "DESTDIR=" DO=all multi-do # make >> make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/zlib' >> make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libcpp' >> make[3]: Nothing to be done for `all'. >> make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libcpp' >> make[3]: Entering directory >> `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libdecnumber' >> make[3]: Nothing to be done for `all'. >> make[3]: Leaving directory >> `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/libdecnumber' >> make[3]: Entering directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/gcc' >> make[3]: *** No rule to make target `all'. Stop. >> make[3]: Leaving directory `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/gcc' >> make[2]: *** [all-stage1-gcc] Error 2 >> make[2]: Leaving directory `/tmp/gcc-4.2.1' >> make[1]: *** [stage1-bubble] Error 2 >> make[1]: Leaving directory `/tmp/gcc-4.2.1' >> make: *** [all] Error 2 >> --------------------------------------------------- >> >> I searched internet for the same, but some suggested use gnu tar to >> untar the gcc source file.tar. Some said use gmake. Even after >> using both, I getting this error. >> >> Please suggest how do I proceed. The system already has older >> version of gcc installed ver 4.1.1. >> >> Regards, >> >> Anant Athavale. >> ----- End message from T.Mittelstaedt@cadenas.de ----- Regards, Anant Athavale, Computer and Information Group, ISRO Satellite Centre, Airport Road, Bangalore - 560017 INDIA. Landline: 080-25083512 Cell: 99809 13616 My Free/BusyURL: http://isacmail2.isac.dos.gov.in/kronolith/fb.php?u=asa%40isac.gov.in ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem compiling gcc 4.2.1 on AIX 5.3 2008-01-17 19:27 Problem compiling gcc 4.2.1 on AIX 5.3 Anant Athavale 2008-01-17 20:08 ` Thomas Mittelstaedt @ 2008-01-17 21:36 ` Kai Ruottu 2008-01-18 4:44 ` Anant S Athavale 1 sibling, 1 reply; 9+ messages in thread From: Kai Ruottu @ 2008-01-17 21:36 UTC (permalink / raw) To: Anant Athavale; +Cc: gcc-help Anant Athavale wrote: > gcc compilation fails with the following error AIX 5.3 > > "prefix=/usr/local" "tooldir=/usr/local/powerpc-ibm-aix" "AR=ar" > "AS=as" "CC=gcc" "CXX=c++" "LD=ld" make[3]: Entering directory > `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/gcc' > make[3]: *** No rule to make target `all'. Stop. The "tooldir" part tells the guessed, given or somehow else got $target name being 'powerpc-ibm-aix'... But the 'gcc/config.gcc' doesn't know this $target :( Possible ones can be '*-*-aix4*' and '*-*-aix5*' where the first star can be 'rs6000', 'powerpc' or 'ppc'. So that bare 'aix' isn't understood.... Please see what the command : ./config.guess gives in the main GCC source directory. There shouldn't be that bare 'aix' in the answer to the guess! If there is (The system is really stupid in its guesses...), then you must be wiser and tell the right names, for instance : ..../configure --build=powerpc-ibm-aix5.3 --host=powerpc-ibm-aix5.3 --target=powerpc-ibm-aix5.3 .... ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem compiling gcc 4.2.1 on AIX 5.3 2008-01-17 21:36 ` Kai Ruottu @ 2008-01-18 4:44 ` Anant S Athavale 2008-01-18 16:52 ` Anant Athavale 0 siblings, 1 reply; 9+ messages in thread From: Anant S Athavale @ 2008-01-18 4:44 UTC (permalink / raw) To: Kai Ruottu; +Cc: gcc-help ----- Message from karuottu@mbnet.fi --------- Date: Thu, 17 Jan 2008 11:20:04 +0200 From: Kai Ruottu <karuottu@mbnet.fi> Reply-To: Kai Ruottu <karuottu@mbnet.fi> Subject: Re: Problem compiling gcc 4.2.1 on AIX 5.3 To: Anant Athavale <asa@isac.gov.in> Cc: gcc-help@gcc.gnu.org > Anant Athavale wrote: >> gcc compilation fails with the following error AIX 5.3 >> >> "prefix=/usr/local" "tooldir=/usr/local/powerpc-ibm-aix" "AR=ar" >> "AS=as" "CC=gcc" "CXX=c++" "LD=ld" make[3]: Entering directory >> `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/gcc' >> make[3]: *** No rule to make target `all'. Stop. > The "tooldir" part tells the guessed, given or somehow else got $target > name being 'powerpc-ibm-aix'... > But the 'gcc/config.gcc' doesn't know this $target :( Possible ones > can be '*-*-aix4*' and '*-*-aix5*' > where the first star can be 'rs6000', 'powerpc' or 'ppc'. So that bare > 'aix' isn't understood.... > > Please see what the command : > ./config.guess > gives in the main GCC source directory. There shouldn't be that bare > 'aix' in the answer to the guess! ./config.guess output is as below: /usr/bin/oslevel[845]: sed: not found /usr/bin/oslevel: Broken pipe powerpc-ibm-aix But when I execute which sed, the output is /opt/freeware/bin/sed and this is gnu sed. Now that I have some hint, I will check, what could be the reason and let you know again later. Thanks. Regards, ANANT. > If there is (The system is really stupid in its guesses...), then you > must be wiser and tell the right names, > for instance : > ..../configure --build=powerpc-ibm-aix5.3 --host=powerpc-ibm-aix5.3 > --target=powerpc-ibm-aix5.3 .... ----- End message from karuottu@mbnet.fi ----- Regards, Anant Athavale, Computer and Information Group, ISRO Satellite Centre, Airport Road, Bangalore - 560017 INDIA. Landline: 080-25083512 Cell: 99809 13616 My Free/BusyURL: http://isacmail2.isac.dos.gov.in/kronolith/fb.php?u=asa%40isac.gov.in ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem compiling gcc 4.2.1 on AIX 5.3 2008-01-18 4:44 ` Anant S Athavale @ 2008-01-18 16:52 ` Anant Athavale 2008-01-18 18:32 ` Kai Ruottu 0 siblings, 1 reply; 9+ messages in thread From: Anant Athavale @ 2008-01-18 16:52 UTC (permalink / raw) To: Kai Ruottu, gcc-help I have resolved the problem of sed, now compilation fails at this stage: /tmp/gcc-4.2.2/host-powerpc-ibm-aix5.3.0.0/prev-gcc/xgcc -B/tmp/gcc-4.2.2/host-powerpc-ibm-aix5.3.0.0/prev-gcc/ -B/usr/local/powerpc-ibm-aix5.3.0.0/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -Wl,-bbigtoc -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o rs6000-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \ main.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a -lintl -liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a collect2: ld returned 12 exit status make[3]: *** [cc1-dummy] Error 1 make[3]: Leaving directory `/tmp/gcc-4.2.2/host-powerpc-ibm-aix5.3.0.0/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/tmp/gcc-4.2.2' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/tmp/gcc-4.2.2' make: *** [all] Error 2 Please guide how to proceed. Regards, ANANT. ----- Message from asa@isac.gov.in --------- Date: Thu, 17 Jan 2008 15:20:55 +0530 From: Anant S Athavale <asa@isac.gov.in> Reply-To: asa@isac.gov.in, anant_athavale@yahoo.com Subject: Re: Problem compiling gcc 4.2.1 on AIX 5.3 To: Kai Ruottu <karuottu@mbnet.fi> Cc: gcc-help@gcc.gnu.org > ----- Message from karuottu@mbnet.fi --------- > Date: Thu, 17 Jan 2008 11:20:04 +0200 > From: Kai Ruottu <karuottu@mbnet.fi> > Reply-To: Kai Ruottu <karuottu@mbnet.fi> > Subject: Re: Problem compiling gcc 4.2.1 on AIX 5.3 > To: Anant Athavale <asa@isac.gov.in> > Cc: gcc-help@gcc.gnu.org > > >> Anant Athavale wrote: >>> gcc compilation fails with the following error AIX 5.3 >>> >>> "prefix=/usr/local" "tooldir=/usr/local/powerpc-ibm-aix" "AR=ar" >>> "AS=as" "CC=gcc" "CXX=c++" "LD=ld" make[3]: Entering directory >>> `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/gcc' >>> make[3]: *** No rule to make target `all'. Stop. >> The "tooldir" part tells the guessed, given or somehow else got $target >> name being 'powerpc-ibm-aix'... >> But the 'gcc/config.gcc' doesn't know this $target :( Possible ones >> can be '*-*-aix4*' and '*-*-aix5*' >> where the first star can be 'rs6000', 'powerpc' or 'ppc'. So that bare >> 'aix' isn't understood.... >> >> Please see what the command : >> ./config.guess >> gives in the main GCC source directory. There shouldn't be that bare >> 'aix' in the answer to the guess! > > ./config.guess output is as below: > > /usr/bin/oslevel[845]: sed: not found > /usr/bin/oslevel: Broken pipe > powerpc-ibm-aix > > But when I execute which sed, the output is > > /opt/freeware/bin/sed > > and this is gnu sed. > > Now that I have some hint, I will check, what could be the reason and > let you know again later. > > Thanks. > > Regards, > ANANT. > >> If there is (The system is really stupid in its guesses...), then you >> must be wiser and tell the right names, >> for instance : >> ..../configure --build=powerpc-ibm-aix5.3 --host=powerpc-ibm-aix5.3 >> --target=powerpc-ibm-aix5.3 .... > > > ----- End message from karuottu@mbnet.fi ----- > > > > Regards, > > Anant Athavale, > Computer and Information Group, > ISRO Satellite Centre, > Airport Road, > Bangalore - 560017 > INDIA. > > Landline: 080-25083512 > Cell: 99809 13616 > > My Free/BusyURL: > http://isacmail2.isac.dos.gov.in/kronolith/fb.php?u=asa%40isac.gov.in ----- End message from asa@isac.gov.in ----- Regards, Anant Athavale. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem compiling gcc 4.2.1 on AIX 5.3 2008-01-18 16:52 ` Anant Athavale @ 2008-01-18 18:32 ` Kai Ruottu 2008-01-18 19:07 ` Kai Ruottu 0 siblings, 1 reply; 9+ messages in thread From: Kai Ruottu @ 2008-01-18 18:32 UTC (permalink / raw) To: Anant Athavale; +Cc: gcc-help Anant Athavale wrote: > I have resolved the problem of sed, now compilation fails at this stage: > > /tmp/gcc-4.2.2/host-powerpc-ibm-aix5.3.0.0/prev-gcc/xgcc > -B/tmp/gcc-4.2.2/host-powerpc-ibm-aix5.3.0.0/prev-gcc/ > -B/usr/local/powerpc-ibm-aix5.3.0.0/bin/ -g -O2 -DIN_GCC -W -Wall > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic > -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings > -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H > -Wl,-bbigtoc -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o > c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o > c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o > c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o > c-parser.o rs6000-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o > c-omp.o dummy-checksum.o \ > main.o libbackend.a ../libcpp/libcpp.a > ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a -lintl -liconv > ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a > collect2: ld returned 12 exit status > make[3]: *** [cc1-dummy] Error 1 I would guess the native IBM 'ld' being used, the error message from the GNU one should be more 'verbose'. Anyway the linker manual should tell what this 'exit code 12' means. In your earlier message it was told that the '-bbigtoc' switch would be used for the linker when linking executables and it was used too, as the link command here tells... So my advices are to check what this exit code 12 means and what that '-bbigtoc' means and whether it could clash with the GCC defaults for code production, the linker not really understanding it, or something... ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem compiling gcc 4.2.1 on AIX 5.3 2008-01-18 18:32 ` Kai Ruottu @ 2008-01-18 19:07 ` Kai Ruottu 2008-01-19 12:30 ` Thomas Mittelstaedt 0 siblings, 1 reply; 9+ messages in thread From: Kai Ruottu @ 2008-01-18 19:07 UTC (permalink / raw) To: Anant Athavale; +Cc: gcc-help Kai Ruottu wrote: > Anant Athavale wrote: >> I have resolved the problem of sed, now compilation fails at this stage: >> >> /tmp/gcc-4.2.2/host-powerpc-ibm-aix5.3.0.0/prev-gcc/xgcc <snip> >> -DHAVE_CONFIG_H -Wl,-bbigtoc -o cc1-dummy c-lang.o stub-objc.o >> attribs.o c-errors.o c-lex.o <snip> >> collect2: ld returned 12 exit status >> make[3]: *** [cc1-dummy] Error 1 > > So my advices are to check what this exit code 12 means and what > that '-bbigtoc' means and whether it could clash with the GCC defaults > for code production, the linker not > really understanding it, or something... I browsed the documentation : http://gcc.gnu.org/install/specific.html#x-ibm-aix once again and saw there really being this note : "Some versions of the AIX binder (linker) can fail with a relocation overflow severe error when the -bbigtoc option is used to link GCC-produced object files into an executable that overflows the TOC. A fix for APAR IX75823 (OVERFLOW DURING LINK WHEN USING GCC AND -BBIGTOC) is available from IBM Customer Support and from its techsupport.services.ibm.com <http://techsupport.services.ibm.com/> website as PTF U455193." You should check if this is the case... ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problem compiling gcc 4.2.1 on AIX 5.3 2008-01-18 19:07 ` Kai Ruottu @ 2008-01-19 12:30 ` Thomas Mittelstaedt 0 siblings, 0 replies; 9+ messages in thread From: Thomas Mittelstaedt @ 2008-01-19 12:30 UTC (permalink / raw) To: Anant Athavale; +Cc: gcc-help Anant, We also use gcc and the aix system linker and we don't use the -Wl,-bbigtoc linker option, but compile files with -mminimal-toc. Have you tried to configure & build with the setup I emailed yesterday? thomas Kai Ruottu schrieb: > Kai Ruottu wrote: > >> Anant Athavale wrote: >> >>> I have resolved the problem of sed, now compilation fails at this stage: >>> >>> /tmp/gcc-4.2.2/host-powerpc-ibm-aix5.3.0.0/prev-gcc/xgcc >>> > <snip> > >>> -DHAVE_CONFIG_H -Wl,-bbigtoc -o cc1-dummy c-lang.o stub-objc.o >>> attribs.o c-errors.o c-lex.o >>> > <snip> > >>> collect2: ld returned 12 exit status >>> make[3]: *** [cc1-dummy] Error 1 >>> >> So my advices are to check what this exit code 12 means and what >> that '-bbigtoc' means and whether it could clash with the GCC defaults >> for code production, the linker not >> really understanding it, or something... >> > I browsed the documentation : > > http://gcc.gnu.org/install/specific.html#x-ibm-aix > > once again and saw there really being this note : > > "Some versions of the AIX binder (linker) can fail with a relocation > overflow severe error when the -bbigtoc option is used to link > GCC-produced object files into an executable that overflows the TOC. A > fix for APAR IX75823 (OVERFLOW DURING LINK WHEN USING GCC AND -BBIGTOC) > is available from IBM Customer Support and from its > techsupport.services.ibm.com <http://techsupport.services.ibm.com/> > website as PTF U455193." > > You should check if this is the case... > ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-01-27 8:45 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-01-17 19:27 Problem compiling gcc 4.2.1 on AIX 5.3 Anant Athavale 2008-01-17 20:08 ` Thomas Mittelstaedt 2008-01-28 14:41 ` Anant S Athavale 2008-01-17 21:36 ` Kai Ruottu 2008-01-18 4:44 ` Anant S Athavale 2008-01-18 16:52 ` Anant Athavale 2008-01-18 18:32 ` Kai Ruottu 2008-01-18 19:07 ` Kai Ruottu 2008-01-19 12:30 ` Thomas Mittelstaedt
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).