bug-binutils
[Top][All Lists]
Advanced

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

Bug: finding libc.so in cross link with LD


From: J.N. Helal
Subject: Bug: finding libc.so in cross link with LD
Date: Mon, 24 Nov 2003 10:21:44 +0100

Hi

I have problem with Binutils 2.14 LD when trying to install gcc2.95.3 as a
cross compilator

1) I use
- host=686 mandrake 7.3
- target=powerpc-linux
- binutils 2.14
- gcc 2.95.3

2) Binutils install seems to be ok
--target=powerpc-linux
--prfix=/usr/local (same as GCC)

3) gcc install fails dutring liniberty check wether "xgcc work" at that time
i think make all is trying to compile and link with the target (PPC)
compiler and LD. But the error is that LD cannont find libc.so (it first
"skip incompatible library" then noot found

****Config.log
make[2]: Leaving directory
`/data/users/jeanno/gnu/gcc-2.95.3/powerpc-linux/libiberty'
make[1]: Leaving directory
`/data/users/jeanno/gnu/gcc-2.95.3/powerpc-linux/libstdc++'
configure:1765:
/data/users/jeanno/gnu/gcc-2.95.3/gcc/xgcc -B/data/users/jeanno/gnu/gcc-2.95
.3/gcc/ -B/usr/local/powerpc-linux/bin/ -o conftest -g -O2   conftest.c
1>&5
             ******************************
/usr/local/powerpc-linux/bin/ld: skipping incompatible /lib/libc.so.6 when
searching for /lib/libc.so.6

4) When replacing Binutils 2.14 by Binutils 2.11, i noted ld 2.11 simply
indicates it cannot load symbols
****************************************************************************
********************

5) Then i try to cross compile for PPC (with xgcc) a "hellow world" program
and the same occurs whether with -L option on ld invocation
               -Wl,-L on gcc invocation

5) I have also checked that xgcc actually generated powerpc code ...

6) i found from http://www.kegel.com/crosstool/ that something like this was
an already "reported bug"

Thanks for your help

Best regards

J.N. Helal





reply via email to

[Prev in Thread] Current Thread [Next in Thread]