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 

Problems with mikmodlib and latest svn

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



Joined: 02 Jul 2005
Posts: 26

PostPosted: Wed Oct 05, 2005 5:50 am    Post subject: Problems with mikmodlib and latest svn Reply with quote

Well, maybe not the latest, but since I reinstalled cygwin and the toolchain today, mikmodlib compiles and installs fine, but the example won't link (and my game too), an error related to libmmio.a...

The error says:
psp/lib/libc.a(pspcwd.o): In function '__psp_init_cwd':
newlib/libc/sys/psp/pspcwd.c:28: undefined reference to '__psp_argv_0'
newlib/libc/sys/psp/pspcwd.c:28: undefined reference to '__psp_argv_0'

As I was writing this post I solved the problem, declaring this in my program:
void *__psp_argv_0;

Using this, the lib works fine :)

I still post this, as someone might want to fix this error that seems to be in the libc somewhere.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Oct 05, 2005 7:34 am    Post subject: Re: Problems with mikmodlib and latest svn Reply with quote

matkeupon wrote:

psp/lib/libc.a(pspcwd.o): In function '__psp_init_cwd':
newlib/libc/sys/psp/pspcwd.c:28: undefined reference to '__psp_argv_0'
newlib/libc/sys/psp/pspcwd.c:28: undefined reference to '__psp_argv_0'


This error is because you're using pspsdk from svn but an older version of the newlib patch from somewhere else. Check out a copy of svn://svn.pspdev.org/psp/trunk/psptoolchain and use that to rebuild everything. See here .
Back to top
View user's profile Send private message
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Wed Oct 05, 2005 3:13 pm    Post subject: Reply with quote

What are the least time consuming steps for rebuilding everything?
Do I need to run the script which I downloaded last week with '-p' ?

I use a poor man's laptop with a celeron running on 700MHz and only 384MB ram that's why ... Well, it *does* have usb ;) usb1.1 that is :)

/JockyW
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Oct 05, 2005 3:21 pm    Post subject: Reply with quote

jockyw2001 wrote:
What are the least time consuming steps for rebuilding everything? Do I need to run the script which I downloaded last week with '-p' ?


Get the latest psptoolchain directory from svn and run "./toolchain.sh -n" shortly before going to bed. Next thing you know, it's morning and it's done. :)
Back to top
View user's profile Send private message
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Wed Oct 05, 2005 3:24 pm    Post subject: Reply with quote

Bedtime is in 11 hours :(

Thx!

/JockyW
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