| View previous topic :: View next topic |
| Author |
Message |
matkeupon
Joined: 02 Jul 2005 Posts: 26
|
Posted: Wed Oct 05, 2005 5:50 am Post subject: Problems with mikmodlib and latest svn |
|
|
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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Oct 05, 2005 7:34 am Post subject: Re: Problems with mikmodlib and latest svn |
|
|
| 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 |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Wed Oct 05, 2005 3:13 pm Post subject: |
|
|
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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Oct 05, 2005 3:21 pm Post subject: |
|
|
| 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 |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Wed Oct 05, 2005 3:24 pm Post subject: |
|
|
Bedtime is in 11 hours :(
Thx!
/JockyW |
|
| Back to top |
|
 |
|