OE build error

Hello,
        I am trying to build a native Angstrom image. I am facing the
following error. The error has been obviously been made quite
explicit. Though being a newbie, I am unable to figure out what it
relates to. Any pointers would be appreciated.

gzip: stdin: invalid compressed data--crc error
tar: Child returned status 1
tar: Exiting with failure status due to previous errors
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/dixit/projects/beagle/angstrom-setup-scripts/
sources/openembedded/recipes/expat/expat_2.0.1.bb do_unpack failed
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 248 of 4604 (ID: 1597, virtual:native:/home/dixit/
projects/beagle/angstrom-setup-scripts/sources/openembedded/recipes/
gettext/gettext_0.18.bb, do_install)
ERROR: Task 1757 (/home/dixit/projects/beagle/angstrom-setup-scripts/
sources/openembedded/recipes/expat/expat_2.0.1.bb, do_unpack) failed
with 256
NOTE: package gettext-native-0.18-r1: task do_install: Started
NOTE: Running task 391 of 4604 (ID: 1757, /home/dixit/projects/beagle/
angstrom-setup-scripts/sources/openembedded/recipes/expat/
expat_2.0.1.bb, do_unpack)
NOTE: package expat-2.0.1-r3: task do_unpack: Started
NOTE: Unpacking ../../build/downloads/expat-2.0.1.tar.gz to ../../
build/tmp-angstrom_2008_1/work/armv7a-angstrom-linux-gnueabi/
expat-2.0.1-r3/
NOTE: Task failed:
NOTE: package expat-2.0.1-r3: task do_unpack: Failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/dixit/projects/beagle/angstrom-setup-scripts/
sources/openembedded/recipes/expat/expat_2.0.1.bb do_unpack failed
ERROR: Task 1757 (/home/dixit/projects/beagle/angstrom-setup-scripts/
sources/openembedded/recipes/expat/expat_2.0.1.bb, do_unpack) failed
with 256
Waiting for 1 active tasks to finish:
1: gettext-native-0.18-r1 do_install (pid 22753)
ERROR: '/home/dixit/projects/beagle/angstrom-setup-scripts/sources/
openembedded/recipes/expat/expat_2.0.1.bb' failed
NOTE: package gettext-native-0.18-r1: task do_install: Succeeded
ERROR: '/home/dixit/projects/beagle/angstrom-setup-scripts/sources/
openembedded/recipes/expat/expat_2.0.1.bb' failed
ERROR: '/home/dixit/projects/beagle/angstrom-setup-scripts/sources/
openembedded/recipes/expat/expat_2.0.1.bb' failed

Looks like a corrupted file.

Regards
cww

Vijay wrote:

Got the same error myself this week.

Problem is that gzip seems to have a bug in certain distributions. (I
use latest Ubuntu.)

What I did to get past it was to copy the expat-2.0.1.tar.gz file to
another machine (which runs RedHat) and do:

$ gunzip expat-2.0.1.tar.gz

$ gzip -1 expat-2.0.1.tar

$ md5sum expat-2.0.1.tar.gz
$ sha256sum expat-2.0.1.tar

Copy the file back, edit expat_2.0.1.bb and update it with the new
MD5/SHA256 sums, modify the PR variable and then start the build again.

Regards,

This specific occasion with expat_2.0.1 actually points at a faulty
gzip. You can try to do a manual workaround by extracting and
repacking the archive with gzip recovery tools (see the Error #1 in
http://maltanar.blogspot.com/2010/05/openembedded-on-ubuntu-1004.html)
or get the latest working version of gzip (for which I posted some
instructions at
http://maltanar.blogspot.com/2010/05/getting-working-gzip.html).

Regards,
Yaman

I had the same problem on machines running ubuntu 10.04 lucid.
I solved it by installing the gzip package from ubuntu 8.04 hardy.
The package from 8.10 intrepid might also work well. Then try opening
the expat file manually.

After you have installed the "new" old gzip package you must be
carefull when you update ubuntu. The systems now wants to update gzip
but you don't want it.

Under 9.04 and 10.04 I also had to change back from gcc 4.4.x to gcc
4.3.x because I had problems with OE. (qemu package did not compile
successfully).
Now everything works quite good here.

Thanks everyone !!

Thanks a lot !!
This helped.