[U-Boot-Users] problem about building u-boot
刘勇
ly at ncic.ac.cn
Fri Aug 27 09:45:49 CEST 2004
U-Boot-Users
i have got a cross complier for powerpc. and then
after i finish these commands,i get some errores.
(1) make OCOTEA_config
(2) make
powerpc-linux-ld -g -Ttext 0x40000 \
-o hello_world -e hello_world hello_world.o libstubs.a \
-L/home/linkroot/crossppc/bin/../lib/gcc/powerpc-linux/3.4.1 -lgcc
hello_world.o(.text+0x3c): In function `hello_world':
/home/linkroot/boot/u-boot-1.1.1/examples/hello_world.c:33: undefined reference to `printf'
hello_world.o(.text+0x40):/home/linkroot/boot/u-boot-1.1.1/examples/hello_world.c:34: undefined reference to `get_version'
hello_world.o(.text+0x4c):/home/linkroot/boot/u-boot-1.1.1/examples/hello_world.c:34: undefined reference to `printf'
hello_world.o(.text+0x58):/home/linkroot/boot/u-boot-1.1.1/examples/hello_world.c:36: undefined reference to `printf'
hello_world.o(.text+0x64):/home/linkroot/boot/u-boot-1.1.1/examples/hello_world.c:38: undefined reference to `printf'
hello_world.o(.text+0x90):/home/linkroot/boot/u-boot-1.1.1/examples/hello_world.c:41: undefined reference to `printf'
hello_world.o(.text+0xa0):/home/linkroot/boot/u-boot-1.1.1/examples/hello_world.c:46: undefined reference to `printf'
hello_world.o(.text+0xa4):/home/linkroot/boot/u-boot-1.1.1/examples/hello_world.c:47: undefined reference to `tstc'
hello_world.o(.text+0xb0):/home/linkroot/boot/u-boot-1.1.1/examples/hello_world.c:50: undefined reference to `getc'
hello_world.o(.text+0xb8):/home/linkroot/boot/u-boot-1.1.1/examples/hello_world.c:52: undefined reference to `printf'
make[1]: *** [hello_world] Error 1
make[1]: Leaving directory `/home/linkroot/boot/u-boot-1.1.1/examples'
make: *** [examples] Error 2
it says about undefined reference to printf. but the common DIR is not compiled.
somebody help me.
ly at ncic.ac.cn
2004-08-27
More information about the U-Boot
mailing list