[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Microblaze GNU Toolchain
Hi BG,
Laboratoire LASSO wrote:
> I have installed the Microblaze GNU Toolchain Linux Binaries on my
> computer.
>
> When I tried
>
> mb-gcc test.c
>
> usr/share/ecos/gnutools/microblaze-elf/bin/../lib/gcc-lib/microblaze/2.95.3-4/../../../../microblaze/lib/libc.a(write.o): In function `write':
>
> write.o(.text+0x34): undefined reference to `outbyte'
>
> write.o(.text+0x4c): undefined reference to `outbyte'
Are you hoping to generate a uClinux application, or a "standalone"
microblaze program?
Either way, you can't do it just like this. The compiler doesn't know
where to find the library files.
To generate an application to run under uClinux, integrate it within the
/uClinux-dist/user hierarchy, and create a Makefile etc (see any of the
other /user/ apps for details). This is necessary to get it to link
properly against uClibc.
Or, to generate a stand-alone microblaze program, you need to specify
the libs explicitly. One way of doing this is look at the mb-gcc
command lines generated by Platform Studio, and copy accordingly.
> mb-gcc–c test.c
>
> Works well. I get test.o
Yes, because it's only compiling, not linking.
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/