mipsel-gcc configuration question
David Daney
ddaney@caviumnetworks.com
Tue Mar 10 17:26:00 GMT 2009
Kövesdi György wrote:
> Hi,
>
> I just installed gcc 3.4.6 on my OpenWrt (running on Asus wl500gp), and
> got the following message:
>
> gcc dummy.c
> /opt/bin/ld: crt1.o: No such file: No such file or directory
>
> In verbose mode I see that the crt1.o is passed without full path to collect2
> (the output is attached), and probably that's why it is not found.
> The crt1.o is installed at /opt/mipsel-linux/lib/crt1.o. I tried to put it in
> other common places (/usr/lib, /usr/local/lib), but it didn't help.
> Where its path can be set? What can be wrong?
>
> Configured with: ../gcc-3.4.6/configure --build=i386-pc-linux-gnu
> --host=mipsel-linux-uclibc --target=mipsel-linux-uclibc
> --prefix=/opt --disable-nls --disable-static
> --with-as=/home/kgy/work/nslu2/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-as
> --with-ld=/home/kgy/work/nslu2/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-ld
> --enable-languages=c,c++ --disable-multilib
Try adding --with-sysroot=/opt to both GCC and Binutils configure lines.
That should allow it to find the standard C library files that you
have installed in /opt
David Daney
More information about the Gcc-help
mailing list