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? Thanx in advance K. Gy.
/mnt/usbdrive/work/x# gcc -v x.c Using built-in specs. 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 Thread model: posix gcc version 3.4.6 /mnt/usbdrive/bin/../libexec/gcc/mipsel-linux-uclibc/3.4.6/cc1 -quiet -v -iprefix /mnt/usbdrive/bin/../lib/gcc/mipsel-linux-uclibc/3.4.6/ x.c -quiet -dumpbase x.c -auxbase x -version -o /tmp/ccfoczAg.s ignoring nonexistent directory "/mnt/usbdrive/bin/../lib/gcc/mipsel-linux-uclibc/3.4.6/../../../../mipsel-linux-uclibc/include" ignoring duplicate directory "/opt/lib/gcc/mipsel-linux-uclibc/3.4.6/include" ignoring nonexistent directory "/opt/lib/gcc/mipsel-linux-uclibc/3.4.6/../../../../mipsel-linux-uclibc/include" ignoring nonexistent directory "/usr/include" #include "..." search starts here: #include <...> search starts here: /mnt/usbdrive/bin/../lib/gcc/mipsel-linux-uclibc/3.4.6/include /usr/local/include /opt/include End of search list. GNU C version 3.4.6 (mipsel-linux-uclibc) compiled by GNU C version 4.1.1. GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 as -EL -no-mdebug -32 -v -KPIC -o /tmp/ccSvQL5I.o /tmp/ccfoczAg.s GNU assembler version 2.17 (mipsel-linux) using BFD version 2.17 /mnt/usbdrive/bin/../libexec/gcc/mipsel-linux-uclibc/3.4.6/collect2 --eh-frame-hdr -EL -dynamic-linker /lib/ld-uClibc.so.0 crt1.o crti.o /mnt/usbdrive/bin/../lib/gcc/mipsel-linux-uclibc/3.4.6/crtbegin.o -L/mnt/usbdrive/bin/../lib/gcc/mipsel-linux-uclibc/3.4.6 -L/mnt/usbdrive/bin/../lib/gcc -L/opt/lib/gcc/mipsel-linux-uclibc/3.4.6 -L/mnt/usbdrive/bin/../lib/gcc/mipsel-linux-uclibc/3.4.6/../../.. -L/opt/lib/gcc/mipsel-linux-uclibc/3.4.6/../../.. /tmp/ccSvQL5I.o -lgcc --as-needed -lgcc_s --no-as-needed -rpath-link /lib:/usr/lib -lc -lgcc --as-needed -lgcc_s --no-as-needed /mnt/usbdrive/bin/../lib/gcc/mipsel-linux-uclibc/3.4.6/crtend.o crtn.o /opt/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status