IDE Selection and woes
IDE Selection and woes
Hi
First off, I'm newbie to c++ development, but not to programming. I've read up on c++ and in "nice friendly ides" managed to make some pieces of code compile and run (whohoo!)
But now I want to participate on the homebrew front it all thikens:...
http://wiki.ps2dev.org/psp:programming_faq
This setup didn't work at all for me. It all runs and compiles for hours when trying to setup the toolchain. But crashes randomly during setup. It all comes down to that my Windows XP box gets corrupt during running the psptoolchain script "./toolchain.sh". Symptoms are that "fork resource is not available" is reported, or that cywin-1.dll isn't the right one. After these errors no dlls will load on my computer(codecs when viewing divxx for example). So it's obvious to me that this is most likely due to that cygwin or one of it's components is crap.
Deinstalling all of that, including cygwin, and then going with devkitpro.org release 1.0.7 isn't fun either....
When trying to compile one of the samples in that distribution I get a popup box saying "libiconv-2.dll isn't found try to reinstall to fix the problem".
The only one that works for me which is "voila!" out of the box is milhouse's PSPide1.0. But this is not up to date with the latest PSPDSK and there is no mention anywhere of how to keep up to date with this.
Also, on windows and linux I've used libsdl to play around, but I have no clue on how to get it for psp and into which directory in the file structure of the three different psp dev distros listed here.
Some pointers would be greatly appreciated! :)
1. Which should I use? I prefere devkitpro, but it doesn't work (seems like it has a good editor and is easy to keep up to date, but I prefere svn over cvs... :-/ )
2. When using extra libs like libsdl, a 1-2-3 tutorial would be nice.
My system is a Windows XP SP2 box. It's a laptop with 1GB Ram and a centrino CPU. It has cygwin installed, but I suspect that it's a crap version by the cygwin ppl (the dlls become unstable and crash).
edit: added links
First off, I'm newbie to c++ development, but not to programming. I've read up on c++ and in "nice friendly ides" managed to make some pieces of code compile and run (whohoo!)
But now I want to participate on the homebrew front it all thikens:...
http://wiki.ps2dev.org/psp:programming_faq
This setup didn't work at all for me. It all runs and compiles for hours when trying to setup the toolchain. But crashes randomly during setup. It all comes down to that my Windows XP box gets corrupt during running the psptoolchain script "./toolchain.sh". Symptoms are that "fork resource is not available" is reported, or that cywin-1.dll isn't the right one. After these errors no dlls will load on my computer(codecs when viewing divxx for example). So it's obvious to me that this is most likely due to that cygwin or one of it's components is crap.
Deinstalling all of that, including cygwin, and then going with devkitpro.org release 1.0.7 isn't fun either....
When trying to compile one of the samples in that distribution I get a popup box saying "libiconv-2.dll isn't found try to reinstall to fix the problem".
The only one that works for me which is "voila!" out of the box is milhouse's PSPide1.0. But this is not up to date with the latest PSPDSK and there is no mention anywhere of how to keep up to date with this.
Also, on windows and linux I've used libsdl to play around, but I have no clue on how to get it for psp and into which directory in the file structure of the three different psp dev distros listed here.
Some pointers would be greatly appreciated! :)
1. Which should I use? I prefere devkitpro, but it doesn't work (seems like it has a good editor and is easy to keep up to date, but I prefere svn over cvs... :-/ )
2. When using extra libs like libsdl, a 1-2-3 tutorial would be nice.
My system is a Windows XP SP2 box. It's a laptop with 1GB Ram and a centrino CPU. It has cygwin installed, but I suspect that it's a crap version by the cygwin ppl (the dlls become unstable and crash).
edit: added links
First ./toolchain.sh run
Here is the first attempt at running the toolchain.
Code: Select all
./config.status: line 765: /usr/bin/rm: Resource temporarily unavailable
./config.status: line 767: /usr/bin/mv: Resource temporarily unavailable
config.status: creating config.h
./config.status: fork: Resource temporarily unavailable
./config.status: fork: Resource temporarily unavailable
./config.status: fork: Resource temporarily unavailable
./config.status: fork: Resource temporarily unavailable
/tmp/pspdev/gcc-4.0.1/intl/configure: fork: Resource temporarily unavailable
/tmp/pspdev/gcc-4.0.1/intl/configure: line 8673: /usr/bin/cat: Resource temporar
ily unavailable
/tmp/pspdev/gcc-4.0.1/intl/configure: fork: Resource temporarily unavailable
/tmp/pspdev/gcc-4.0.1/intl/configure: fork: Resource temporarily unavailable
make: *** [configure-intl] Error 1
ERROR BUILDING GCC
Last edited by pspblizz on Wed Sep 14, 2005 8:26 pm, edited 1 time in total.
second attempt at running ./toolchain.sh
Here is the second attempt.
Code: Select all
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
/tmp/pspdev/gcc-4.0.1/intl/configure: fork: Resource temporarily unavailable
/tmp/pspdev/gcc-4.0.1/intl/configure: fork: Resource temporarily unavailable
/tmp/pspdev/gcc-4.0.1/intl/configure: fork: Resource temporarily unavailable
/tmp/pspdev/gcc-4.0.1/intl/configure: fork: Resource temporarily unavailable
make: *** [configure-intl] Error 1
ERROR BUILDING GCC
Last edited by pspblizz on Wed Sep 14, 2005 8:26 pm, edited 1 time in total.
following a variation of this one:
http://forums.ps2dev.org/viewtopic.php?p=22080#22080
I got it working... goode... Now I only need to figure out how to include libsdl.
Any takers?
http://forums.ps2dev.org/viewtopic.php?p=22080#22080
I got it working... goode... Now I only need to figure out how to include libsdl.
Any takers?
Well, that wasn't the newest toolchain, and I can't get the compile to work.
Seems like cygwin is known to crash on large configure scripts.
Here is one (of many reports):
http://studio.imagemagick.org/pipermail ... 08059.html
Update:
http://www.mail-archive.com/cygwin@cygw ... 59047.html
Seems like the only fix is to run fewer processes, I'll try this and report back.
Update II:
Okay, that didn't work. The process ran further this time, but still it had a hard time starting new processes after a while and so it crashed with resource temp unavailable.
So now I'll try to run throught the different options one at a time, and reboot in between and see if that works.
Update III:
YES! binutils compiled, now after a reboot I'm compiling the gcc
Seems like cygwin is known to crash on large configure scripts.
Here is one (of many reports):
http://studio.imagemagick.org/pipermail ... 08059.html
Update:
http://www.mail-archive.com/cygwin@cygw ... 59047.html
Seems like the only fix is to run fewer processes, I'll try this and report back.
Update II:
Okay, that didn't work. The process ran further this time, but still it had a hard time starting new processes after a while and so it crashed with resource temp unavailable.
So now I'll try to run throught the different options one at a time, and reboot in between and see if that works.
Update III:
YES! binutils compiled, now after a reboot I'm compiling the gcc
Last edited by pspblizz on Wed Sep 14, 2005 10:42 pm, edited 1 time in total.
toolchain.sh runs fine for me in cygwin. i doubt a bug report from 32 months ago still applies today.
chances are your memory is buggered. i find many computers ship from retail outlets without any testing whatsoever. try testing your memory by booting memtest86.
it is also likely your computer is infected with trojans and viruses. try building the toolchain on a fresh installation of windows.
or get yourself a copy of knoppix and build the toolchain in linux. cool kids use linux. (cooler kids use macosx)
chances are your memory is buggered. i find many computers ship from retail outlets without any testing whatsoever. try testing your memory by booting memtest86.
it is also likely your computer is infected with trojans and viruses. try building the toolchain on a fresh installation of windows.
or get yourself a copy of knoppix and build the toolchain in linux. cool kids use linux. (cooler kids use macosx)
Sad to say it does, because it's not a bug. "It's a feature". Or at least until cygwin people know how to fix it, they were still working on this as late as 19th of August 2005.rinco wrote:toolchain.sh runs fine for me in cygwin. i doubt a bug report from 32 months ago still applies today.
I've got a Dell D800, and it's testing fine with dells and other memtest tools.rinco wrote: chances are your memory is buggered. i find many computers ship from retail outlets without any testing whatsoever. try testing your memory by booting memtest86.
It could be, but it's highly unlikely. I've got four security tools running at all times (TinyPersonal FW, SPWD, Search&Destr. and MS AntiSPW). And bidaily reports states that I'm clean. One of the actions I've done to make it compile is to deactivate all tools and stay offline. I've got LOADS running on this laptop since it's my java development environment. All is now off so that the machine is as "silent" as possible.rinco wrote: it is also likely your computer is infected with trojans and viruses. try building the toolchain on a fresh installation of windows.
I might migrate this whole thing to my linux box at home (Suse 9.3), I only want to put it on my laptop since it's my work box :)rinco wrote: or get yourself a copy of knoppix and build the toolchain in linux. cool kids use linux. (cooler kids use macosx)
But I really appreciate your feedback rinco, the only thing I hadn't tried was testing my memory - but alas, it came out good :-/
But it seems like that I can compile it "in steps" so far, first "leg" went well, now I'm trying to compile the gcc. (option -g to the toolchain script).
compiling of the gcc failed:
Code: Select all
e:\cygwin\bin\sh.exe (4072): *** thread handle not set - 0x0<0x0>, Win32 error 1
450
/tmp/pspdev/gcc-4.0.1/intl/configure: fork: Resource temporarily unavailable
checking for putenv... /tmp/pspdev/gcc-4.0.1/intl/configure: line 5758: ${+set}:
bad substitution
/tmp/pspdev/gcc-4.0.1/intl/configure: line 5761: /usr/bin/cat: Resource temporar
ily unavailable
/tmp/pspdev/gcc-4.0.1/intl/configure: fork: Resource temporarily unavailable
/tmp/pspdev/gcc-4.0.1/intl/configure: fork: Resource temporarily unavailable
/tmp/pspdev/gcc-4.0.1/intl/configure: fork: Resource temporarily unavailable
/tmp/pspdev/gcc-4.0.1/intl/configure: fork: Resource temporarily unavailable
make: *** [configure-intl] Error 1
ERROR BUILDING GCC (C++)
Nopes, I'm giving this up for now.
Running ran for several hours and ended in
I can't believe it's supposed to be this hard :(
My experience so far:
* PSPide = old PSPSDK, doesn't compile new samples
* devkitPRO w/hack to make it compile code = old psp-config, doesn't compile libsdl
* devkitPRO out of the box = complains on missing libiconv-2.dll
* psptoolchain w/cygwin = doesn't compile and crashes windows (no new processes able to start)
* psptoolchain booted in safe mode w/cygwin = crashes with error stated above
* psptoolchain on Dell Dimention 8300 = same as on Dell D800
So this have parked me for now. It feels like a defeat :-/[/list]
Running
Code: Select all
./toolchain -g
Code: Select all
../../../libiberty/regex.c:8234: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8235: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8237: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8238: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8239: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8240: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8242: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8243: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8244: error: dereferencing pointer to incomplete type
make[1]: *** [regex.o] Error 1
make[1]: Leaving directory `/tmp/pspdev/gcc-4.0.1/build-psp-c++/psp/libiberty'
make: *** [all-target-libiberty] Error 2
ERROR BUILDING GCC (C++)
My experience so far:
* PSPide = old PSPSDK, doesn't compile new samples
* devkitPRO w/hack to make it compile code = old psp-config, doesn't compile libsdl
* devkitPRO out of the box = complains on missing libiconv-2.dll
* psptoolchain w/cygwin = doesn't compile and crashes windows (no new processes able to start)
* psptoolchain booted in safe mode w/cygwin = crashes with error stated above
* psptoolchain on Dell Dimention 8300 = same as on Dell D800
So this have parked me for now. It feels like a defeat :-/[/list]
Are you logged in as administrator?
You might want to try completely uninstalling cygwin, deleting the cygwin directory, and reinstalling it. Do a FULL install of EVERYTHING. After the install completes, try to run toolchain.sh.
The thing is, there are a lot of people on here who have installed the toolchain. I have, and it worked fine on two computers (work and home). Honestly memory errors are very difficult to track down, and even Memtest86 misses things. I've run it on computers for hours and it showed nothing on computers that I knew had memory problems.
If you've got more than one stick, try removing them one at a time... Run the install with your case off maybe.
You might want to try completely uninstalling cygwin, deleting the cygwin directory, and reinstalling it. Do a FULL install of EVERYTHING. After the install completes, try to run toolchain.sh.
The thing is, there are a lot of people on here who have installed the toolchain. I have, and it worked fine on two computers (work and home). Honestly memory errors are very difficult to track down, and even Memtest86 misses things. I've run it on computers for hours and it showed nothing on computers that I knew had memory problems.
If you've got more than one stick, try removing them one at a time... Run the install with your case off maybe.
Cyberbill might have a valid suggestion. But a better idea is to remove pspdev (as suggested various times in the forums and irc), ie:
rm -rf /usr/local/pspdev
It sounds like all your anti-virus software is taking away so many resources that you'd probably be better off without them.
My experience so far:
- toolchain.sh works on Macosx
- toolchain.sh works on Debian
- toolchain.sh works on Cygwin (fresh windows installation with nothing else)
Also, someone (jason867?) indicated he fixed his problems by jiggering with the Hard drive settings. You may wish to find his forum post or private message him.
rm -rf /usr/local/pspdev
It sounds like all your anti-virus software is taking away so many resources that you'd probably be better off without them.
My experience so far:
- toolchain.sh works on Macosx
- toolchain.sh works on Debian
- toolchain.sh works on Cygwin (fresh windows installation with nothing else)
Also, someone (jason867?) indicated he fixed his problems by jiggering with the Hard drive settings. You may wish to find his forum post or private message him.
yes :s
I'm having the same problems. On both my gaming rig as my server I'm getting this error at the end of GCC compilation:
EDIT: I've tried both a full install of cygwin, and a minimal install of cygwin. Both resulting in the same error. Right now I am rebuilding with all processes turned off, lets see if that helps.
Thx in advance,
Opi
And I'm building with the ./toolchain.sh -g command. Maybe some of you who can run the whole script can run the toolchain with this command? It could be a problem with the make?./../../libiberty/regex.c:8234: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8235: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8237: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8238: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8239: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8240: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8242: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8243: error: dereferencing pointer to incomplete type
../../../libiberty/regex.c:8244: error: dereferencing pointer to incomplete type
make[1]: *** [regex.o] Error 1
make[1]: Leaving directory `/tmp/pspdev/gcc-4.0.1/build-psp-c++/psp/libiberty'
make: *** [all-target-libiberty] Error 2
ERROR BUILDING GCC (C++)
EDIT: I've tried both a full install of cygwin, and a minimal install of cygwin. Both resulting in the same error. Right now I am rebuilding with all processes turned off, lets see if that helps.
Thx in advance,
Opi
Re: yes :s
Hello Opi, I haven't found a way around these problems yet.opicron wrote: EDIT: I've tried both a full install of cygwin, and a minimal install of cygwin. Both resulting in the same error. Right now I am rebuilding with all processes turned off, lets see if that helps.
Thx in advance,
Opi
But what I've managed to get the devkitPro kit working:
http://prdownloads.sourceforge.net/devk ... e?download
And here is a fix for it:
http://prdownloads.sourceforge.net/devk ... l?download
This is a response to my bug report:
http://sourceforge.net/tracker/index.ph ... tid=668551
I'm currently investigating if there's a way to use cygwin install to build libs for the devkitPRO install, because with a "clean" install, one can't runt autogen.sh etc since autoconf and such tools are not installed with the devkitPRO distro.
I'll keep ya'all posted
Okay, here's a quick update:
devkitPRO:
Very nice, works now fine. But is missing autotools and other needed parts, so it's not possible to get and build needed libraries such as SDL and zlib etc... I tried myself to install autotools under mingw, but ended up chasing problems to why autoheader wouldn't work with any perl installation I did, so I couldn't build m4 as needed. So I gave up that chase, and have asked nicely for autotools to be included in the devkitPRO distribution.
psptoolchain:
I've posted a support request on the cygwin mailing list:
http://cygwin.com/ml/cygwin/2005-09/msg00751.html
Now lets see if the cygwin wizzards can sort me out :)
devkitPRO:
Very nice, works now fine. But is missing autotools and other needed parts, so it's not possible to get and build needed libraries such as SDL and zlib etc... I tried myself to install autotools under mingw, but ended up chasing problems to why autoheader wouldn't work with any perl installation I did, so I couldn't build m4 as needed. So I gave up that chase, and have asked nicely for autotools to be included in the devkitPRO distribution.
psptoolchain:
I've posted a support request on the cygwin mailing list:
http://cygwin.com/ml/cygwin/2005-09/msg00751.html
Now lets see if the cygwin wizzards can sort me out :)