Linux --> AIX cross compiler questions
Tom Williams
tom.williams@diversifiedsoftware.com
Mon Aug 9 12:18:00 GMT 1999
HI! Well, I've made yet more progress in my attempt at building a Linux
hosted AIX 4.3.1 cross compiler. I built libgcc1.a on AIX and now I'm
getting these errors:
make[2]: Leaving directory `/mnt/disk2/build/gcc-2.95/objdir/gcc'
mv tmplibgcc2.a libgcc2.a
rm -rf tmplibgcc.a libgcc.a tmpcopy
mkdir tmpcopy
if [ xlibgcc1.cross != x ]; \
then (cd tmpcopy; powerpc-ibm-aix4.3.1-ar x ../libgcc1.cross); \
else true; \
fi
powerpc-ibm-aix4.3.1-ar: ../libgcc1.cross: File format not recognized
make[1]: [libgcc.a] Error 1 (ignored)
(cd tmpcopy; chmod +w * > /dev/null 2>&1)
make[1]: [libgcc.a] Error 1 (ignored)
(cd tmpcopy; powerpc-ibm-aix4.3.1-ar x ../libgcc2.a)
(cd tmpcopy; powerpc-ibm-aix4.3.1-ar rc ../tmplibgcc.a *.o)
rm -rf tmpcopy
I built the binutils for AIX on Linux using binutils-2.9.1. Someone
suggested that I build the binutils for AIX then build libgcc1.a. I'll try
that next. My question is this: the build kept running
after these errors had been received. Is this correct?
After these errors, the build eventually stopped with these errors during
the testing of libgcc1:
libgcc1-test.o: In function `main_without__main':
libgcc1-test.c:13: undefined reference to `_savef28'
libgcc1-test.c:20: undefined reference to `__quoss'
libgcc1-test.c:21: undefined reference to `__divss'
libgcc1-test.c:23: undefined reference to `__quous'
libgcc1-test.c:24: undefined reference to `__divus'
libgcc1-test.c:44: undefined reference to `__itrunc'
libgcc1-test.c:45: undefined reference to `__itrunc'
libgcc1-test.c:66: undefined reference to `_restf28'
collect2: ld returned 1 exit status
make[1]: *** [libgcc1-test] Error 1
make[1]: Leaving directory `/mnt/disk2/build/gcc-2.95/objdir/gcc'
make: *** [cross] Error 2
[tomw@11 objdir]$
I'm assuming this happened because I did not build libgcc1.a correctly
(i.e. without building the binutils on AIX before building libgcc1.a). Is
this the problem or am I missing
something else?
Thanks in advance for your time.
Peace.....
Tom
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.
More information about the crossgcc
mailing list