Problems with mikmodlib and latest svn

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
matkeupon
Posts: 26
Joined: Sat Jul 02, 2005 10:58 pm

Problems with mikmodlib and latest svn

Post by matkeupon »

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.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Re: Problems with mikmodlib and latest svn

Post by jimparis »

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 .
jockyw2001
Posts: 339
Joined: Thu Sep 29, 2005 4:19 pm

Post by jockyw2001 »

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
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

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. :)
jockyw2001
Posts: 339
Joined: Thu Sep 29, 2005 4:19 pm

Post by jockyw2001 »

Bedtime is in 11 hours :(

Thx!

/JockyW
Post Reply