ps3dev / ps3toolchain

A script to autobuild an open source toolchain for the PS3.
BSD 2-Clause "Simplified" License
283 stars 92 forks source link

No such file `binutils-2.21.1.tar.bz2' #53

Closed ajases closed 13 years ago

ajases commented 13 years ago

Hi,

This error appears when I execute the "./toolchain.sh". Do you know how this can be solved. It seems that source file has been changed to No such file `binutils-2.21.1a.tar.bz2'.

Best regards, AJ

zeldin commented 13 years ago

This is weird. The archive has been renamed to binutils-2.21.1a.tar.bz2, but the contents still calls itself binutils-2.21.1. And I don't see any mention on either the binutils homepage or mailing list about a "2.21.1a".

Anyway, just changing the name of the archive in the wget line and the tar xfvj line of scripts/001-binutils-2.21.1-PPU.sh should fix the problem, I think.

EDIT: scripts/007-binutils-2.21.1-SPU.sh should be changed in the same way of course.

ooPo commented 13 years ago

So the name of the archive is the same, but the directory it creates when unpacked has changed?

That's rather unusual. I'd look at the differences between the two versions to make sure nothing bad has been added.

zeldin commented 13 years ago

I'd look at the differences between the two versions to make sure nothing bad has been added.

That's a bit difficult to do, since they have removed the old version. Which is odd in itself, normally they never remove old versions...

zeldin commented 13 years ago

And it's the other way around; the name of the archive has changed, but the name of the directory it creates is the same. Can't say about the contents though.

zerkman commented 13 years ago

I have put a copy of binutils-2.21.1.tar.bz2 on my server: https://zerkman.sector1.fr/ps3/binutils-2.21.1.tar.bz2

The difference is that binutils-2.21.1a contains an additional "cgen" subdirectory, and the md5.sum file is modified accordingly. The rest of this "version" is equivalent.

I just pushed a fix.

zeldin commented 13 years ago

Thanks. The cgen directory seems to contain support for some minor CPU architectures, and is thus irrelevant for a PPC64 build. I wonder why its omission was so critical they had to pull the previous archive from the server...

I notice that the 2.20.1 release has also been converted into an "a", btw. Maybe it's because of the same issue...

zeldin commented 13 years ago

Ah, I finally found the explanation in the mailing list archibes:

http://sourceware.org/ml/binutils/2011-08/msg00158.html

So it's just a question of GPL compliance. Previously they shipped some generated source files without the meta sources...

ajases commented 13 years ago

Thanks a lot! Now it works perfect.