Error Compiling gcc 3.2 on AIX 4.3.3

McGarry, Simon SMcGarry@acadinfo.co.uk
Fri Jul 2 12:44:00 GMT 2004


Hi,

I'm trying to compile gcc 3.2 on AIX 4.3.3, originally I ran

bash# /usr/gnu/src/gcc-3.2/configure --prefix=/usr/gnu
--enable-languages=c,c++

then

bash# make bootstrap

This failed quite quickly with:

ld: 0711-781 ERROR: TOC overflow. TOC size: 77216       Maximum size: 65536
collect2: ld returned 12 exit status
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.
make: 1254-004 The error code from the last command is 2.


Stop.

I read an article that said set LDFLAGS to "-Wl,-bbigtoc" in the Makefile,
doing this solved that problem.

I reran the make bootstrap and the build was running for about 20 hours but
it has just failed with the following error:

Target "all" is up to date.
Making all in po
Target "all" is up to date.
Making all in testsuite
Target "all" is up to date.
	make "AR_FLAGS=rc"  "CC_FOR_BUILD=gcc"
"CC_FOR_TARGET=/usr/gnu/src/build-gcc/gcc/xgcc -B/usr/gnu/src/build-gcc/gcc/
-B/usr/gnu/powerpc-ibm-aix4.3.3.0/bin/
-B/usr/gnu/powerpc-ibm-aix4.3.3.0/lib/ -isystem
/usr/gnu/powerpc-ibm-aix4.3.3.0/include"  "CFLAGS=-g -O2"  "CXXFLAGS=-g -O2"
"CFLAGS_FOR_BUILD="  "CFLAGS_FOR_TARGET=-g -O2"  "INSTALL=/bin/sh
/usr/gnu/src/gcc-3.2/install-sh -c"  "INSTALL_DATA=/bin/sh
/usr/gnu/src/gcc-3.2/install-sh -c -m 644"  "INSTALL_PROGRAM=/bin/sh
/usr/gnu/src/gcc-3.2/install-sh -c "  "INSTALL_SCRIPT=/bin/sh
/usr/gnu/src/gcc-3.2/install-sh -c"  "LDFLAGS=-Wl,-bbigtoc"  "LIBCFLAGS=-g
-O2"  "LIBCFLAGS_FOR_TARGET=-g -O2"  "MAKE=make"
"MAKEINFO=/usr/gnu/src/gcc-3.2/missing makeinfo     "  "PICFLAG="
"PICFLAG_FOR_TARGET="  "SHELL=/bin/sh"  "RUNTESTFLAGS="
"exec_prefix=/usr/gnu"  "infodir=/usr/gnu/info"  "libdir=/usr/gnu/lib"
"includedir=/usr/gnu/include"  "prefix=/usr/gnu"
"tooldir=/usr/gnu/powerpc-ibm-aix4.3.3.0"  "AR=ar -X32_64"  "AS=as"  "LD=ld"
"LIBCFLAGS=-g -O2"  "PICFLAG="  "RANLIB=ranlib"  "NM=nm -B -X32_64"
"NM_FOR_BUILD="  "NM_FOR_TARGET=nm -B -X32_64"  "DESTDIR="  "WERROR="
DO=all multi-do
	if [ -z "pthread power powerpc ppc64 pthread/power pthread/powerpc
pthread/ppc64" ]; then  true;  else  rootpre=`pwd`/; export rootpre;
srcrootpre=`cd /usr/gnu/src/gcc-3.2/libstdc++-v3; pwd`/; export srcrootpre;
lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`;
compiler="/usr/gnu/src/build-gcc/gcc/xgcc -B/usr/gnu/src/build-gcc/gcc/
-B/usr/gnu/powerpc-ibm-aix4.3.3.0/bin/
-B/usr/gnu/powerpc-ibm-aix4.3.3.0/lib/ -isystem
/usr/gnu/powerpc-ibm-aix4.3.3.0/include";  for i in `${compiler}
--print-multi-lib 2>/dev/null`; do  dir=`echo $i | sed -e 's/;.*$//'`;  if [
"${dir}" = "." ]; then  true;  else  if [ -d ../${dir}/${lib} ]; then
flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;  if (cd
../${dir}/${lib}; make   CFLAGS="-g -O2 ${flags}"  prefix="/usr/gnu"
exec_prefix="/usr/gnu"  GCJFLAGS="@GCJFLAGS@ ${flags}"  CXXFLAGS="-g -O2
${flags}"  LIBCFLAGS="-g -O2 ${flags}"  LIBCXXFLAGS="-g -O2
-fno-implicit-templates ${flags}"  LDFLAGS="-Wl,-bbigtoc ${flags}"  all);
then  true;  else  exit 1;  fi;  else true;  fi;  fi;  done;  fi
	make "AR_FLAGS=rc"  "CC_FOR_BUILD=gcc"
"CC_FOR_TARGET=/usr/gnu/src/build-gcc/gcc/xgcc -B/usr/gnu/src/build-gcc/gcc/
-B/usr/gnu/powerpc-ibm-aix4.3.3.0/bin/
-B/usr/gnu/powerpc-ibm-aix4.3.3.0/lib/ -isystem
/usr/gnu/powerpc-ibm-aix4.3.3.0/include"  "CFLAGS=-g -O2  -pthread"
"CXXFLAGS=-g -O2  -pthread"  "CFLAGS_FOR_BUILD="  "CFLAGS_FOR_TARGET=-g -O2"
"INSTALL=/bin/sh /usr/gnu/src/gcc-3.2/install-sh -c"  "INSTALL_DATA=/bin/sh
/usr/gnu/src/gcc-3.2/install-sh -c -m 644"  "INSTALL_PROGRAM=/bin/sh
/usr/gnu/src/gcc-3.2/install-sh -c "  "INSTALL_SCRIPT=/bin/sh
/usr/gnu/src/gcc-3.2/install-sh -c"  "LDFLAGS=-Wl,-bbigtoc  -pthread"
"LIBCFLAGS=-g -O2  -pthread"  "LIBCFLAGS_FOR_TARGET=-g -O2"  "MAKE=make"
"MAKEINFO=/usr/gnu/src/gcc-3.2/missing makeinfo      "  "PICFLAG="
"PICFLAG_FOR_TARGET="  "SHELL=/bin/sh"  "RUNTESTFLAGS="
"exec_prefix=/usr/gnu"  "infodir=/usr/gnu/info"  "libdir=/usr/gnu/lib"
"includedir=/usr/gnu/include"  "prefix=/usr/gnu"
"tooldir=/usr/gnu/powerpc-ibm-aix4.3.3.0"  "AR=ar -X32_64"  "AS=as"  "LD=ld"
"LIBCFLAGS=-g -O2  -pthread"  "PICFLAG="  "RANLIB=ranlib"  "NM=nm -B
-X32_64"  "NM_FOR_BUILD="  "NM_FOR_TARGET=nm -B -X32_64"  "DESTDIR="
"WERROR="  all-recursive
/bin/sh: not found

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


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


Stop.

I can't see much in there to suggest what's gone wrong. Any help would be
greatly appreciated.

TIA

Simon McGarry
Technical Support Consultant
Capita Software Services
0870 1631834
simon.mcgarry@capita.co.uk


---------------------------------------------------------------------
This Email is confidential and may also be privileged. If you are not the
intended recipient, please notify the sender IMMEDIATELY; you should not
copy the email or use it for any purpose or disclose its contents to any
other person.

Any statements made, or intentions expressed in this communication may not
necessarily reflect the view of the Capita Group and that the content herein
may not be held binding upon the Capita Group or any associated company.
---------------------------------------------------------------------- 




More information about the Gcc-help mailing list