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 

Error when running Toolchain.sh

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



Joined: 01 Nov 2005
Posts: 2

PostPosted: Tue Nov 01, 2005 4:06 am    Post subject: Error when running Toolchain.sh Reply with quote

All,
I am trying to install the PSP SDK on Mac OS X as its the only unix box I have and I don't want to use cygwin on windows... I've installed all the prerequisites such as make and subversion - however when the toolchain script is running it fails when working on the NEWLIB portion with the following error:

bc/sys/psp -O2 -G0 -DPREFER_SIZE_OVER_SPEED -DCOMPACT_CTYPE -DCLOCK_PROVIDED -I/usr/local/pspdev/psp/sdk/include -fno-builtin -O2 -g -O2 -O2 -g -O2 -DF__opendir ../../../../../../newlib/libc/sys/psp/libcglue.c -c -o _opendir.o
../../../../../../newlib/libc/sys/psp/libcglue.c:248: error: syntax error before '*' token
../../../../../../newlib/libc/sys/psp/libcglue.c: In function '_opendir':
../../../../../../newlib/libc/sys/psp/libcglue.c:250: error: 'DIR' undeclared (first use in this function)
../../../../../../newlib/libc/sys/psp/libcglue.c:250: error: (Each undeclared identifier is reported only once
../../../../../../newlib/libc/sys/psp/libcglue.c:250: error: for each function it appears in.)
../../../../../../newlib/libc/sys/psp/libcglue.c:250: error: 'dirp' undeclared (first use in this function)
../../../../../../newlib/libc/sys/psp/libcglue.c:258: error: syntax error before ')' token
make[5]: *** [_opendir.o] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive-am] Error 2
make: *** [all-target-newlib] Error 2
ERROR BUILDING NEWLIB

After searching through the newsgroups I was unable to find anyone with the same problem... Does anyone have any ideas?? For the sake of providing complete info to folks, I am running OS X 10.4.2 and the hardware is the mac mini....

thanks to anyone who can help!
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Nov 01, 2005 4:59 am    Post subject: Reply with quote

Sounds to me like your newlib patches are very outdated. Get the psptoolchain dir from subversion (svn://svn.pspdev.org/psp/trunk/psptoolchain) and use that.
Back to top
View user's profile Send private message
powercrazy



Joined: 01 Nov 2005
Posts: 2

PostPosted: Tue Nov 01, 2005 7:41 am    Post subject: Reply with quote

Thanks for the reply Jim - I was actually half-way through updating all the source when you posted your reply...

Anyway once the source was updated everything worked fine - which is wierd because when I used toolchain for the first time ever last night it must've pulled down old code or something...
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