This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Error building GCC 3.1 on AIX 4.3


Hi,

I am having trouble building GCC 3.1 on AIX 4.3.
Has anyone faced this problem before?

- AIX oslevel is 4.3.3.0.
- Using AIX ld and as (with the mentioned patch installed)
- Using gcc 2.95.3 to build gcc 3.1
- Using configure command:
../gcc-3.1/configure --prefix=/opt/gcc-3.1 --enable-threads=posix --enable-l
anguages=c,c++ --with-as=/usr/bin/as --with-ld=/usr/bin/ld

and then make boostrap.

xgcc dies with an "Illegal instruction" in function `__muldi3'
while compiling gcc/libgcc2.c.
Any help would be appreciated. If I need to create a bug report,
should I attach the preprocessed source for gcc/libgcc2.c?

With regards,
 Nikhil

Here's the output during make:

<snip>
        mv tmp-libgcc.mk libgcc.mk
        make
GCC_FOR_TARGET="/pkg1/gcc-3.1/gcc-3.1-objdir/gcc/xgcc -B/pkg1/gcc-3.1/gcc-3.
1-objdir/gcc/ -B/opt/gcc-3.1/powerpc-ibm-aix4.3.3.0/bin/ -B/opt/gcc-3.1/powe
rpc-ibm-aix4.3.3.0/lib/ -isystem
/opt/gcc-3.1/powerpc-ibm-aix4.3.3.0/include"  HOST_PREFIX=""
HOST_PREFIX_1="loser-"  AR_FOR_TARGET="ar -X32_64"
 AR_CREATE_FOR_TARGET="ar -X32_64 -X32_64 rc"  AR_FLAGS_FOR_TARGET="-X32_64"
CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-protot
ypes -Wtraditional -pedantic -Wno-long-long"  RANLIB_FOR_TARGET="ranlib"
RANLIB_TEST_FOR_TARGET="[ -f ranlib ]  || ( [ "powerpc-ibm-aix4.3.3.0" =
"powerpc-ibm-aix4.3.3.0" ]  && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )"
NM_FOR_TARGET="nm -B -X32_64" AWK="nawk"
BGCC2_CFLAGS="-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -isystem
./include   -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED "
INCLUDES="-I. -I. -I../../gcc-3.1/gcc -I../../gcc-3.1/gcc/.  -I../../gcc-3.1
/gcc/config -I../../gcc-3.1/gcc/../include"  CONFIG_H="config.h auto-host.h
../../gcc-3.1/gcc/../include/ansidecl.h
../../gcc-3.1/gcc/config/rs6000/rs6000.h
../../gcc-3.1/gcc/config/rs6000/aix.h
../../gcc-3.1/gcc/config/rs6000/aix43.h
../../gcc-3.1/gcc/config/rs6000/xcoff.h defaults.h insn-constants.h
insn-flags.h" MACHMODE_H="machmode.h machmode.def"  LIB1ASMSRC=''
MAKEOVERRIDES=  -f libgcc.mk all
        for d in libgcc pthread libgcc/pthread power libgcc/power powerpc
libgcc/powerpc ppc64 libgcc/ppc64 pthread/power libgcc/pthread/power
pthread/powerpc libgcc/pthread/powerpc pthread/ppc64 libgcc/pthread/ppc64;
do  if [ -d $d ]; then true; else /bin/sh ../../gcc-3.1/gcc/mkinstalldirs
$d; fi;  done
        if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi








/pkg1/gcc-3.1/gcc-3.1-objdir/gcc/xgcc -B/pkg1/gcc-3.1/gcc-3.1-objdir/gcc/ -B
/opt/gcc-3.1/powerpc-ibm-aix4.3.3.0/bin/ -B/opt/gcc-3.1/powerpc-ibm-aix4.3.3
.0/lib/ -isystem
t/gcc-3.1/powerpc-ibm-aix4.3.3.0/include -O2  -DIN_GCC    -W -Wall -Wwrite-s
trings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include   -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I
. -I. -I../../gcc-3.1/gcc -I../../gcc-3.1/gcc/.  -I../../gcc-3.1/gcc/config 
-I../../gcc-3.1/gcc/../include  -DL_muldi3 -c ../../gcc-3.1/gcc/libgcc2.c -o
libgcc/./_muldi3.o
../../gcc-3.1/gcc/libgcc2.c: In function `__muldi3':
../../gcc-3.1/gcc/libgcc2.c:367: internal error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
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.
$


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]