 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
XMunkki
Joined: 18 Oct 2005 Posts: 3
|
Posted: Tue Oct 18, 2005 7:20 pm Post subject: psptoolchain problems (cygwin; can't compile gcc) |
|
|
Hi,
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:
| Quote: | 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]')
|
and so on and so on.
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? |
|
| Back to top |
|
 |
XMunkki
Joined: 18 Oct 2005 Posts: 3
|
Posted: Wed Oct 19, 2005 1:34 pm Post subject: |
|
|
| Funny, got it to work. What I did was reinstall cygwin from scratch. That did the trick. |
|
| Back to top |
|
 |
|
|
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
|