PSPSDK refuses to compile...

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

Moderators: cheriff, TyRaNiD

Post Reply
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

PSPSDK refuses to compile...

Post by adrahil »

Hi all!
Just dropping by to tell you about a curiosity :) PSPSDK fails to compile SCE-function-less modules. If I don't call ANY SCE functions, it refuses to link, because .lib.stub can't be found... Just found it kind of fun ;)
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

adrahil, press a second time make, and the resulting module will work, don't worry.

I already mentioned it to tyranid long ago, but anyways as the problem is gone pressing make again, it is not that big of a problem.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Just curious - what do you DO with something that makes NO CALLS to the sony interface on a PSP?? You can't mess with files, you can't display anything, you can't read the inputs... I take it this is something that runs strictly in psplink, inputs nothing and counts on the psplink prints for output.
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

You can mess with the hardware, use EDRAM for display, ... :) There ARE possibilities...
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

I see - you're banging on the hardware directly. Gotcha.
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

:)
moonlight:
You're right, I didn't see it... I generally try to *solve* my compiler warnings or errors...

Code: Select all

psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -Ipsp -Iisa -Ipsx -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150  -L. -L/usr/local/pspdev/psp/sdk/lib -specs=/usr/local/pspdev/psp/sdk/lib/prxspecs -Wl,-q,-T/usr/local/pspdev/psp/sdk/lib/linkfile.prx -mno-crt0 -nostartfiles  main.o /usr/local/pspdev/psp/sdk/lib/prxexports.o  -lpspdebug -lpspdisplay_driver -lpspctrl_driver -lpspsdk  -lpspkernel -o template.elf
psp-fixup-imports template.elf
Error, no .lib.stub section found
make: *** [template.elf] Erreur 1
adrahil@Rakuen:~/psx$ make -f Makefile.psp
psp-prxgen template.elf template.prx
adrahil@Rakuen:~/psx$
hlide
Posts: 739
Joined: Sun Sep 10, 2006 2:31 am

Post by hlide »

adrahil, don't forget to commit in the SVN ;P
Post Reply