cannot extract source archive

Asked by Marti Bolivar

I am unable to extract the following source archives:

gcc-arm-none-eabi-4_6-2012q2-20120614-src.7z.001
gcc-arm-none-eabi-4_6-2012q2-20120614-src.7z.002

I've tried extracting them with p7zip on Ubuntu 12.04 ($ p7zip -d source-archive-file) and with P7Zip on Windows 7 Home Premium (64-bit).

Trying to extract with the source files as named causes the utility to ignore the file for having the wrong extension. Renaming the files so their extension is .7z results in errors.

On Ubuntu, the error is:

$ p7zip -d gcc-arm-none-eabi-4_6-2012q2-20120614-src.001.7z

7-Zip (A) [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,8 CPUs)

Processing archive: gcc-arm-none-eabi-4_6-2012q2-20120614-src.001.7z

Error: Can not open file as archive

On Windows, the error is (hand-typed, as the GUI will not let me cut and paste):

0 Can not open file 'C:\Users\mbolivar\Downloads\gcc-arm-none-eabi-4_6-2012q2-20120614-src.001.7z' as archive.

Please advise on how to extract these files. Please also consider providing them in a more customary format for GCC source packages (such as .tar.gz or .tar.bz2).

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Terry Guo
Solved:
Last query:
Last reply:
Revision history for this message
Michael Smith (drziplok) said :
#1

The files are:

gcc-arm-none-eabi-4_6-2012q2-20120614-src.7z.001
gcc-arm-none-eabi-4_6-2012q2-20120614-src.7z.002

But you are invoking:

$ p7zip -d gcc-arm-none-eabi-4_6-2012q2-20120614-src.001.7z

Try instead

$ p7zip -d gcc-arm-none-eabi-4_6-2012q2-20120614-src.7z.001

Amusingly, the archives decompress to a single .tar.bz2 archive which is only marginally larger than the sum of the two 7z files

Revision history for this message
Marti Bolivar (mbolivar) said :
#2

Yes, of course, that was the first thing I tried. As I said in my question, I had to rename the files. p7zip was refusing to decompress them as they had the wrong extension.

Revision history for this message
Michael Smith (drziplok) said :
#3

The files uncompress correctly here using:

[/tmp]$ 7z x gcc-arm-none-eabi-4_6-2012q2-20120614-src.7z.001

7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=utf8,Utf16=on,HugeFiles=on,8 CPUs)

Processing archive: gcc-arm-none-eabi-4_6-2012q2-20120614-src.7z.001

Extracting gcc-arm-none-eabi-4_6-2012q2-20120614-src.tar.bz2

Everything is Ok

Size: 132772428
Compressed: 73400320

(though the size is a lie, as it refers to only the first of the two.)

Can you check the signatures of the files you have downloaded? I get:

[/tmp]$ md5 gcc*
MD5 (gcc-arm-none-eabi-4_6-2012q2-20120614-src.7z.001) = fadf91cf327a88a72eb0163caa225bcb
MD5 (gcc-arm-none-eabi-4_6-2012q2-20120614-src.7z.002) = 19e5392a9a7132e6200423c1d57d096a

Revision history for this message
Best Terry Guo (terry.guo) said :
#4

The split of source package is due to slow internet access speed which always causes upload fail. Now we find a way to solve this issue, a single source package in tar.bz2 format is uploaded. Please try again.

Revision history for this message
Marti Bolivar (mbolivar) said :
#5

Thanks , the tarball works fine.

Revision history for this message
Marti Bolivar (mbolivar) said :
#6

Thanks Terry Guo, that solved my question.

Revision history for this message
Michael Smith (drziplok) said :
#7

Terry, thanks for the quick response. This greatly simplifies things for me as well!