FC 6: gunzip: stdin: invalid compressed data--format violated
Hello, I've installed Fedora Core 6, and am a new user. I want to program my AX4510 development board for our senior project, but I'm unable to install the toolchain. The toolchain was copied from a CD to my HD /home/Justin/CD/uClinux/Toolchain.I did this:
sh arm-elf-tools-20030314.sh and got this: 'tail: cannot open `+43' for reading: No such file or directory' following ipodlinux.org/Toolchain I changed line 39 to: tail -n+${SKIP} ${SCRIPT} | gunzip | tar xvf - and got this: incomplete literal tree gunzip: stdin: invalid compressed data--format violation I haven't found a solution on the internet that works, and hope someone can help me fix this. Thanks in advance. |
I don’t know about your tool chain problem, but gunzip is telling you that the stuff you pulled off the end of the ${SCRIPT} file was not compressed information.
Perhaps, instead of tail -n+${SKIP} ${SCRIPT} | gunzip | tar xvf - you should use tail -n +${SKIP} ${SCRIPT} | gunzip | tar xvf - Or, if what was implied by the first error you reported is correct, tail -n +43 ${SCRIPT} | gunzip | tar xvf - to just skip the first 43 lines of $SCRIPT. :scratch: Just to see what’s going on, I downloaded the tool chain to /tmp and did this: Code:
$ tail -n +43 /tmp/arm-elf-tools-20030314.sh > /tmp/arm-elf-tools-20030314.tar If you do choose to do it by hand, be sure you do the extraction as “root” since otherwise you will (probably) not be able to write to /usr/local. Hope this helps.:) |
Hi PTrenholme, thank you for responding. I copied the code you pasted, and this was created:
Code:
arm-elf-tools-20030314.tar Code:
ark /usr/tmp/arm-elf-tools-20030314.tar Code:
-bash: ark: command not found. I am logged in as root using this: Code:
su --login root After reading your message, I used nano to write to arm-elf-tools-20030314.sh, and returned line 39 back to Code:
tail +${SKIP} ${SCRIPT} | gunzip | tar xvf - I googled ark Linux, and found this. http://www.arklinux.org/index.php?pa...06&language=en Regardless, thankyou PTren. If we find a solution we'll post it for everyone. |
Sorry, ark is the KDE archive GUI. Just a moment, let me check GNOME.
O.K., under GNOME, go to Accessories->Archive Manager and open the tar file. Or just use the tar command to unpack the file. See man tar for details, but (as you saw) the command used in the file is tar xvf, so, as root, entering # tar xvf /usr/tmp/arm-elf-tools-20030314.tar should do the trick. |
Thankyou PTrenholme
Thankyou PTrenholme, I recopied the arm-elf-tools-20030314.sh from the Embest CD to /usr/tmp, and followed your instructions.
It worked perfectly, and I "verbosely extracted" the file. Thankyou PTrenholme, this forum is awesome. For anyone interested this was for an AX4510 Evaluation board, my OS is Fedora Core 6, and I was trying to install a toolchain (User Guide page 16) called arm-elf-tools-20030314.sh |
I'm having the same issues above, except PTrenholme's resolution isn't working for either arm-elf-tools-20040427.sh or arm-elf-tools-20030314.sh.
This is on a fresh Fedora 2.6.18-1.2789.fc6 install. Here is what I'm seeing when trying to both run the scripts and run PTrenholme's steps: ****************** [root@alex_fedora PACT]# sh arm-elf-tools-20040427.sh ./usr/local/arm-elf/ ./usr/local/arm-elf/bin/ ./usr/local/arm-elf/bin/nm gunzip: stdin: invalid compressed data--format violated tar: Read 6144 bytes from - tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now *************************** [root@alex_fedora PACT]# sh arm-elf-tools-20030314.sh incomplete literal tree gunzip: stdin: invalid compressed data--format violated ************************** [root@alex_fedora PACT]# tail -n +43 /tmp/arm-elf-tools-20030314.sh > /tmp/arm-elf-tools-20030314.tar [root@alex_fedora PACT]# tar xvf /tmp/arm-elf-tools-20030314.tar incomplete literal tree gzip: stdin: invalid compressed data--format violated tar: Child returned status 1 tar: Error exit delayed from previous errors ************************** [root@alex_fedora PACT]# tail -n +43 /tmp/arm-elf-tools-20040427.sh > /tmp/arm-elf-tools-20040427.tar [root@alex_fedora PACT]# tar xvf /tmp/arm-elf-tools-20040427.tar ./usr/local/arm-elf/ ./usr/local/arm-elf/bin/ ./usr/local/arm-elf/bin/nm gzip: stdin: invalid compressed data--format violated tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now **************************** I'm at a real loss. Been searching all day long for some answers with no luck. I have a deadline approaching and this is a serious hold up. I'm a bit of a Linux novice, so if anyone can shed some light, I'd be very appreciative! |
Well, the error message seems to be telling you that your sh file is too short. Have you tried downloading it again? Can you verify the file byte count?
Perhaps there's another download site you could try. |
Quote:
The file size is 16.8MB/17588994b. |
I'm using Fedora 2.6.18-1.2798.fc6 if that makes a difference.
|
OK, I downloaded another copy from uclinux and I got 18406845 bytes (more than you report) with a sha1sum of e837e617e1fa983c885161554428e1cbaa237014. What download method are you using? you could try an FTP from ftp://166.111.68.183/pub/linux/ since, sometimes, an FTP download works better.
|
Quote:
Where would I find the arm-elf-tools file in the ftp directory you provided? I couldn't find it. |
OK, I downloaded arm-elf-tool-20040427.sh from the Samsung site and got 17589174 bytes (sill different from your report) with a sha1sum of 85ca541c8ef916a0ffddd895962980a8de524af7
I then did Code:
$ tail -n +43 tmp/arm-elf-tools-20040427.sh > tmp/arm-elf-tools.tar |
Here's what I get after downloading a brand new copy of the file and following your steps.
*************************************************** [root@alex_fedora /]# wget http://opensrc.sec.samsung.com/downl...ls-20040427.sh --04:00:22-- http://opensrc.sec.samsung.com/downl...ls-20040427.sh Resolving opensrc.sec.samsung.com... 210.118.63.156 Connecting to opensrc.sec.samsung.com|210.118.63.156|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 17589174 (17M) [*/*] Saving to: `arm-elf-tools-20040427.sh' 100%[====================================================================================>] 17,589,174 140K/s in 2m 5s 04:02:28 (137 KB/s) - `arm-elf-tools-20040427.sh' saved [17589174/17589174] [root@alex_fedora /]# sha1sum arm-elf-tools-20040427.sh 85ca541c8ef916a0ffddd895962980a8de524af7 arm-elf-tools-20040427.sh [root@alex_fedora /]# tail -n +43 arm-elf-tools-20040427.sh > arm-elf-tools.tar [root@alex_fedora /]# tar -tvf arm-elf-tools.tar > arm-elf-tools.toc [root@alex_fedora /]# tail arm-elf-tools.toc -rwxr-xr-x root/root 35644 2004-04-26 18:15:20 ./usr/local/bin/arm-elf-protoize hrwxr-xr-x root/root 0 2004-04-26 18:15:22 ./usr/local/bin/arm-elf-ranlib link to ./usr/local/arm-elf/bin/ranlib -rwxr-xr-x root/root 171840 2004-04-26 18:15:20 ./usr/local/bin/arm-elf-readelf -rwxr-xr-x root/root 260928 2004-04-26 18:15:21 ./usr/local/bin/arm-elf-size -rwxr-xr-x root/root 261068 2004-04-26 18:15:21 ./usr/local/bin/arm-elf-strings hrwxr-xr-x root/root 0 2004-04-26 18:15:23 ./usr/local/bin/arm-elf-strip link to ./usr/local/arm-elf/bin/strip -rwxr-xr-x root/root 30268 2004-04-26 18:15:22 ./usr/local/bin/arm-elf-unprotoize -rwxr-xr-x root/users 11384 2004-04-26 18:15:16 ./usr/local/bin/genromfs -rwxr-xr-x root/users 415764 2001-12-19 03:36:26 ./usr/local/bin/elf2flt -rwxr-xr-x root/users 237044 2001-12-19 03:36:24 ./usr/local/bin/flthdr [root@alex_fedora /]# sh arm-elf-tools-20040427.sh tail: cannot open `+43' for reading: No such file or directory gunzip: stdin: not in gzip format *************************************************** |
OK, at this point you've got the tar file extracted, so just do (as "root") a tar xvf arm-elf-tools.tar and you should be "home free." (You can delete the toc file, that was just to confirm that the tar file was good.)
The problem with the script is that it is using a nonstandard tail format. According to the Posix standard (I think, but have not verified) tail -n +43 - is required whilst the script uses tail +43 -, omitting the required -n argument. If you want the script to work, you'd need to change the tail +${SKIP} ${SCRIPT} | gunzip | tar xvf - to read tail -n +${SKIP} ${SCRIPT} | gunzip | tar xvf -. (And you could omit the | gunzip too) since (as you saw when you did the tar "list" command to generate the toc file, tar (on your system, at least) automatically unzipped the extracted file.) |
Quote:
Unfortunately, even with the script modification, I was still unable to get it to run. That's not important to me though. Thanks a bunch! |
All times are GMT -5. The time now is 05:57 PM. |