This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Thanks for the tip. I changed my specs to use "-lc" instead of "-lg" and I get the same error but this time about libc.a: configure:1749: checking whether the C compiler (/mnt/disk2/build/gcc-2.95/objdir/gcc/xgcc -B/mnt/disk2/buil d/gcc-2.95/objdir/gcc/ -B/mnt/disk2/aixcross/powerpc-ibm-aix4.3.1/bin/ -g -O2 ) works configure:1765: /mnt/disk2/build/gcc-2.95/objdir/gcc/xgcc -B/mnt/disk2/build/gcc-2.95/objdir/gcc/ -B/mnt/dis k2/aixcross/powerpc-ibm-aix4.3.1/bin/ -o conftest -g -O2 conftest.c 1>&5 /mnt/disk2/aixcross/powerpc-ibm-aix4.3.1/bin/ld:/mnt/disk2/aixcross/powerpc -ibm-aix4.3.1/lib/libc.a: file fo rmat not recognized; treating as linker script /mnt/disk2/aixcross/powerpc-ibm-aix4.3.1/bin/ld:/mnt/disk2/aixcross/powerpc -ibm-aix4.3.1/lib/libc.a:1: parse error collect2: ld returned 1 exit status configure: failed program was: #line 1760 "configure" #include "confdefs.h" main(){return(0);} [root@unixgw libiberty]# I guess I'm going to have a big linking problem if the Linux hosted cross tools can't read the AIX native library files (at least from AIX 4.3.1). Peace....... Tom "Kai Ruottu" <karuottu@freenet.hut.fi> on 08/20/99 07:48:08 AM Please respond to karuottu@freenet.hut.fi To: Tom Williams/HQ/dssi cc: Subject: Re: more Linux --> AIX cross compiler questions > Hello once again! Well, I checked out my > gcc-2.95/objdir/powerpc-ibm-aix4.3.1/libiberty/config.log file for > libiberty errors and now the linker says it can't read the "libg.a" file > from AIX due to an unrecognized file format. Here is the actual error: > > /mnt/disk2/aixcross/powerpc-ibm-aix4.3.1/bin/ld:/mnt/disk2/aixcross/powerpc > -ibm-aix4.3.1/lib/libg.a: file format not recognized; treating as linker script > /mnt/disk2/aixcross/powerpc-ibm-aix4.3.1/bin/ld:/mnt/disk2/aixcross/powerpc > -ibm-aix4.3.1/lib/libg.a:1: parse error > > I copied libg.a from my AIX 4.3.1 /usr/lib directory to my Linux box and > the linker could find the file o.k. > > Any ideas? The 'libg.a' is a version of 'libc.a', where the debug info is included. You probably have no sources for the C-library, so debugging it is even impossible. So edit your 'specs' and replace the '-lg' there with '-lc', or make a symlink from 'libc.a' to 'libg.a', so the 'libc.a' and 'libg.a' are just the same... Peace, Kai ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |