more Linux --> AIX cross compiler questions

Tom Williams tom.williams@diversifiedsoftware.com
Tue Aug 24 12:53:00 GMT 1999


Thanks for the info.  It looks like I'm out of luck.  Unless I can convert
the AIX libs to teh "old" format that GNU tools can use, I'm stuck.

Here is the powerpc-aix4.3-nm output using the binutils-990824 snapshot:

[root@unixgw binutils-990824]# powerpc-aix4.3-nm --version
GNU nm 990824
Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
[root@unixgw binutils-990824]# powerpc-aix4.3-nm
/mnt/disk2/build/usr/lib/libc.a
powerpc-aix4.3-nm: /mnt/disk2/build/usr/lib/libc.a: File format not
recognized
[root@unixgw binutils-990824]#

Peace......

Tom




"Kai Ruottu" <karuottu@freenet.hut.fi> on 08/24/99 04:14:00 AM

Please respond to karuottu@freenet.hut.fi

To:   Tom Williams/HQ/dssi
cc:   crossgcc@sourceware.cygnus.com
Subject:  Re: more Linux --> AIX cross compiler questions




> 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:
>
>
/mnt/disk2/aixcross/powerpc-ibm-aix4.3.1/bin/ld:/mnt/disk2/aixcross/powerpc
> -ibm-aix4.3.1/lib/libc.a: file format not recognized; treating as linker
script
>
> 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).
 Have you checked the file format ?  If it really is a linker script, just
as
it tells...
 If not, do the other binutils work with it? What does the command
     powerpc-ibm-aix4.3-ar tv libc.a
say about it ?  And does the command:
     powerpc-ibm-aix4.3-nm libc.a
find the symbols in it? These can only tell how bad the situation is...
There
is the README.RS6000 with GCC/egcs sources telling something about the AIX
4.3
archive format being extended to 64-bit etc. Reading it may tell about the
problems with the new archive format...
 What version of binutils you are using? Do the current development
snapshots
at:
   http://sourceware.cygnus.com/binutils
work any better?
 Once I experimented with converting old Xenix/386 OMF-libraries into
i386coff
format with a SCO-provided 'cvtomf' (or something) utility... It succeeded
quite well (the last two Xenix-versions could run i386coff), so a
possibility
to make cross-tools for Xenix/386, or cross-tools for a 'minimal SCO Unix
3.2',
(using only the Xenix-subset of syscalls), was made possible...
 So a method like the previous OMF-COFF conversion could be investigated...
Is
there a 'objcopy'-like program from IBM, which could convert the new-format
libs (the 32-bit-ones, if separate) to the old-format, which the GNU-tools
will
recognize?  Of course I mean that one converts only copies of the original
libs
in AIX, for the cross-development purposes...
 Cheers, 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



More information about the crossgcc mailing list