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]strangeful error compiling toolchain on Leopard

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



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

PostPosted: Fri Jul 24, 2009 8:11 pm    Post subject: [solved]strangeful error compiling toolchain on Leopard Reply with quote

hi all,
I svned a fresh copy 2 hours ago from the repository but i get that error when it arrived on 004-newlib-1.16.8.sh:

Code:

psp-gcc -B/Users/paraitawohler/src/psptoolchain/build/newlib-1.16.0/build-psp/psp/newlib/ -isystem /Users/paraitawohler/src/psptoolchain/build/newlib-1.16.0/build-psp/psp/newlib/targ-include -isystem /Users/paraitawohler/src/psptoolchain/build/newlib-1.16.0/newlib/libc/include -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.16.0\" -DPACKAGE_STRING=\"newlib\ 1.16.0\" -DPACKAGE_BUGREPORT=\"\" -I. -I../../../../../newlib/libc/argz -O2 -G0 -mno-explicit-relocs -DCOMPACT_CTYPE -DCLOCK_PROVIDED -DHAVE_FCNTL -DHAVE_RENAME -DMALLOC_ALIGNMENT=16 -I/psp/sdk/include -fno-builtin      -O2 -g -g -O2   -c -o lib_a-argz_add.o `test -f 'argz_add.c' || echo '../../../../../newlib/libc/argz/'`argz_add.c
FATAL:/usr/bin/../libexec/gcc/darwin/i386/as: I don't understand 'G' flag!
make[5]: *** [lib_a-dummy.o] Error 1
make[5]: *** Waiting for unfinished jobs....
FATAL:/usr/bin/../libexec/gcc/darwin/i386/as: I don't understand 'G' flag!
make[5]: *** [lib_a-argz_add.o] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-target-newlib] Error 2
make: *** [all] Error 2


I searched over the forum and found something similar over there, i tried what was proposed but it didn't work because the patches aren't working anymore (i tried to apply the matching lines, didn't work either).

Anyone got an idea ?


Last edited by paraita on Sat Jul 25, 2009 10:43 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ouasse



Joined: 30 Jul 2007
Posts: 90
Location: Paris, France

PostPosted: Fri Jul 24, 2009 9:38 pm    Post subject: Reply with quote

seems the generated psp-gcc calls a previsously installed i386 assembler. weird.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Jul 25, 2009 1:21 am    Post subject: Reply with quote

Did you do the exports of the envvars before starting the toolchain script? If not, you'll be using the native gcc at the wrong places.
Back to top
View user's profile Send private message AIM Address
paraita



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

PostPosted: Sat Jul 25, 2009 7:14 am    Post subject: Reply with quote

I put these lines in my ~/.profile:
Code:
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PATH="$PSPDEV/bin:$PSPSDK/bin:/Applications/PLT-Scheme-svn/bin:/opt/local/bin:/opt/local/sbin"


but i still get the same error at the end.

J.F. wrote:
Did you do the exports of the envvars before starting the toolchain script? If not, you'll be using the native gcc at the wrong places.


by native you mean apple's gcc ? i tried to alias gcc to /opt/local/gcc-mp-4.2 or with the CC envvar too.


ouasse wrote:
seems the generated psp-gcc calls a previsously installed i386 assembler. weird.


I pm'd you about that, but i really don't understand about that :s, maybe it has to do with my previous installation of the pspsdk (i know i should have stick to it instead of reinstall it :/ ) but i got rid of it, i rm'd the whole /usr/local/pspdev folder before reinstalling everything.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Jul 25, 2009 10:07 am    Post subject: Reply with quote

I've never had good luck using exports in profile or resource files to "automatically" be done when you start a shell. I've gotten in the habit of always just cutting and pasting into the shell before using the toolchain. If you want to check if the export is working, just "echo $PSPDEV" and see what it prints in the shell. If nothing, your export isn't being set. Do it by hand and try again.
Back to top
View user's profile Send private message AIM Address
paraita



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

PostPosted: Sat Jul 25, 2009 10:41 am    Post subject: Reply with quote

Thx J.F. !
i tried to explicitly export envvar on the terminal and it worked !

I searched why it didn't work with my .profile and i found that I already had a .bashrc in my home folder, by default bash will look for that file instead of .profile so my envvar were never loaded. I just erased the .bashrc file and my .profile file was recognized :)

You can check what envvar are loaded in the terminal by typing:

Code:
env


Toolchain did failed on psplinkusb stage but that was because of pspsh not compiling with Apple readline, so i installed it via macport and it compiled correctly.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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