Error while compiling U-Boot for beagleboard
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.oboard.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
Am I missing anything here?
Thanks,
Chetan Nanda
Quoted 32 lines · Chetan Nanda
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_configmake 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(quoted diff) +0
-3-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(quoted diff) +0
-2-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
Quoted 5 lines
I get the U-Boot code from Git repository few days back using:
git clone
git://git.denx.de/u-boot.gitu-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
Quoted 48 lines · Dirk Behme
Quoted 37 lines · Chetan Nanda
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_configmake 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(quoted diff) +0
-3-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(quoted diff) +0
-3-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 weakQuoted 6 lines
I get the U-Boot code from Git repository few days back using:
git clone
git://git.denx.de/u-boot.gitu-boot-main cd u-boot-main
git checkout --track -b omap3 origin/masterCould you try
Hi Dirk,
Thanks, this patch indeed fix the compilation issue.
Quoted 11 lines
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)
Quoted 7 lines
please try to update your tool chain.
Best regards
Dirk
Thanks,
Chetan Nanda