I'm using the newest psptoolchain script (20051011, though I tried with 20050801 also, no change) under cygwin with Windows XP. I have the newest cygwin and should have all the required packages installed. The text mode in cygwin is set to unix.
The downloading phase goes fine. Binutils compiles fine and installs. Gcc on the other hand doesn't compile (I have tried both with "./toolchain.sh" and "./toolchain.sh -n").
Here's a snippet of the error:
and so on and so on.make[1]: Entering directory `/tmp/pspdev/gcc-4.0.1/build-psp/gcc'
gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wno-error -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc -I../../gcc/build -I../../gcc/../include -I../../gcc/../libcpp/include \
-o build/insn-conditions.o insn-conditions.c
insn-conditions.c:60: error: missing terminating " character
insn-conditions.c:61: error: stray '\' in program
insn-conditions.c:61: error: `n' undeclared here (not in a function)
insn-conditions.c:63: error: stray '\' in program
insn-conditions.c:63: error: parse error before "n"
insn-conditions.c:63: error: initializer element is not constant
insn-conditions.c:63: error: (near initialization for `insn_conditions[0].expr')
insn-conditions.c:63: error: missing terminating " character
insn-conditions.c:65: warning: excess elements in struct initializer
insn-conditions.c:65: warning: (near initialization for `insn_conditions[0]')
I checked this file and it is a generated file ("by the program `genconditions' from the target machine description file"). I also checked th place where the compilation fails. There are some weird characters on the line which probably break the compiler/preprocessor. I tried to remove the weird chars but to no luck (crashed on the next phase, trying to run genflags).
So anyone got any ideas?