[U-Boot] Error while compiling U-Boot for beagleboard

Dirk Behme dirk.behme at googlemail.com
Sat Nov 7 14:46:59 CET 2009


Chetan Nanda wrote:
> Hi List,
> 
> I am trying to compile U-Boot for beagleboard. I have run following
> commands:
> 
> make CROSS_COMPILE=arm-none-linux-gnueabi- mrproper
> make CROSS_COMPILE=arm-none-linux-gnueabi- omap3_beagle_config
> make CROSS_COMPILE=arm-none-linux-gnueabi-
> 
> But it resulted in following error:
> 
> make[1]: Entering directory
> `/media/DISK_VOL2/Work/beagleboard/sw/code/uboot/u-boot-main/lib_arm'
> arm-none-linux-gnueabi-gcc  -g  -Os   -fno-common -ffixed-r8 -msoft-float
> -D__KERNEL__ -DTEXT_BASE=0x80e80000
> -I/media/DISK_VOL2/Work/beagleboard/sw/code/uboot/u-boot-main/include
> -fno-builtin -ffreestanding -nostdinc -isystem
> /root/CodeSourcery/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/include
> -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork
> -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector   -o board.o
> board.c -c
> board.c:96: error: inline function 'coloured_LED_init' cannot be declared
> weak
> board.c:98: error: inline function 'red_LED_on' cannot be declared weak
> board.c:100: error: inline function 'red_LED_off' cannot be declared weak
> board.c:102: error: inline function 'green_LED_on' cannot be declared weak
> board.c:104: error: inline function 'green_LED_off' cannot be declared weak
> board.c:106: error: inline function 'yellow_LED_on' cannot be declared weak
> board.c:108: error: inline function 'yellow_LED_off' cannot be declared weak
> board.c:110: error: inline function 'blue_LED_on' cannot be declared weak
> board.c:112: error: inline function 'blue_LED_off' cannot be declared weak
> 
> I get the U-Boot code from Git repository few days back using:
> 
> git clone git://git.denx.de/u-boot.git u-boot-main
> cd u-boot-main
> git checkout --track -b omap3 origin/master

Could you try

http://lists.denx.de/pipermail/u-boot/2009-November/063601.html

?

What is your output of

arm-none-linux-gnueabi-gcc -v

?

If it's older than

gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203)

please try to update your tool chain.

Best regards

Dirk



More information about the U-Boot mailing list