Skip to contentSkip to conversation

zlib: updated to v.1.2.3

PATCH New Asokan 2 participants 5 messages Nov 10, 2010 – Nov 12, 2010

lore
Share & tools
lore

Asokan

#0 lore raw

PATCH 1/1 zlib: updated to v.1.2.3

Hi,

I have been trying to build Uboot for an at91sam9263ek board and been observing the following error while building the uboot code( using the UBOOT version: u-boot-2009.11.1.tar.bz2)

/home/wd/git/u-boot/work/lib_generic/crc32.c:157: error: conflicting types for 'crc32'

/home/wd/git/u-boot/work/include/u-boot/zlib.h:667: error: previous declaration of 'crc32' was here

make[1]: *** [crc32.o] Error 1

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?

Thanks,

Shyama Asokan.

#1 lore raw

PATCH 1/1 zlib: updated to v.1.2.3

Dear "Asokan, Shyama Trikkadeeri",

Quoted 4 lines · In message <575ED9D63B7E244BBB3786A299ACBBA08AF53F@IE10EV813.global.ds.honeywel…

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

Signature · 6 lines
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
#2 lore raw

PATCH 1/1 zlib: updated to v.1.2.3

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@IE10EV813.global.ds.honeywell.co

Quoted 3 lines · 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

Quoted 1 line

has this fixed?

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

Best regards,

Wolfgang Denk

Signature · 6 lines
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
#3 lore raw

PATCH 1/1 zlib: updated to v.1.2.3

Dear "Asokan, Shyama Trikkadeeri",

Quoted 10 lines · In message <575ED9D63B7E244BBB3786A299ACBBA08E753B@IE10EV813.global.ds.honeywel…

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-

I cannot reproduce that problem here:

-> git checkout v2010.09
-> ./MAKEALL at91sam9263ek
Configuring for at91sam9263ek board...
atmel_dataflash_spi.c:25:2: warning: #warning Please update to use C structur SoC access ! atmel_usart.c:21:2: warning: #warning Please update to use C structur SoC access !
text data bss dec hex filename
189494 34359 268312 492165 78285 ./u-boot

--------------------- SUMMARY ---------------------------- Boards compiled: 1
Boards with warnings or errors: 1 ( at91sam9263ek )
----------------------------------------------------------

Maybe you have old cruft laying around from previous builds? Make sure to run "make mrproper" before the "make at91sam9263ek_config"

Best regards,

Wolfgang Denk

Signature · 5 lines
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
What is mind?  No matter.  What is matter?  Never mind.
                                      -- Thomas Hewitt Key, 1799-1875
#4 lore raw

PATCH 1/1 zlib: updated to v.1.2.3

This is the developer's reply.

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Friday, November 12, 2010 2:17 PM
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 <575ED9D63B7E244BBB3786A299ACBBA08E753B@IE10EV813.global.ds.honeywell.co

Quoted 2 lines · m> you wrote:

As you had suggested I tried build u-boot with one of the 2010.09v.

But

Quoted 8 lines

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-

I cannot reproduce that problem here:

-> git checkout v2010.09
-> ./MAKEALL at91sam9263ek
Configuring for at91sam9263ek board... atmel_dataflash_spi.c:25:2: warning: #warning Please update to use C structur SoC access !
atmel_usart.c:21:2: warning: #warning Please update to use C structur SoC access !
text data bss dec hex filename
189494 34359 268312 492165 78285 ./u-boot

--------------------- SUMMARY ---------------------------- Boards compiled: 1
Boards with warnings or errors: 1 ( at91sam9263ek )
----------------------------------------------------------

Maybe you have old cruft laying around from previous builds? Make sure to run "make mrproper" before the "make at91sam9263ek_config"

Best regards,

Wolfgang Denk

Signature · 5 lines
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
What is mind?  No matter.  What is matter?  Never mind.
                                      -- Thomas Hewitt Key, 1799-1875