Toolchain install issue

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
PacManFan
Posts: 66
Joined: Sat Jun 25, 2005 6:01 am

Toolchain install issue

Post by PacManFan »

Hey everyone.
I'm having an issue installing the latest version of the toolchain. It appears to download the .tar.gz files fine, but when it gets to the unzipping and patching, this is what I get:

Image

I've tried several times, and I'm not sure I know what's going on.
The /usr/local/psptoolchain/binutils-2.16.1.tar.gz file does exist, so I'm not sure why it says it can't find it

Has anyone else run into this error?

-PMF
"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

"latest" = what version? Paste the output of "ls -al /usr/local/psptoolchain" and "md5sum /usr/local/psptoolchain/binutils-2.16.1.tar.gz" (as text). You could also run

Code: Select all

cd /usr/local/psptoolchain
sh -v toolchain.sh 2>&1 | tee log.txt
and upload log.txt somewhere.
PacManFan
Posts: 66
Joined: Sat Jun 25, 2005 6:01 am

toolchain version

Post by PacManFan »

It's the psptoolchain-20060110.tgz
However, this happened for me with the previous version of the toolchain as well, I can run and install the psptoolchain from last June just fine, that's the one I've been using for a while.

-PMF
"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

If you had actually provided the info I requested, I might have been able to help you, but you're not giving us much to go on here.
PacManFan
Posts: 66
Joined: Sat Jun 25, 2005 6:01 am

results of ls

Post by PacManFan »

$ ls -al /usr/local/psptoolchain
total 55141
drwx------+ 4 Administrator None 0 Jan 14 12:01 .
drwx------+ 11 Administrator None 0 Jan 14 12:37 ..
drwx------+ 7 Administrator None 0 Jan 10 10:17 .svn
-rwx------+ 1 Administrator None 2734 Dec 30 12:54 README.TXT
-rwx------+ 1 Administrator None 121914 Dec 30 12:49 binutils-2.16.1.patch
-rwx------+ 1 Administrator None 16378360 Jan 14 12:00 binutils-2.16.1.tar.gz
drwx------+ 4 Administrator None 0 Dec 30 12:49 devel
-rwx------+ 1 Administrator None 36830 Dec 30 12:49 gcc-4.0.2.patch
-rwx------+ 1 Administrator None 31793160 Jan 14 12:01 gcc-4.0.2.tar.bz2
-rwx------+ 1 Administrator None 69612 Dec 30 12:49 gdb-6.3.patch
-rwx------+ 1 Administrator None 251683 Jan 10 10:17 newlib-1.13.0.patch
-rwx------+ 1 Administrator None 7786190 Jan 14 12:02 newlib-1.13.0.tar.gz
-rwx------+ 1 Administrator None 103 Dec 30 12:55 svn-commit.tmp
-rwx------+ 1 Administrator None 11195 Dec 30 12:49 toolchain.sh

Administrator@PCTEL-TEST2 /usr/local
$
"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
PacManFan
Posts: 66
Joined: Sat Jun 25, 2005 6:01 am

log.txt

Post by PacManFan »

"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

First I'd recommend using bash; it looks like you're running ash or something based on the error messages. Second, you're not running the cygwin gzip, you either have some win32 version of gzip earlier in your path, or you didn't install the cygwin gzip package.
PacManFan
Posts: 66
Joined: Sat Jun 25, 2005 6:01 am

Post by PacManFan »

I am using the bash shell, not ash, and I don't have gzip anywhere else on my system. I can use gzip just fine, that's how decompressed the tool chain from the command line in the first place.
"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

You are not using bash. "cd nonexistent" in bash gives

Code: Select all

-bash: cd: nonexistent: No such file or directory
while "cd nonexistent" in ash gives

Code: Select all

cd: can't cd to nonexistent
like your output shows. You may be running bash in your shell, but /bin/sh must be different. This is probably not the source of your immediate problem but may cause issues elsewhere.

And for gzip, paste the output of "which gzip" and "gzip --version"; you're certainly not using the right one, because once again the error message it's displaying is not what the proper cygwin gzip displays. The one you have will work fine for decompressing files in the current directory or a relative path but will not handle the cygwin absolute paths.
PacManFan
Posts: 66
Joined: Sat Jun 25, 2005 6:01 am

Post by PacManFan »

Image
"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

For the last time:
  • regardless of what shell you see at your prompt, your /bin/sh is a copy of /bin/ash, and you should copy /bin/bash there instead to avoid future problems.
  • your gzip is not the right one, it is some other native Win32 version. The cygwin one is currently version 1.3.5 and does not contain "Win32" in the version string.
The toolchain is fine; fix these problems and it will work.
PacManFan
Posts: 66
Joined: Sat Jun 25, 2005 6:01 am

Post by PacManFan »

Thanks, I'll try it.
"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
Post Reply