This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Sun, Sep 20, 2009 at 1:43 AM, loody <miloody@gmail.com> wrote: > dear all: > I attach my error at the end of letter. > I did see libc.a in sysroot/usr/lib, but my ld complains he cannot find it. > I also check the options I set in ld.pdf but it seems all fine. > did I miss something while build the toolchain? > appreciate your help, > miloody > > mipsel-unknown-linux-uclibc-ld -T ./link.xn -o TestCode.elf -Map > TestCode.map --oformat elf32-tradlittlemips Âreset.o cpufunc.o host.o > Interrupt.o main.o memtst.o ntsys.o diskio.o FileSystem.o tff.o misc.o > DMA.o GPIO.o SDMMC.o Storage.o ntuart.o uart.o -static -lc > mipsel-unknown-linux-uclibc-ld: cannot find -lc > make: *** [TestCode.elf] Error 1 you are using your own linker script link.xn which is the reason for this error. You should add SEARCH_DIR in the linker script. something like SEARCH_DIR("=/usr/lib"); or you should add -L <yoursysrootdir>/usr/lib to the commandline. -Khem -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |