Wasn't _stat added to the latest PSPSDK SVN revision ?

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

Moderators: cheriff, TyRaNiD

Post Reply
Panajev2001a
Posts: 100
Joined: Sat Aug 20, 2005 3:25 am

Wasn't _stat added to the latest PSPSDK SVN revision ?

Post by Panajev2001a »

Code: Select all

ccache psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -G0 -Wall -Os -msingle-fl
oat -funroll-loops -ffast-math -fsingle-precision-constant -fno-exceptions  -L.
-L/usr/local/pspdev/psp/sdk/lib   src/reflection.o src/text.o src/disablefpu.o l
ogo.o src/point.o src/pmatrix.o src/PSP_Utils.o -lpng -lz -lintmdloader -lgeomma
th -lpspgu -lstdc++ -lm -lc  -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk
-lc -lpspuser -lpspkernel -o reflection.elf
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libc.a(sysstat.o): In fu
nction `stat':
../../../../../newlib/libc/syscalls/sysstat.c:14: undefined reference to `_stat'

collect2: ld returned 1 exit status
make: *** [reflection.elf] Error 1
Is this one of the things added to the SVN version (the change in the lib names, etc... mentioned in the same log happened though), but not ready for public release ?

Thanks for any help on this issue (I was trying a file which required _stat because I saw that change in the SVN change-log sorry :().
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

_stat is part of the toolchain, you need to rebuild the whole toolchain using the script in the psptoolchain directory.
Panajev2001a
Posts: 100
Joined: Sat Aug 20, 2005 3:25 am

Post by Panajev2001a »

TyRaNiD wrote:_stat is part of the toolchain, you need to rebuild the whole toolchain using the script in the psptoolchain directory.
I know, I did that like an hour ago (and it was then that I re-compiled the thing).

( ./toolchain.sh )

Edit:
trunk/newlib-psp/newlib/libc/sys/psp/libcglue.c
trunk/newlib-psp/newlib/libc/sys/psp/Makefile.am
trunk/newlib-psp/newlib/libc/sys/psp/Makefile.in
trunk/psptoolchain/newlib-1.13.0.patch
Likely they are not "publically" released, but in pre-release status.
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

TyRaNiD wrote:_stat is part of the toolchain, you need to rebuild the whole toolchain using the script in the psptoolchain directory.
You only need to rebuild newlib, which is toolchain.sh -n.
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Panajev2001a wrote:Edit:
trunk/newlib-psp/newlib/libc/sys/psp/libcglue.c
trunk/newlib-psp/newlib/libc/sys/psp/Makefile.am
trunk/newlib-psp/newlib/libc/sys/psp/Makefile.in
trunk/psptoolchain/newlib-1.13.0.patch
Likely they are not "publically" released, but in pre-release status.
When you see a .patch in psptoolchain/ get updated, that means the tools are ready for public consumption.
Post Reply