Problem installing psptoolchain!!!

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

Moderators: cheriff, TyRaNiD

Post Reply
LukeGT
Posts: 6
Joined: Thu Jun 28, 2007 12:37 pm

Problem installing psptoolchain!!!

Post by LukeGT »

I've just hacked my PSP using the Illuminati exploit, and I thought it would be great to start making some homebrew for my PSP. I found a tutorial on how to get the psptoolchain working by using Cygwin to create a Linux environment, but it didn't work too well. I then went searching through the forums to find solutions to my problems, and I did...until now...

This problem is really annoying me. I'm up to the stage where I can run toolchain.sh from the Cygwin console, but after it downloads the first file, then processes it, i get a whole bunch of nasty looking messages, ending with a failure message. Here's the output from the console after all the file patching is done:

Code: Select all

creating cache ./config.cache
checking host system type... i686-pc-cygwin
checking target system type... mipsallegrexel-psp-elf
checking build system type... i686-pc-cygwin
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
../configure: line 873: test: /home/George: binary operator expected
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gnatbind... gnatbind
checking whether compiler driver understands Ada... yes
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f
2
checking for correct version of gmp.h... no
checking for bison... bison
checking for bison... bison -y
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for i686-pc-cygwin-ar... no
checking for ar... ar
checking for i686-pc-cygwin-as... no
checking for as... as
checking for i686-pc-cygwin-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-cygwin-ld... /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../
i686-pc-cygwin/bin/ld.exe
checking for i686-pc-cygwin-nm... no
checking for nm... nm
checking for i686-pc-cygwin-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-cygwin-windres... no
checking for windres... windres
checking for i686-pc-cygwin-objcopy... no
checking for objcopy... objcopy
checking for i686-pc-cygwin-objdump... no
checking for objdump... objdump
checking for psp-ar... no
checking for psp-as... no
checking for psp-dlltool... no
checking for psp-ld... no
checking for psp-nm... no
checking for psp-ranlib... no
checking for psp-windres... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
test ! -d gcc/libgcc || \
        (cd gcc/libgcc && find . -type d -print) | \
        while read d; do rm -f gcc/$d/libgcc.a || : ; done
rm -rf gcc/libgcc
rm -f gcc/stmp-dirs
rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
mkdir -p -- ./libiberty
mkdir -p -- ./intl
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
/bin/sh: line 5: [: /home/George: binary operator expected
Configuring in intl
/bin/sh: /home/George: No such file or directory
Configuring in libiberty
make: *** [configure-intl] Error 1
make: *** Waiting for unfinished jobs....
/bin/sh: /home/George: No such file or directory
make: *** [configure-libiberty] Error 1
../scripts/001-binutils-2.16.1.sh: Failed.

George PC@LukeGT ~
$
I'm not really too sure what to make of this, since I'm a Linux noob, but I get the feeling that since my username (George PC) has a space in it, this is screwing up something, guessing from the few lines that say
"/bin/sh: line 5: [: /home/George: binary operator expected"

So if the problem is my username, is there some way to change my username in Cygwin to something without a space? And if that's not the problem, could somebody help me find out what it is?

Help would be very much appreciated! :)
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

It isn't because your username has a space, it is because the directory you're using has a space. Use a different directory.
LukeGT
Posts: 6
Joined: Thu Jun 28, 2007 12:37 pm

Looking good!

Post by LukeGT »

Thanks, I think this probably fixed it! It's running now, and it didn't get the same errors as before...I'm just worried that another error will crop up somewhere...

I didn't know you could set the active directory outside the user directory, but like i said, I'm a Linux noob xD

Thanks again for your help
LukeGT
Posts: 6
Joined: Thu Jun 28, 2007 12:37 pm

I knew it -.-

Post by LukeGT »

Great, just as I thought, another error. Here's what I believe to be the relevant error code:

Code: Select all

