Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AIX architecture problems



Background: AIX 5.2 box.  My mission is to port my company's application
from AIX's native xlC compiler to the GNU toolchain.  I bootstraped gcc
3.4.0 from a gcc 3.3.3 (build for AIX5.1) I downloaded.  I built gcc with
an architecture of "powerpc-ibm-aix5.2.0.0".  I'm still using a binutils
built by someone else.  I can tell you this:

/opt/local/bin/ld: supported targets: aixcoff-rs6000 aix5coff64-rs6000 
srec symbolsrec tekhex binary ihex
/opt/local/bin/ld: supported emulations: aix5ppc
/opt/local/bin/ld: emulation specific options:
  no emulation specific options.

/opt/local/bin/ld -v
GNU ld version 2.14 20030612

I've got all the code compiled using g++ to .o files after some pretty
significant changes, but linking produces output I don't understand.  
Here's a shortened version of the output:

g++ -I. -I../common -I/dkramer/build/dhgcc340/trunk/rogue 
-I/dkramer/build/dhgcc340/trunk/rogue -I/dkramer/build/dh
gcc340/trunk/dbaccess -g   -DDEBUG -D_DEBUG -DRWDEBUG -DUSE_SYB  -DSHOWSQL  
-Daix -DRS6000  -Daix_ansi -D_RWCONFIG=
xsd -DRWTLS7 -DRWDB5  -L/software/sybase/sybase125/OCS-12_5/lib     
-L/dkramer/build/dhgcc340/trunk/lib -DUSE_FS -D
DISABLE_SHLIB_ACCESS=1 -DRW_NO_LEADING_UNDERSCORE  -DRWDB_SYB_DBLIB 
-Wno-deprecated  -o gensql gensql.o rpttype.o
 /dkramer/build/dhgcc340/trunk/lib/rwctlxsd.o       -ltcdbd -lrfac0d  
-lctl52-xsd  -ldbt52-xsd -ltccommond -ltls77-
xsd  -ltcl -lct -lcs -lblk -lnsl -lcomn -lintl -ldl      -lm
/opt/local/bin/ld: warning: powerpc:601 architecture of input file 
`/lib/libm.a(log10.o)' is incompatible with rs6000:6000 output
/opt/local/bin/ld: warning: powerpc:601 architecture of input file 
`/lib/libm.a(tan.o)' is incompatible with rs6000:6000 output
/opt/local/bin/ld: warning: powerpc:601 architecture of input file 
`/lib/libm.a(round.o)' is incompatible with rs6000:6000 output
...
/opt/local/bin/ld: warning: powerpc:601 architecture of input file 
`/opt/gcc3.4.0/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.0/libgcc.a(_divdi3.o)' is incompatible with rs6000:6000 output
/opt/local/bin/ld: warning: powerpc:601 architecture of input file 
`/opt/gcc3.4.0/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.0/libgcc.a(_moddi3.o)' is incompatible with rs6000:6000 output
/opt/local/bin/ld: warning: powerpc:601 architecture of input file 
`/opt/gcc3.4.0/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.0/libgcc.a(_udivdi3.o)' is incompatible with rs6000:6000 output

So does this mean I need to rebuild binutils, or is there some command 
line option I'm missing?

Thanks in advance.  I did STFW, but most of the references I found were
problems with 32/64 bit incompatibilities, which I don't think is the
problem here.

-- 
DDDD   David Kramer         david at thekramers.net       http://thekramers.net
DK KD  
DKK D  Two atoms are walking along.  Suddenly, one stops.
DK KD  The other says, "What's wrong?" "I've lost an electron."
DDDD   "Are you sure?" "I'm positive!"




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org