[U-Boot-Users] U-Boot compile error using m68k-elf-gcc 3.4

Vincent Ng vincent.ng at okulus.com
Thu Jul 1 00:13:30 CEST 2004


Hi all,

I'm a newbie so please bear with me, as I'm sure it's a simple thing I've
overlooked.
Trying to compile u-boot 1.1.1 for Avnet 5282EVB 
The following error seems to be caused by toolchain (library?) setup:

$make M5282EVB_config
$make

~~snipped~~
m68k-elf-ld -g  -Ttext 0x20000  -L
/usr/local/m68k-uclinux-tools/lib/gcc/m68k-uclinux/3.4.0/../../../../m68k-uc
linux/lib/m5307/msep-data
\
        -o hello_world -e hello_world hello_world.o libstubs.a \
        -L/usr/local/m68k-uclinux-tools/lib/gcc/m68k-uclinux/3.4.0 -lgcc
hello_world.o(.text+0x22): In function `hello_world':
/home/vng/u-boot-1.1.1/examples/hello_world.c:33: undefined reference to
`printf'
hello_world.o(.text+0x28):/home/vng/u-boot-1.1.1/examples/hello_world.c:34:
undefined reference to `get_version'
hello_world.o(.text+0x34):/home/vng/u-boot-1.1.1/examples/hello_world.c:34:
undefined reference to `printf'
~~snipped~~
make[1]: *** [hello_world] Error 1
make[1]: Leaving directory `/home/vng/u-boot-1.1.1/examples'
make: *** [examples] Error 2

Additional Info:
Host Fedora Core 2 (2.6.6-1.427)
M68k-elf-gcc 3.4.0
M68k-elf-ld 2.14.90.08 20040114
Gcc 3.3.3 20040412
Ld 2.15.90.0.3 20040415

I've also successfully built uclinux (20040408, kernel 2.4) and loaded onto
the board using the same toolchain.

Any help/pointer is greatly appreciated!

Regards,

Vince







More information about the U-Boot mailing list