[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Newbie problem with tool chain
Hi Gunter,
Günter Dannoritzer wrote:
> I downloaded the binary tool chain (new release from Aug. ) and set the path variable to the place I unpacked it to. When I perform the test of the tool chain by compiling the given small program with the command
>
> $ mb-gcc -c test.c
>
> I only get a test.o file.
That sounds right so far - at least the compiler is working.
> If I compile it with the command
>
> $ mb-gcc test.c
>
> I get the error message:
>
> /usr/local/microblaze-elf-tools/bin/mb-ld.real: cannot find -lxil
Copy the libxil.a file from a windows EDK installation into the linux
toolchain. Under windows, it lives in /edk/sw/lib/microblaze/
Assuming you installed the linux tools into
/usr/local/microblaze-elf-tools, then you want to place libxil.a in
/usr/local/microblaze-elf-tools/microblaze/lib/
That fixes the "can't find -lxil" message, however you will also need to
compile and link the various libraries that the EDK normally creates in
an EDK project directory. Look at the makefile that EDK creates
(normally called system.make or similar), and find the "program:"
target, you should see what other files must be specified. They will
live somewhere like [projectname]/microblaze_0/libsrc
This is not a problem when linking uclinux-targeted programs because all
of the necessary libraries are provided by uClibc, which is the C
library we use for uclinux.
Let me know if you still have problems - I haven't tried making "normal"
edk microblaze programs under Linux, but I'm sure it can be done.
Note that when EDK6.1 comes out (I think end of septerm is target
release date?), it will have native linux support anyway, so all of this
should become unnecessary.
Regards,
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/