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]

Re: *** SPAM ***why my cross-gcc cannot find system root libs?


Loody,
All,

On Sunday 20 September 2009 10:43:22 loody wrote:
> 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.

ld.pdf ?

> 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

Can you re-run with --verbose ?

Was that line hand-written, or was it generated by an "upper-layer" tool
(such as gcc)?

> # mipsel-unknown-linux-uclibc-gcc -v

ld comes from binutils, not gcc, so gcc can't tell you how ld will find
it libraries.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'



--
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]