Cross gcc on linux with aix5.2 target

Andreas Fladischer andreas.fladischer@ecofinance.com
Wed Jul 26 13:13:00 GMT 2006


Hi@all!

I'm trying to create a cross compilier!i'm running fedora core3 and here 
i've builded the binutils2.16 and the gcc bootstrap. everything worked 
fine but if i try to compile the gcc the following error occour:

/opt/gcc346-aix5.2/powerpc-ibm-aix5.2.0.0/bin/ld: -static and -shared 
may not be used together
collect2: ld returned 1 exit status
powerpc-ibm-aix5.2.0.0-ar: ppc64/shr.o: No such file or directory
/opt/gcc346-aix5.2/powerpc-ibm-aix5.2.0.0/bin/nm: /usr/lib/libc.a: File 
format not recognized
collect2: /opt/gcc346-aix5.2/powerpc-ibm-aix5.2.0.0/bin/nm returned 1 
exit status
mv: cannot stat `tmp-libgcc_s_ppc64.a': No such file or directory
powerpc-ibm-aix5.2.0.0-ar: pthread/ppc64/shr.o: No such file or directory
mv: cannot stat `tmp-libgcc_s_pthread_ppc64.a': No such file or directory
make[2]: Leaving directory `/tmp_mnt/big/logins/fla/build-gcc/gcc'
echo timestamp > stmp-multilib
make[1]: Leaving directory `/tmp_mnt/big/logins/fla/build-gcc/gcc'


i've compiled the gcc with the following command:
../gcc-3.4.6/configure --target=$TARGET --prefix=$PREFIX 
--enable-languages=c --with-local-prefix=${PREFIX}/${TARGET} 
--with-gnu-as --with-gnu-ld --with-headers=${PREFIX}/usr/include 
--with-libs=${PREFIX}/usr/lib --with-sysroot=${PREFIX}

where TARGET=powerpc-ibm-aix5.2.0.0
PREFIX=/opt/gcc346-aix5.2

i've also copied the /lib/ and /usr/include to the linux computer!

i hope anyone can help me!

with best regards and many thanks

Andreas


--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list