[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Gcc build bug?
Hi Scott,
Scott Thibault wrote:
> I get the following error building on windows using the EDK microblaze
> tools, but linking with the libraries from the John's toolchain build:
> /home/sid/builds/EDK_Gm/env/Jobs/MDT/sw/lin/gnu1/newlib_bld/libgloss/mic
> roblaze/floatlib/subdf3.c:70: undefined reference to `outbyte'
>
> Is this a problem with the gcc libs, or am I somehow getting references
> the the EDK built libraries in my code? John, does that path look like
> its from your build?
the outbyte() function is provided by one of xilinx custom
drivers/librarires, not the generic libgcc / newlib. It is referenced
when the function "print" is called. Normally in a MSS file you
specifiy PARAMETER STDOUT= console_uart, or whatever, that causes the
driver code to be copied in an compiled, with the uartlite providing the
outbyte() function.
When building a uClinux application, the "undefined symbol outbyte"
error is usually caused by a typo in the source code - using "print"
instead of "printf"
Hope this helps,
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/