[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] missing -lxil



Hi Emanuel,

emanuel stiebler wrote:

> Downloaded microblaze-elf-tools-20040603,
> adjusted my PATH, and tried as in the documentation the test.c,
> to checkout the toolchain. However, I get:
> vpresa# mb-gcc test.c
> /VDATA/MB-TOOLS/bin/mb-ld.real: cannot find -lxil
> 
> So, something obvoius for all of you, but what ?

Running gcc without the '-c' option will compile and attempt to link, 
and by default mb-gcc will try to link against the xilinx library 
libxil.a.  It provides functions like print, putnum, xil_printf to name 
a few.

If you look at the makefiles created by XPS, you can see how they 
provide the path to the libxil.a file.

Your solution depends on what you are doing.  If you are trying to make 
a uClinux executable, you need to either integrate you application into 
uClinux-dist (v. easy, discussed many times before), or follow Yashi's 
advice on doing an out-of-tree app build.

http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux/wiki/index.php/OutTreeCompile

If you are trying to build standalone microblaze code (non-uClinux), 
then take a look at a Makefile generated by XPS, to see the command line 
tyhey use.  There will be a -L parameter passed to mb-gcc - that 
specifies the directory in which to find the libxil.a file.

I need to FAQ this one!

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/