Article View: gnu.gcc.bug
Article #5963Problem installing gcc-2.7.2.1 on AIX 4.2
From: Brendon Oliver
Date: Wed, 15 Jan 1997 00:00
Date: Wed, 15 Jan 1997 00:00
69 lines
3462 bytes
3462 bytes
Hello there,
I am hoping someone can give me some pointers installing gcc-2.7.2.1 onto an
IBM RS/6000 running AIX v4.2.
I ran 'configure' with no options (results as follows):
--->
[piglet]/usr/local/src/gcc-2.7.2.1) ./configure
This appears to be a rs6000-ibm-aix4.2.0.0 system.
Using `./config/rs6000/rs6000.c' to output insns.
Using `./config/rs6000/rs6000.md' as machine description file.
Using `./config/rs6000/aix41.h' as target machine macro file.
Using `./config/rs6000/xm-rs6000.h' as host machine macro file.
Merged rs6000/x-aix31.
Merged rs6000/t-newas.
Merged c++ fragment(s).
Created `./Makefile'.
Merged rs6000/x-aix31.
Merged rs6000/t-newas.
Created `cp/Makefile'.
Links are now set up to build a native compiler for rs6000-ibm-aix4.2.0.0.
<---
But 'make LANGUAGES=c' stopped at the following point:
--->
cc -DIN_GCC -g -I. -I. -I./config -DTARGET_MACHINE=\"rs6000-ibm-aix4.2.0.0\" -DUSE_COLLECT2 -c `echo ./collect2.c | sed 's,^\./,,'`
"collect2.c", line 2669.28: 1506-045 (S) Undeclared identifier ARMAG.
"collect2.c", line 2675.20: 1506-022 (S) ar_name not a member of the struct or union ah.
"collect2.c", line 2728.8: 1506-022 (S) ar_name not a member of the struct or union ah.
make: The error code from the last command is 1.
<---
After a bit of detective work, I found that ARTYPE is defined in
/usr/include/ldfcn.h as 0177545 but only if either of PORTAR, PORT5AR or AIXV3AR
is defined. If not, ARTYPE appears to be defined as ARMAG which has no further
definitions (that I can find) and thus the above error.
I modified the Makefile to add "-DPORTAR" for collect2.c and all proceeded well
until the following point:
mv tmplibgcc2.a libgcc2.a
if [ x != xlibgcc1-asm.a ]; then true; else rm -f ; fi
if [ x != xlibgcc1-asm.a ]; then true; else make GCC_FOR_TARGET="./xgcc -B./" AR="ar" AR_FLAGS="rc" CC="cc" CFLAGS="-g" HOST_PREFIX="" HOST_PREFIX_1="loser-" LIBGCC2_CFLAGS="-O2 -DIN_GCC -g -I./include -g1 -msoft-float -mcpu=common" ; fi
rm -rf tmplibgcc.a tmpcopy
mkdir tmpcopy
if [ x != x ]; then (cd tmpcopy; ar x ../); else true; fi
(cd tmpcopy; ar x ../libgcc2.a)
(cd tmpcopy; ar rc ../tmplibgcc.a *.o)
rm -rf libgcc2.a tmpcopy
if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then ranlib tmplibgcc.a; else true; fi
if [ -d soft-float/common ]; then true; else mkdir soft-float/common; fi
mv tmplibgcc.a soft-float/common/libgcc.a
touch stmp-multilib
rm -f milli.exp
cp ./config/rs6000/milli.exp ./milli.exp
./xgcc -B./ -DIN_GCC -g -I./include enquire.o -o enquire
collect2: /lib/crt0.o: not a COFF file
make: The error code from the last command is 1
I don't know what to do from this point - any suggestions would be greatly
welcomed.
Many thanks in advance.
- Brendon Oliver
<brendon@conibm.aldis.com.au>
Technical Details
Message-ID:
<9701150303.AA36701@conibm.aldis.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,9e0e7be768c2a15b,start X-Google-Attributes: gid113d02,public From: brendon@conibm.aldis.com.au (Brendon Oliver) Subject: Problem installing gcc-2.7.2.1 on AIX 4.2 Date: 1997/01/15 Message-ID: <9701150303.AA36701@conibm.aldis.com.au> X-Deja-AN: 209953812 sender: bug-gcc-request@prep.ai.mit.edu x-gateway: relay4.UU.NET from bug-gcc to gnu.gcc.bug; Tue, 14 Jan 1997 21:01:01 EST newsgroups: gnu.gcc.bug