This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Re: mipsel-gcc configuration question


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




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