Latest SVN pspsdk errors

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

Moderators: cheriff, TyRaNiD

Post Reply
Shito
Posts: 21
Joined: Wed May 11, 2005 1:38 am

Latest SVN pspsdk errors

Post by Shito »

Just updated the pspsdk from svn, and now I have some brand new nice errors in my project :

Code: Select all

main.o: In function `main':
main.c:(.text+0x868): undefined reference to `clock'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(exit.o): In function `exit':
../../../../../newlib/libc/stdlib/exit.c:65: undefined reference to `_exit'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(sbrkr.o): In function `_sbrk_r':
../../../../../newlib/libc/reent/sbrkr.c:60: undefined reference to `_sbrk'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(makebuf.o): In function `__smakebuf':
../../../../../newlib/libc/stdio/makebuf.c:96: undefined reference to `isatty'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(writer.o): In function `_write_r':
../../../../../newlib/libc/reent/writer.c:58: undefined reference to `_write'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(closer.o): In function `_close_r':
../../../../../newlib/libc/reent/closer.c:53: undefined reference to `_close'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(fstatr.o): In function `_fstat_r':
../../../../../newlib/libc/reent/fstatr.c:62: undefined reference to `_fstat'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(lseekr.o): In function `_lseek_r':
../../../../../newlib/libc/reent/lseekr.c:58: undefined reference to `_lseek'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(readr.o): In function `_read_r':
../../../../../newlib/libc/reent/readr.c:58: undefined reference to `_read'
collect2: ld returned 1 exit status
make: *** [main.elf] Error 1
Any idea ? :/

Edit: just noticed it mentions newlib, do I need to update it from the toolchain.sh too ? Or maybe all the toolchain ?
apache37
Posts: 76
Joined: Fri Jun 04, 2004 3:13 pm

Post by apache37 »

I think you have to update your toolchain
Shito
Posts: 21
Joined: Wed May 11, 2005 1:38 am

Post by Shito »

Ok, that was it, lost a whole day installing the latest toolchain (god, cygwin is sooooo slow on my pc ^^), but I can now compile again.
t-nooby
Posts: 6
Joined: Sun Jul 31, 2005 3:29 am

Post by t-nooby »

ok this has just happened to me


what code did u use to upsate??

./toolchain.sh -n

or just ./toolchain.sh
Shito
Posts: 21
Joined: Wed May 11, 2005 1:38 am

Post by Shito »

I updated the whole toolchain, so ./toolchain.sh
User avatar
Subzero
Posts: 9
Joined: Mon Jul 11, 2005 3:38 am

Post by Subzero »

Ok this happened to yesterday after I updated the sdk.

via ./toolchain.sh -p

since then I updeted the whole thing via ./toolchain.sh

still I got the same errors, so I updated again(just in case)
via ./toolchain.sh

and still I get these errors:

Code: Select all

$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall   -c -o main.o mai
n.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -L. -L/usr/local/
pspdev/psp/sdk/lib   main.o  -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk
-lc -lpspuser -lpspkernel -o irda.elf
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(exit.o): In funct
ion `exit':
../../../../../newlib/libc/stdlib/exit.c:65: undefined reference to `_exit'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(sbrkr.o): In func
tion `_sbrk_r':
../../../../../newlib/libc/reent/sbrkr.c:60: undefined reference to `_sbrk'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(makebuf.o): In fu
nction `__smakebuf':
../../../../../newlib/libc/stdio/makebuf.c:96: undefined reference to `isatty'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(writer.o): In fun
ction `_write_r':
../../../../../newlib/libc/reent/writer.c:58: undefined reference to `_write'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(closer.o): In fun
ction `_close_r':
../../../../../newlib/libc/reent/closer.c:53: undefined reference to `_close'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(fstatr.o): In fun
ction `_fstat_r':
../../../../../newlib/libc/reent/fstatr.c:62: undefined reference to `_fstat'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(lseekr.o): In fun
ction `_lseek_r':
../../../../../newlib/libc/reent/lseekr.c:58: undefined reference to `_lseek'
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libc.a(readr.o): In func
tion `_read_r':
../../../../../newlib/libc/reent/readr.c:58: undefined reference to `_read'
collect2: ld returned 1 exit status
make: *** [irda.elf] Error 1
This is th irda sample it was working great before I updated now
I get these errors when I try to complie anything.
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post by rinco »

try a "clean" update.
ie: remove $PSPDEV first
malaka
Posts: 3
Joined: Tue Aug 02, 2005 3:29 am

Post by malaka »

I see you still use gcc 4.0.0!

I guess you forgot to update the toolchain scripts itself!

You should update it from its subversion:
svn://svn.pspdev.org/psp/trunk/psptoolchain

or redownload it:)

The new version includes gcc 4.0.1

maybe it'll help
- demomacking is not a crime -
User avatar
Subzero
Posts: 9
Joined: Mon Jul 11, 2005 3:38 am

Post by Subzero »

Back in business.

Thank you
Post Reply