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++)
"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-,; '