All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] u-boot compilation problem
@ 2004-11-26  6:09 Pradip Singh
  2004-11-26  7:18 ` Marc Leeman
  2004-11-26  7:31 ` Wolfgang Denk
  0 siblings, 2 replies; 6+ messages in thread
From: Pradip Singh @ 2004-11-26  6:09 UTC (permalink / raw)
  To: u-boot

Hi all,
 
  I am porting the U-boot to my custom board which  is arm based. While building the u-boot i get the following compilation error.
 
armv5b-softfloat-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00780000 -I/root/isl/heron_old/u-boot-1.1.1/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/crosstool/armv5b-softfloat-linux/gcc-3.4.1-glibc-2.3.3/lib/gcc/armv5b-softfloat-linux/3.4.1/include -pipe  -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv5te -mbig-endian -Wall
-Wstrict-prototypes -c -o hello_world.o hello_world.c
armv5b-softfloat-linux-ld -g -EB -Ttext 0x000007fc0 \
        -o hello_world -e hello_world hello_world.o libstubs.a \
        -L/opt/crosstool/armv5b-softfloat-linux/gcc-3.4.1-glibc-2.3.3/lib/gcc/armv5b-softfloat-linux/3.4.1 -lgcc
hello_world.o(.text+0x1c): In function `hello_world':
/root/isl/heron_old/u-boot-1.1.1/examples/hello_world.c:44: undefined reference
to `printf'
hello_world.o(.text+0x20):/root/isl/heron_old/u-boot-1.1.1/examples/hello_world.c:45: undefined reference to `get_version'
hello_world.o(.text+0x2c):/root/isl/heron_old/u-boot-1.1.1/examples/hello_world.c:45: undefined reference to `printf'
hello_world.o(.text+0x34):/root/isl/heron_old/u-boot-1.1.1/examples/hello_world.c:47: undefined reference to `printf'
hello_world.o(.text+0x44):/root/isl/heron_old/u-boot-1.1.1/examples/hello_world.c:49: undefined reference to `printf'
hello_world.o(.text+0x6c):/root/isl/heron_old/u-boot-1.1.1/examples/hello_world.c:52: undefined reference to `printf'
 
Any clue what this problem can Be?
 
Thanks and regards,
Pradip


Yahoo! India Matrimony: Find your life partneronline.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20041126/fbdb8019/attachment.htm 

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [U-Boot-Users] u-boot compilation problem
@ 2004-11-26  8:33 Vandendriessche, Dirk
  0 siblings, 0 replies; 6+ messages in thread
From: Vandendriessche, Dirk @ 2004-11-26  8:33 UTC (permalink / raw)
  To: u-boot

>> quick-n-dirty:
>> put the following in your file >:)
>> #define printf(args...)  do { } while(0)

even better
#define printf() 
(replace by nothing)

Dirk.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20041126/cd8befe4/attachment.htm 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-11-26 10:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-26  6:09 [U-Boot-Users] u-boot compilation problem Pradip Singh
2004-11-26  7:18 ` Marc Leeman
2004-11-26  7:31 ` Wolfgang Denk
2004-11-26  8:53   ` Pradip Singh
2004-11-26 10:02     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-11-26  8:33 Vandendriessche, Dirk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.