creating ./config.status
yes
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... no
checking whether `alloca.c' needs Cray hooks...   30078 [main] sh 123132 fork: c
hild -1 - CreateProcessA failed, errno 11
/home/GeorgePC/psptoolchain/build/binutils-2.16.1/gas/configure: line 7204: /usr
/bin/rm: Resource temporarily unavailable
no
checking stack direction for C alloca...       8 [main] sh 104676 fork: child -1
 - CreateProcessA failed, errno 11
/home/GeorgePC/psptoolchain/build/binutils-2.16.1/gas/configure: fork: Resource
temporarily unavailable
/home/GeorgePC/psptoolchain/build/binutils-2.16.1/binutils/configure: line 6080:
 /usr/bin/sed: Resource temporarily unavailable
      5 [main] sh 99664 fork: child -1 - CreateProcessA failed, errno 11
/home/GeorgePC/psptoolchain/build/binutils-2.16.1/binutils/configure: fork: Reso
urce temporarily unavailable
5034991 [main] sh 99664 fork: child -1 - CreateProcessA failed, errno 11
/home/GeorgePC/psptoolchain/build/binutils-2.16.1/binutils/configure: fork: Reso
urce temporarily unavailable
11232692 [main] sh 123520 fork: child -1 - CreateProcessA failed, errno 11
/home/GeorgePC/psptoolchain/build/binutils-2.16.1/gas/configure: fork: Resource
temporarily unavailable
/home/GeorgePC/psptoolchain/build/binutils-2.16.1/gas/configure: line 7343: /usr
/bin/sed: Resource temporarily unavailable
make: *** [configure-binutils] Error 1
make: *** Waiting for unfinished jobs....
22017012 [main] sh 124120 fork: child -1 - CreateProcessA failed, errno 11
/home/GeorgePC/psptoolchain/build/binutils-2.16.1/gas/configure: fork: Resource
temporarily unavailable
/home/GeorgePC/psptoolchain/build/binutils-2.16.1/gas/configure: line 7385: /usr
/bin/sed: Resource temporarily unavailable
make: *** [configure-gas] Error 1
../scripts/001-binutils-2.16.1.sh: Failed.

George PC@LukeGT /home/GeorgePC/psptoolchain
$
I really dont know what to make of this one. Has anyone got an idea?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Errors like those in cygwin usually mean you're either out of resources (like ram or hdd space) or you're having stability problems (like overheating by having the cpu under full load for longer than usual).
LukeGT
Posts: 6
Joined: Thu Jun 28, 2007 12:37 pm

O_O'

Post by LukeGT »

I think i might let this run overnight when my computer isn't doing much. I have 1GB of RAM and 14 GB left on C:, so it must've been using up a lot of my computer in order to call an error =S. I don't think it's overheating or anything like that, I wasn't doing anything intensive while it was running...

Thanks for your help again
LukeGT
Posts: 6
Joined: Thu Jun 28, 2007 12:37 pm

Damn.

Post by LukeGT »

OK, this is starting to get annoying. I let it run overnight, with no other programs running in the background, and i still got that resource error:

Code: Select all

gcc: installation problem, cannot exec '/usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1.ex
e': Resource temporarily unavailable
make[1]: *** [loadmsgcat.o] Error 1
make[1]: Leaving directory `/home/GeorgePC/psptoolchain/build/binutils-2.16.1/bu
ild-psp/intl'
make: *** [all-intl] Error 2
make: *** Waiting for unfinished jobs....
ok
checking if libtool supports shared libraries... yes
checking if package supports dlls... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
  12062 [main] sh 128704 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
     12 [main] sh 128920 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
     11 [main] sh 128996 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
      5 [main] sh 124896 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
     12 [main] sh 124800 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
      5 [main] sh 125036 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
      4 [main] sh 126924 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
      5 [main] sh 125500 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
      4 [main] sh 126656 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
      5 [main] sh 126152 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
      5 [main] sh 125092 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
      5 [main] sh 126300 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
      8 [main] sh 125720 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
   6940 [main] sh 125720 fork: child -1 - CreateProcessA failed, errno 11
../../bfd/../ltconfig: fork: Resource temporarily unavailable
configure: error: libtool configure failed
      7 [main] sh 116704 fork: child -1 - CreateProcessA failed, errno 11
/home/GeorgePC/psptoolchain/build/binutils-2.16.1/bfd/configure: fork: Resource
temporarily unavailable
   9410 [main] sh 116704 fork: child -1 - CreateProcessA failed, errno 11
/home/GeorgePC/psptoolchain/build/binutils-2.16.1/bfd/configure: fork: Resource
temporarily unavailable
make: *** [configure-bfd] Error 1
../scripts/001-binutils-2.16.1.sh: Failed.

George PC@LukeGT /home/GeorgePC/psptoolchain
$
I think it got further than before, but it still hit an error. Is there any other reason for getting that lack of resources error? I'm confident I have enough RAM and HDD space (maybe I'll try increasing the pagefile...), and my computer definitely isn't overheating or anything.

If you could suggest something I could do to get this working, that'd be great
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

I dunno if this would help

a) Run Spybot / Adaware (dont use Windows Defender)
b) Run Antivirus
c) maybe dust out the internals of your computer with air compressor.

Otherwise if all fails maybe try running VMware with ubuntu or something.

Wally
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Seriously, building the toolchain can put stress on your hardware that you won't normally see. Think of it like a burn-in test. Cheap hardware and barely capable ram can cause weird intermittent errors.

There's nothing you can do other than replace the faulty hardware. Installing a pre-built toolchain may seem to work for now but there's always the chance you'll still get weird unexplained errors and and corrupt data.
LukeGT
Posts: 6
Joined: Thu Jun 28, 2007 12:37 pm

Post by LukeGT »

I ran a spyware scan, antivirus scan, and I cleaned out the dust, but I still got that error.

