[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] Gcc build bug?
Hi,
It was my fault, I had a call to xil_printf in my program. I was
confused by the error message which indicated that the undefined
reference was in subdf3.c. I guess I should have know because gcc never
has been good about reporting where undefined references are really
coming from.
During my investigation, I found that xil_printf was defined in
libc_hard_shift.a and of course calls outbyte. It seems to me that
xil_printf should not be included in the uClinux libc if it does not
work.
--Scott
> -----Original Message-----
> From: owner-microblaze-uclinux@itee.uq.edu.au
> [mailto:owner-microblaze-uclinux@itee.uq.edu.au] On Behalf Of
> John Williams
> Sent: Tuesday, November 09, 2004 4:42 PM
> To: microblaze-uclinux@itee.uq.edu.au
> Subject: 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/m
> > ic
> > 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/
___________________________
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/