[beagleboard] Error compiling Uboot

Hi,

I'm trying to compile U-Boot but I get some errors

Build Environment:
1- Linux version 2.6.32.11-99.fc12.x86_64
(mockbuild@x86-02.phx2.fedoraproject.org) (gcc version 4.4.3 20100127
(Red Hat 4.4.3-4) (GCC) ) #1 SMP Mon Apr 5 19:59:38 UTC 2010

2- Cross compiler version: arm-none-linux-gnueabi-gcc (Sourcery G++
Lite 2009q3-67) 4.4.1
// I have the Lite edition of the Sourcery G++

** What I did **
1- I downloaded the latest UBOOT version from FTP server
           wget ftp://ftp.denx.de/pub/u-boot/u-boot-latest.tar.bz2

2- I extract the file and created a new folder called "output"
         tar -xjf ~/u-boot-latest.tar.bz2
         cd u-boot-2010.03
         mkdir output

Now, I tried to build my image
make O=~/u-boot-2010.03/output CROSS_COMPILE=arm-elf- distclean
make O=~/u-boot-2010.03/output CROSS_COMPILE=arm-elf-
omap3_beagle_config
make O=~/u-boot-2010.03/output CROSS_COMPILE=arm-elf-

I see this error " LOG "

[Ohabib@localhost u-boot-2010.03]$ make O=/media/Iomega_HDD/uboot_tmp/
u-boot-2010.03/output CROSS_COMPILE=arm-elf- distclean
rm -rf /media/Iomega_HDD/uboot_tmp/u-boot-2010.03/output/*
[Ohabib@localhost u-boot-2010.03]$ make O=/media/Iomega_HDD/uboot_tmp/
u-boot-2010.03/output CROSS_COMPILE=arm-elf- omap3_beagle_config
Configuring for omap3_beagle board...
[Ohabib@localhost u-boot-2010.03]$ make O=/media/Iomega_HDD/uboot_tmp/
u-boot-2010.03/output CROSS_COMPILE=arm-elf-
Generating /media/Iomega_HDD/uboot_tmp/u-boot-2010.03/output/include/
autoconf.mk
Generating /media/Iomega_HDD/uboot_tmp/u-boot-2010.03/output/include/
autoconf.mk.dep
for dir in tools examples/standalone examples/api cpu/arm_cortexa8 /
media/Iomega_HDD/uboot_tmp/u-boot-2010.03/cpu/arm_cortexa8/ ; do \
      make -C $dir _depend ; done
make[1]: Entering directory `/media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/tools'
make[1]: Leaving directory `/media/Iomega_HDD/uboot_tmp/u-boot-2010.03/
tools'
make[1]: Entering directory `/media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/media/Iomega_HDD/uboot_tmp/u-boot-2010.03/
tools'
make[1]: Entering directory `/media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/examples/standalone'
make[1]: Leaving directory `/media/Iomega_HDD/uboot_tmp/u-boot-2010.03/
examples/standalone'
make[1]: Entering directory `/media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/examples/standalone'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/media/Iomega_HDD/uboot_tmp/u-boot-2010.03/
examples/standalone'
make[1]: Entering directory `/media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/examples/api'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/media/Iomega_HDD/uboot_tmp/u-boot-2010.03/
examples/api'
make[1]: Entering directory `/media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/cpu/arm_cortexa8'
make[1]: Leaving directory `/media/Iomega_HDD/uboot_tmp/u-boot-2010.03/
cpu/arm_cortexa8'
make[1]: Entering directory `/media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/cpu/arm_cortexa8'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/media/Iomega_HDD/uboot_tmp/u-boot-2010.03/
cpu/arm_cortexa8'
make[1]: Entering directory `/media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/cpu/arm_cortexa8'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/media/Iomega_HDD/uboot_tmp/u-boot-2010.03/
cpu/arm_cortexa8'
make -C tools all
make[1]: Entering directory `/media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/tools'
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /
media/Iomega_HDD/uboot_tmp/u-boot-2010.03/include -idirafter /media/
Iomega_HDD/uboot_tmp/u-boot-2010.03/output/include2 -idirafter /media/
Iomega_HDD/uboot_tmp/u-boot-2010.03/output/include -I /media/
Iomega_HDD/uboot_tmp/u-boot-2010.03/libfdt -I /media/Iomega_HDD/
uboot_tmp/u-boot-2010.03/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -
D__KERNEL_STRICT_NAMES -pedantic -c -o /media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/output/tools/crc32.o /media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/lib_generic/crc32.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /
media/Iomega_HDD/uboot_tmp/u-boot-2010.03/include -idirafter /media/
Iomega_HDD/uboot_tmp/u-boot-2010.03/output/include2 -idirafter /media/
Iomega_HDD/uboot_tmp/u-boot-2010.03/output/include -I /media/
Iomega_HDD/uboot_tmp/u-boot-2010.03/libfdt -I /media/Iomega_HDD/
uboot_tmp/u-boot-2010.03/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -
D__KERNEL_STRICT_NAMES -c -o /media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/output/tools/env_embedded.o /media/Iomega_HDD/uboot_tmp/u-
boot-2010.03/common/env_embedded.c
In file included from /media/Iomega_HDD/uboot_tmp/u-boot-2010.03/
common/env_embedded.c:30:
/media/Iomega_HDD/uboot_tmp/u-boot-2010.03/include/environment.h:137:
error: ‘CONFIG_ENV_SIZE’ undeclared here (not in a function)
make[1]: *** [/media/Iomega_HDD/uboot_tmp/u-boot-2010.03/output/tools/
env_embedded.o] Error 1
make[1]: Leaving directory `/media/Iomega_HDD/uboot_tmp/u-boot-2010.03/
tools'
make: *** [tools] Error 2

Just a quick edit to the above text:

make O=~/u-boot-2010.03/output CROSS_COMPILE=arm-none-linux-gnueabi-
distclean
make O=~/u-boot-2010.03/output CROSS_COMPILE=arm-none-linux-gnueabi-
omap3_beagle_config
make O=~/u-boot-2010.03/output CROSS_COMPILE=arm-none-linux-gnueabi-

Main compiler and I tried arm-elf as well but both fail

Hi!

what about this sequence?

git clone git://git.denx.de/u-boot.git u-boot-main
cd u-boot-main
git checkout --track -b omap3 origin/master

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-

regards,
Max

2010/4/27 Omar <ohhabib@gmail.com>

Same Error ... No changes ...

Thanks man for your reply

I can confirm it builds here with the same procedure under openSuSE 11.3 Milestone 5 x86_64. I have a script which has the following

Thanks a lot sid. It works !!!