forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[ solved ] more toolchain problems under OsX

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
stinos



Joined: 17 Oct 2005
Posts: 12

PostPosted: Sun Sep 30, 2007 1:55 am    Post subject: [ solved ] more toolchain problems under OsX Reply with quote

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
View user's profile Send private message
paraita



Joined: 25 Sep 2007
Posts: 12
Location: Nice, France

PostPosted: Sun Sep 30, 2007 10:53 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
stinos



Joined: 17 Oct 2005
Posts: 12

PostPosted: Sun Sep 30, 2007 8:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Sun Sep 30, 2007 8:11 pm    Post subject: Reply with quote

try doing each script individually.

It might work that way (I just did it, worked fine)
Back to top
View user's profile Send private message AIM Address
stinos



Joined: 17 Oct 2005
Posts: 12

PostPosted: Sun Sep 30, 2007 8:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
bulb



Joined: 19 Jan 2006
Posts: 50

PostPosted: Mon Oct 01, 2007 2:53 am    Post subject: Reply with quote

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
View user's profile Send private message
stinos



Joined: 17 Oct 2005
Posts: 12

PostPosted: Tue Oct 02, 2007 3:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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