Problems with UnTarBZ2
Rob Heaton (274) 515 posts |
I’m trying to extract a recent copy of the OMAP source code on my Risc PC, when I try to extract it, I get the error shown below; Has anyone else as this problem? (The same file will extract fine on my Iyonix) Calculating MD5 checksum of archive 12:38:53 0d7e9c7309c3b4c6e640cf713bc795e6 ADFS::Drive4.$.Rob.OMAP.src-omap/5/17/tar/bz2 Decompressing archive 12:39:05 /ADFS::Drive4.$/Rob/OMAP/src-omap.5.17.tar.bz2: doneExtracting tar file contents 12:44:07 Internal error: Undefined instruction at &0000DF28 Postmortem requested Processor registers Stack backtrace Removing CVS control files (if any) 12:44:07 EraseCVS (0.08, 11 Aug 2000). Finished 12:44:07 |
Steve Revill (20) 1361 posts |
We have several reports of people having problems with UnTarBZ2 – I’m starting to suspect some recent changes which were submitted to the ‘tar’ program – but it could equally be that I’ve taken a newer version of bunzip2 and that might be generating broken output. Until I get a chance to properly investigate and work on this, I think it’s safer to assume UnTarBZ2 is faulty and you should try to use something else (tar -jxf on Linux/UNIX or something like 7-zip on Windows). Sadly, I have a work trip to India coming up next week so I don’t really have any time to investigate for a few weeks. However, source code is included within the UnTarBZ2 download so it’s perfectly possibly for someone else in the community to investigate this… :) |
Rob Heaton (274) 515 posts |
Cheers Steve, |
James Lampard (51) 120 posts |
I’ve also run into this problem on RPCEmu 0.8.8 using RO 4.02 running UnTarBZ2 1.03 to decode the current full source archive (2011-12-18 06:40:42) I get the following output:
Disassembling the tar binary in zap shows:
Armalyser disassembles it thus:
So, I guess the problem is that you’ve compiled tar with an ARM v5 instruction in it. |
James Lampard (51) 120 posts |
The alternative version of UnTarBZ2 available from http://peter.drobe.co.uk/ appears to work OK. |
Rob Heaton (274) 515 posts |
Thanks for the link James, I’ll try it out on my Kinetic Risc PC and see if I still get the same issue. |
Rob Heaton (274) 515 posts |
I tried out the version from http://peter.drobe.co.uk on my Kinetic Risc PC and I just get the error “Unable to start application (decompression failed)” I may have a tinker with the source later, see if I can get it to play! |
Peter van der Vos (95) 115 posts |
I can not find that error in the source code of UnTarBZ2. Are you sure it is a error from the application or do you run it from the zip file and does that generate an error? |
Rob Heaton (274) 515 posts |
I get this error when I try to unpack a tar.bz2 file. The error is also displayed if I double click on any of the programs in the !UnTarBZ2.Tools directory. Could this be an issue with my Kinetic running RISC OS 6.20? |
WPB (1391) 352 posts |
Yes, I think so. Squeezed executables are rejected. The same happens on the a9home. Use the xpand utility (from the DDE) to manually decompress the binary, and see if that helps. |
Rob Heaton (274) 515 posts |
Thanks! I’ll give that a go. |
Rob Heaton (274) 515 posts |
I’ve decompressed the binary files using xpand, and everything worked! Thanks for the help everyone. |
WPB (1391) 352 posts |
Rob, if you get the chance sometime, could you try out this version of !UnTarBZ2 on RISC OS 6 and see if it works? |
Rob Heaton (274) 515 posts |
That version works fine! |
Steve Revill (20) 1361 posts |
Hi. I’d like to distribute a fixed version on the ROOL site. What are the changes in the one above? Ta. |
WPB (1391) 352 posts |
All I did was xpand the binary from the version on http://peter.drobe.co.uk/ and recompress using the latest DDE tools (v. 22). I’ll remove the version I uploaded if you make one that works available on the ROOL site. Doesn’t pay to have too many versions rocking about ;) If you’re doing work like this, it might be worth checking other binaries that are part of the BBE, like !Builder’s !RunImage, as there have been reports of that not working under RO6, too. Thanks! |
Steve Revill (20) 1361 posts |
The versions of UnTarBZ2 on the ROOL site already have all their binaries unsqueezed, so I’m a bit confused. Reading back through this thread, the real problems are with tar. I’ve downloaded Perter’s UnTarBZ2 to see what he’s done and I’ll fold his changes into the version on the ROOL site shortly. |
Steve Revill (20) 1361 posts |
There is now a new build of UnTarBZ2 on the ROOL site. This is a merge of Peter’s fixes to the ‘tar’ binary with the other bits from the application. Hopefully, this will work better for everyone. |
Dave Lawton (309) 87 posts |
This new build (downloaded on 25 Mar) doesn’t get past the self extraction stage (unless I’m doing something wrong). |
Peter van der Vos (95) 115 posts |
No problem here. Opening link to it in netsurf. Save to ramdisc. Set type utilit. Run it. No problem. (4 april 2012, Iyonix 5.16) |
David R. Lane (77) 766 posts |
I sometimes get lines like tar: directory checksum error (62040 != 58658) at the end of the UnTarBZ2 report that lists all the files that it is extracting. The MD5 checksum of the archive that it calculates and reports at the start agrees with the published checksum on the ROOL website. What does it mean? Should I be worried? |