[clug] Changing gcc/ld's library path
duncan_roe at acslink.net.au
Thu Apr 18 15:53:20 MDT 2013
On Fri, Apr 19, 2013 at 12:25:36AM +1000, Adam Baxter wrote:
> Hi all,
> I'm messing around with more embedded development - this time a
> Netgear MIPS based router.
> I'm trying to test my toolchain with hello world, but I'm running into
> the following:
> >mipsel-linux-uclibc-gcc -I/opt/brcm/mipsel_gcc-4.3.3_uclibc-0.9.30.1/usr/include/ hello.c -B/opt/brcm/mipsel_gcc-4.3.3_uclibc-0.9.30.1/usr/lib
> cannot find /lib/libc.so.0
> collect2: ld returned 1 exit status
> I don't want the mipsel gcc to try to use my x64 /lib so what am I
> missing to get it to search in the right place?
mipsel gcc is not trying to use your x64 libc. That would be /lib64/libc.so.6:
different directory and different library revision.
It looks like your mipsel glibc is simply not isntalled - what is it called if
it is installed?
Cheers ... Duncan.
More information about the linux