Is my hardware really THAT bad? I bought my computer July 04, and it hasn't been upgraded since then. When it was bought, the hardware was very good, but since then has become outdated. I'm running an AMD Athlon XP 2800+ 2.08GHz processor, so is this good enough to build the tool chain?

If I need to upgrade my hardware, could you let me know which hardware I need to upgrade? I've made a screenshot that shows me rage-spamming the toolchain command while it gives short errors about the lack of resources. Next to it I have the task manager open to show how my system was coping while i spammed, and after I took the screenshot, mspaint failed to open due to lack of resources, so I thought I'd put that error in there too. After i closed Cygwin I was able to launch paint to save the screenshot though.

But from what the task manager says, I can't see what resources are in fact missing. I definitely have enough CPU left over, since it was idling at 2% usage, and although I didn't have much RAM left, I made the pagefile 2GB, so I think that wasn't the problem (unless cygwin can't use the pagefile...). In any case, it said that paint couldn't open due to lack of resources, and I doubt that MSPaint uses more than 160 MB of RAM. Also I have 20 GB left on C:, so that's not the problem either.

Image

What other resources could I be running out of apart from RAM, HDD or CPU usage? Or am I over looking something here? I need to know what resource I'm running out of, otherwise I can't solve the problem with new hardware xD.

On the other hand, could you point me in the right direction for a pre-built psptoolchain? I might want to try that before I go off and buy new hardware.

Thanks for your help so far
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Monechimney
Posts: 3
Joined: Sat Jul 14, 2007 8:47 pm

Post by Monechimney »

Luke, have you solved the problem? If so, how?
sideN
Posts: 1
Joined: Sun Jul 22, 2007 10:47 am

Post by sideN »

Yup, same problem here.. The thing is, this PC is only 3 months old (core duo, 8800gts, 2 gigs ram...)
MudRat_02
Posts: 2
Joined: Thu Aug 02, 2007 12:51 pm

Post by MudRat_02 »

i've got the same problem, but with a 2500+, 512ddr, radeon 9200 256mb 256bit. Did anyone solve this problem? I dont have any spaces in my username or directory btw
hardfalcon
Posts: 5
Joined: Sun Aug 19, 2007 7:41 am

Post by hardfalcon »

I got that problem on my box (Frugalware 0.7-pre2, AthlonXP 3200+ on an overclocked cheap Asrock-Mobo with SIS chipset, 1GB DDR-400-RAM), too, but I think I just found out how to fix it.

The method I used to find the problem was simply manually executing the commands from $PSPDEV/scripts/001-binutils-2.16.1.sh.
The script gave me an error stating that it expects an absolute path for $PSPDEV (which obviously wasn't the case in my case as I had set it to ~/psptoolchain instead of /home/hardfalcon/psptoolchain). I changed it, tried again, and until now, it's doing (building the toolchain) just flawlessly as it should :).

cu
Pascal
The Lillster
Posts: 1
Joined: Tue Aug 28, 2007 1:37 pm

I'm having trouble too!

Post by The Lillster »

Hello

For about nearly a week now I have been trying to install the psptoolchain, but I keep getting errors!

I do exaxtly as it says, and I have figured out how to gte past some of the other errors I was having. But I can't figure out what to do with this error message...

rm: cannot remove directory 'gcc-4.1.0' Directory not empty
../scripts/005-gcc-4.1.0-stage2.sh: Failed.

If you could help me figure this out, that would be wonderful.
Etherous
Posts: 2
Joined: Thu Aug 30, 2007 1:27 pm

Post by Etherous »

The Lillster: You need to do rm -r
The -r is for recursive

And I'm also having trouble building the toolchain. It's all very cryptic and I've been unable to find an answer simply Googling. It appears that the target 'psp' isn't recognized. Has anyone else run into this and know how to fix it?

Here's the relevant output from toolchain.sh:

Code: Select all

configure: creating cache ./config.cache
checking build system type... i686-apple-darwin8.10.1
checking host system type... i686-apple-darwin8.10.1
checking target system type... Invalid configuration `psp': machine `psp' not recognized
configure: error: /bin/sh ../../bfd/../config.sub psp failed
make: *** [configure-bfd] Error 1
ERROR BUILDING BINUTILS
3droot
Posts: 1
Joined: Thu Jun 19, 2008 5:23 pm

Post by 3droot »

Since I found this looking for the "machine 'psp' not recognized" message I'll just explain what fixed it for me:

It means you probably installed an old toolchain like psptoolchain-20060120.tgz

When trying to build this, subversion (svn) can't find the patch files for the gcc compiler in the repository, but the patch is required because it adds the 'psp' machine target to gcc.

Just do an svn update in the psptoolchain directory (you may have to delete toolchain.sh first) this fetches the current toolchain build script from the svn repository.

Then build the toolchain (./toolchain.sh)
Post Reply