Error during toolchain.sh execution

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

Moderators: cheriff, TyRaNiD

Post Reply
Monkeyget
Posts: 2
Joined: Sat Oct 21, 2006 3:51 am

Error during toolchain.sh execution

Post by Monkeyget »

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: Select all

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: Select all

# 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-,; '
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

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
Monkeyget
Posts: 2
Joined: Sat Oct 21, 2006 3:51 am

Post by Monkeyget »

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 .
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

No problem,

Now get started on Dosbox :P
Post Reply