[U-Boot] [PATCH] zlib: updated to v.1.2.3

Asokan, Shyama Trikkadeeri Shyama.Asokan at Honeywell.com
Fri Nov 12 07:38:35 CET 2010


Hi Wolfgang,

As you had suggested I tried build u-boot with one of the 2010.09v. But
I observe the same failures in them. The configuration step of u-boot
for the boards works fine but the cross-compiling shows the same crc32
error.  
 
$ make at91sam9263ek_config
Configuring for at91sam9263ek board...

$ make CROSS_COMPILE=arm-linux-
for dir in tools examples/standalone examples/api arch/arm/cpu/arm926ejs
/home/R
anga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-rc1/arch/arm/cpu/arm926ejs/
; do \
                make -C $dir _depend ; done
make[1]: Entering directory
`/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-
rc1/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-r
c1/tools'
make[1]: Entering directory
`/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-
rc1/examples/standalone'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-r
c1/examples/standalone'
make[1]: Entering directory
`/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-
rc1/examples/api'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-r
c1/examples/api'
make[1]: Entering directory
`/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-
rc1/arch/arm/cpu/arm926ejs'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-r
c1/arch/arm/cpu/arm926ejs'
make[1]: Entering directory
`/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-
rc1/arch/arm/cpu/arm926ejs'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-r
c1/arch/arm/cpu/arm926ejs'
make -C tools all
make[1]: Entering directory
`/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-
rc1/tools'
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter
/home/Ranga
/MyPrj/LinuxPort/bootldr/u-boot-2010.09-rc1/include -idirafter
/home/Ranga/MyPrj
/LinuxPort/bootldr/u-boot-2010.09-rc1/include2 -idirafter
/home/Ranga/MyPrj/Linu
xPort/bootldr/u-boot-2010.09-rc1/include -I
/home/Ranga/MyPrj/LinuxPort/bootldr/
u-boot-2010.09-rc1/lib/libfdt -I
/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010
.09-rc1/tools -DTEXT_BASE=0x23f00000 -DUSE_HOSTCC
-D__KERNEL_STRICT_NAMES -ansi
-pedantic -c -o crc32.o
/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-rc1/l
ib/crc32.c
In file included from
/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-rc1/lib
/crc32.c:20:
/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-rc1/include/u-boot/zl
ib.h:667
: error: conflicting types for 'crc32'
/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-rc1/include/u-boot/cr
c.h:29:
error: previous declaration of 'crc32' was here
/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-rc1/include/u-boot/zl
ib.h:667
: error: conflicting types for 'crc32'
/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-rc1/include/u-boot/cr
c.h:29:
error: previous declaration of 'crc32' was here
/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-rc1/lib/crc32.c:220:
error: c
onflicting types for 'crc32'
/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-rc1/include/u-boot/zl
ib.h:667
: error: previous declaration of 'crc32' was here
/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-rc1/lib/crc32.c:220:
error: c
onflicting types for 'crc32'
/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-rc1/include/u-boot/zl
ib.h:667
: error: previous declaration of 'crc32' was here
make[1]: *** [crc32.o] Error 1
make[1]: Leaving directory
`/home/Ranga/MyPrj/LinuxPort/bootldr/u-boot-2010.09-r
c1/tools'
make: *** [tools] Error 2



I am a newbie to U-boot and linux, so please let me know if I am going
wrong anywhere. Here are the steps I have followed. 

1) I have an at91sam9263ek_config board and I built my toolchain and am
trying to build u-boot using cygwin environment. 
2) My toolchain was built without errors but I did not include at91
specific linux header files while building my toolchain - could this
affect building u-boot?
3) Is there any compatibility between linux kernel and uboot version I
need to take into account while building u-boot?
4)  I also observed one more thing: I receive compile errors mentioned
above, only from the third time I run the CROSS_COMPILE command. The
first two times I run it, I receive a lot more erros.

Please let me know if there is anything I have missed out.

Regards,
Shyama. 



-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de] 
Sent: Thursday, November 11, 2010 1:32 AM
To: Asokan, Shyama Trikkadeeri
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH] zlib: updated to v.1.2.3

Dear "Asokan, Shyama Trikkadeeri",

In message
<575ED9D63B7E244BBB3786A299ACBBA08AF53F at IE10EV813.global.ds.honeywell.co
m> you wrote:
>
> It looks like there has been a mail chain regarding this compile error
> and it has also been fixed. Can someone let me know which uboot
version
> has this fixed?

Please use latest stable (i. e. the last release version, v2010.09) or
top of tree.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
e-credibility: the non-guaranteeable likelihood that  the  electronic
data you're seeing is genuine rather than somebody's made-up crap.
- Karl Lehenbauer


More information about the U-Boot mailing list