public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Error Compiling gcc 3.2 on AIX 4.3.3
@ 2004-07-02 12:44 McGarry, Simon
  2004-07-02 13:40 ` llewelly
  0 siblings, 1 reply; 3+ messages in thread
From: McGarry, Simon @ 2004-07-02 12:44 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'

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


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

* Re: Error Compiling gcc 3.2 on AIX 4.3.3
  2004-07-02 12:44 Error Compiling gcc 3.2 on AIX 4.3.3 McGarry, Simon
@ 2004-07-02 13:40 ` llewelly
  0 siblings, 0 replies; 3+ messages in thread
From: llewelly @ 2004-07-02 13:40 UTC (permalink / raw)
  To: McGarry, Simon; +Cc: 'gcc-help@gcc.gnu.org'

"McGarry, Simon" <SMcGarry@acadinfo.co.uk> writes:

> 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

Are you using GNU make or AIX make? You should be using GNU make.


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

* RE: Error Compiling gcc 3.2 on AIX 4.3.3
@ 2004-07-02 14:10 McGarry, Simon
  0 siblings, 0 replies; 3+ messages in thread
From: McGarry, Simon @ 2004-07-02 14:10 UTC (permalink / raw)
  To: 'llewelly@xmission.com'; +Cc: 'gcc-help@gcc.gnu.org'

I was using AIX make I hadn't thought about that before you said, I will try
compiling it with GNU make now and see how it goes.

Thanks

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

-----Original Message-----
From: llewelly@xmission.com [mailto:llewelly@xmission.com] 
Sent: 02 July 2004 14:41
To: McGarry, Simon
Cc: 'gcc-help@gcc.gnu.org'
Subject: Re: Error Compiling gcc 3.2 on AIX 4.3.3

"McGarry, Simon" <SMcGarry@acadinfo.co.uk> writes:

> 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

Are you using GNU make or AIX make? You should be using GNU make.



This email has been scanned for all viruses by the MessageLabs SkyScan
service.


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


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

end of thread, other threads:[~2004-07-02 14:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-02 12:44 Error Compiling gcc 3.2 on AIX 4.3.3 McGarry, Simon
2004-07-02 13:40 ` llewelly
2004-07-02 14:10 McGarry, Simon

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