[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] missing -lxil
John Williams wrote:
> 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 said it is obvious ;-)
> I need to FAQ this one!
I thought, I just did what is described on "All about toolchains"
.../mblaze-uclinux/documentation/toolchains.html
and forgot the "-c" switch, because you were talking about a.out there.
So, pretty much the last paragraph should state, that you shouldn't get
any error messages, and the file "test.o" should be in this directory ...
As I said before, trying to get the whole toolchain/uclinux working on
my machine (Fedora-Core-2) and checking the documentation on my way.
Hope it helps the next guy ;-)
cheers
___________________________
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/