^

AR# 32968 11.1 EDK - GCC compile results in an undefined reference to "outbyte" error

Keywords: MicroBlaze, PowerPC, GNU, GCC, print, printf, xil_printf

When using the print(), printf(), or xil_printf() functions, GCC results in the following errors:

"./microblaze_0/lib//libxil.a(xil_printf.o): In function 'padding':
/edkgnu/head/mb/build/nt/bld_gcc/gcc/libgloss/microblaze/xil_printf.c:50: undefined reference to 'outbyte'
./microblaze_0/lib//libxil.a(xil_printf.o): In function 'outnum':
/edkgnu/head/mb/build/nt/bld_gcc/gcc/libgloss/microblaze/xil_printf.c:110: undefined reference to 'outbyte'
./microblaze_0/lib//libxil.a(xil_printf.o): In function 'xil_printf':
/edkgnu/head/mb/build/nt/bld_gcc/gcc/libgloss/microblaze/xil_printf.c:150: undefined reference to 'outbyte'
/edkgnu/head/mb/build/nt/bld_gcc/gcc/libgloss/microblaze/xil_printf.c:182: undefined reference to 'outbyte'
/edkgnu/head/mb/build/nt/bld_gcc/gcc/libgloss/microblaze/xil_printf.c:200: undefined reference to 'outbyte'"

The root cause of this error is that stdout is set to "None" in the Software Platform Settings while these print functions need a valid stdout.

To correct this, go to "Software > Software Platform Settings > OS and Libraries" to set a valid stdout and regenerate the libraries.
AR# 32968
Date Created 06/16/2009
Last Updated 06/19/2009
Status Active
Type
Feed Back