| View previous topic :: View next topic |
| Author |
Message |
stinos
Joined: 17 Oct 2005 Posts: 12
|
Posted: Sun Sep 30, 2007 1:55 am Post subject: [ solved ] more toolchain problems under OsX |
|
|
I did a quick search but it seems nobody had this problem before:
binutils compiles fine (after putting make -r in script), but then
compiling gcc fails with
| Code: |
gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc -I../../gcc/build -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include -o build/genmodes.o ../../gcc/genmodes.c
Assembler messages:
Fatal error: invalid listing option `r'
|
which means (afaik) that gcc is using OsX's as instead of psp-as.. any idea how to fix this??
gcc version:
| Code: |
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
|
path setup
| Code: |
## PSPDEV SETTINGS
export PSPDEV=/usr/local/pspdev
export PSPSDK=$PSPDEV/psp/sdk
export PSPPATH=$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin
export PATH=./:$PATH:$PSPPATH
|
thanks in advance!
Last edited by stinos on Thu Oct 04, 2007 5:59 am; edited 1 time in total |
|
| Back to top |
|
 |
paraita

Joined: 25 Sep 2007 Posts: 12 Location: Nice, France
|
Posted: Sun Sep 30, 2007 10:53 am Post subject: |
|
|
hi, it's weird, i don't have all that stuff when i type gcc --version or g++ --version, it just ouput something like this:
| Code: | i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
how did you install gcc ? via latest Xcode ? i used Xcode 2.4.1. |
|
| Back to top |
|
 |
stinos
Joined: 17 Oct 2005 Posts: 12
|
Posted: Sun Sep 30, 2007 8:06 pm Post subject: |
|
|
| paraita wrote: | | hi, it's weird, i don't have all that stuff when i type gcc --version or g++ --version |
try gcc -v instead
| Quote: |
how did you install gcc ? via latest Xcode ? i used Xcode 2.4.1. |
via latest XCode |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Sun Sep 30, 2007 8:11 pm Post subject: |
|
|
try doing each script individually.
It might work that way (I just did it, worked fine) |
|
| Back to top |
|
 |
stinos
Joined: 17 Oct 2005 Posts: 12
|
Posted: Sun Sep 30, 2007 8:48 pm Post subject: |
|
|
that's what i'm doing already.. I even manually entered each step from the script apart..
atm I'm trying the same under cygwin and that works fine ;-[ |
|
| Back to top |
|
 |
bulb
Joined: 19 Jan 2006 Posts: 50
|
Posted: Mon Oct 01, 2007 2:53 am Post subject: |
|
|
It really seems that the improper assembler is being used, although I have no idea why.
Check the file: psptoolchain/build/gcc-4.1.0/build-psp/gcc/as
The content of this file is:
| Code: | #!/bin/sh
exec /usr/local/pspdev/bin/psp-as "$@"
|
Also, the error log will be more informative if you type make commands by hand (as previously suggested). At least use make without option -j 2. |
|
| Back to top |
|
 |
stinos
Joined: 17 Oct 2005 Posts: 12
|
Posted: Tue Oct 02, 2007 3:19 am Post subject: |
|
|
content of that file was ok;
the problem was in my PATH..
I set PATH=./:$PATH:$PSPATH, setting it to PATH=$PATH:$PSPPATH did the trick somehow.
now I get other errors later on though, so I probably have to reconfigure etc.. |
|
| Back to top |
|
 |
|