This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cross gcc linking errors


Hello,
I have built a cross compiler for the powerpc target on a
i686 host.

when I try to cross-compile a test program, the gcc fails
with the message:
[cc@lub cc]$ powerpc-linux-gnu-gcc test.c
/lib/libc.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

where did I mistake ? Here are the commands that I executed
to prepare the cross-compiler:


I built binutils with the following command:

cd binutils-2.11.2; ./configure --host=$HOST \
--target=$TARGET --build=$BUILD --disable-nls 2>&1 |
tee $LOGFILE && \
make all install 2>&1 | tee -a $LOGFILE
I have copied the ppc libraries (/usr/lib,/headers
respectively into
/usr/local/powerpc-linux-gnu/lib
/usr/local/powerpc-linux-gnu/sys-include

I have built gcc-2.95.3 with
cd gcc-2.95.3 &&
./configure --host=$HOST \
--target=$TARGET --build=$BUILD --disable-nls \
--with-languages=c \
--enable-shared --enable-threads 2>&1 | tee
$LOGFILE \
&& make all install 2>&1 | tee -a $LOGFILE


Thanks in advance,
Ludovico Basili



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]