forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error during toolchain.sh execution

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Monkeyget



Joined: 21 Oct 2006
Posts: 2

PostPosted: Sat Oct 21, 2006 4:24 am    Post subject: Error during toolchain.sh execution Reply with quote

I tried to install the psptoolchain through cygwin but it consistently fail, so I hope someone here will be able to help me.

I installed cygwin (or rather re-installed once more :) ) and made sure to have the right packages.

The problem arise when I try to install gcc (toolchain.sh -g)

Here is the log I get before the error:

Code:
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mkheaders
config.status: creating config.h
Configuring in libiberty
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for i686-pc-cygwin-ar... ar
checking for i686-pc-cygwin-ranlib... ranlib
checking for i686-pc-cygwin-gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
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
checking how to run the C preprocessor... gcc -E
checking whether gcc and cc understand -c and -o together... yes
...

[snip. you get the idea]

...
checking for __fsetlocking... no
checking whether canonicalize_file_name must be declared... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... no
checking for working strncmp... yes
updating cache ./config.cache
configure: creating ./config.status
/bin/sh: line 21:  2576 Hangup                  /bin/sh ${libsrcdir}/configure -
-cache-file=./config.cache --build=i686-pc-cygwin --host=i686-pc-cygwin --target
=psp --with-stabs --prefix=/usr/local/pspdev --with-newlib --enable-cxx-flags=-G
0 --with-gcc-version-trigger=/tmp/pspdev/gcc-4.0.2/gcc/version.c --enable-langua
ges=c,c++ --program-transform-name='s,^,psp-,; ' ${srcdiroption}
make: *** [configure-libiberty] Error 1
ERROR BUILDING GCC (C++)


I don't know if it's normal or not but each of the lines checking for xxxx... no/yes take quite some time (~5-10 second each).

"line 21: 2576 Hangup" is not particulary helpful...

The error comes from ## BUILD AND INSTALL GCC (C++) ## in toolchain.sh and more precisely the make instruction "$MAKE clean; $MAKE CFLAGS_FOR_TARGET="-G0" || { echo "ERROR BUILDING GCC (C++)"; exit; }"
which use the makefile file at tmp/pspdev/gcc-4.0.2/build-psp-c++/Makefile

The error in that makefile is at the line :
Code:
# This is set by the configure script to the arguments to use when configuring
# directories built for the host system.
HOST_CONFIGARGS = --cache-file=./config.cache --build=i686-pc-cygwin --host=i686-pc-cygwin --target=psp  --with-stabs --prefix=/usr/local/pspdev --with-newlib --enable-cxx-flags=-G0 --with-gcc-version-trigger=/tmp/pspdev/gcc-4.0.2/gcc/version.c --enable-languages=c,c++ --program-transform-name='s,^,psp-,; '
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Sat Oct 21, 2006 8:17 pm    Post subject: Reply with quote

I would suggest trying to use Linux instead of cygwin, that way you can be sure that its all in place..

I gave up on windows after a week of trying but a few linux distros worked first time and took about half an hour - 45 mins

I use Mac Os X now.

However maybe try the following if linux isnt appropriate

1) Re installing the entire toolchain ensuring you have an active internet connection throughout the entire process
2) re installing cygwin (ensuring the libraries for PSP development are installed
3) If all fails, throw hard drive out the window, get new hard drive (Skip this if you wish), install linux on second partition or second drive

Cheerio

Wally
Back to top
View user's profile Send private message AIM Address
Monkeyget



Joined: 21 Oct 2006
Posts: 2

PostPosted: Sun Oct 22, 2006 9:31 pm    Post subject: Reply with quote

Thanks for you help Wally4000 but i got it to work. I don't know why it worked this time but it did.
I just deleted the temp files, made sure I had all the required package and installed the different composants one by one instead of executing the whole toolchain script in one step.

I just made the most incredible PSP application I have ever done (and i really only have made one) : hello world. Hurray!

I also realised that i have forgotten most VI commands and how bad I have always sucked at c programming. Boy isn't that going to be fun :p .
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Sun Oct 22, 2006 11:06 pm    Post subject: Reply with quote

No problem,

Now get started on Dosbox :P
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group