| View previous topic :: View next topic |
| Author |
Message |
Shito
Joined: 11 May 2005 Posts: 21
|
Posted: Sun Jul 31, 2005 11:56 am Post subject: Latest SVN pspsdk errors |
|
|
Just updated the pspsdk from svn, and now I have some brand new nice errors in my project :
| Code: |
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 ? |
|
| Back to top |
|
 |
apache37
Joined: 04 Jun 2004 Posts: 76
|
Posted: Sun Jul 31, 2005 2:14 pm Post subject: |
|
|
| I think you have to update your toolchain |
|
| Back to top |
|
 |
Shito
Joined: 11 May 2005 Posts: 21
|
Posted: Mon Aug 01, 2005 6:43 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
t-nooby
Joined: 31 Jul 2005 Posts: 6
|
Posted: Mon Aug 01, 2005 4:16 pm Post subject: |
|
|
ok this has just happened to me
what code did u use to upsate??
./toolchain.sh -n
or just ./toolchain.sh |
|
| Back to top |
|
 |
Shito
Joined: 11 May 2005 Posts: 21
|
Posted: Mon Aug 01, 2005 5:31 pm Post subject: |
|
|
| I updated the whole toolchain, so ./toolchain.sh |
|
| Back to top |
|
 |
Subzero

Joined: 11 Jul 2005 Posts: 9
|
Posted: Mon Aug 01, 2005 8:28 pm Post subject: |
|
|
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: | $ 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. |
|
| Back to top |
|
 |
rinco
Joined: 21 Jan 2005 Posts: 255 Location: Canberra, Australia
|
Posted: Mon Aug 01, 2005 9:16 pm Post subject: |
|
|
try a "clean" update.
ie: remove $PSPDEV first |
|
| Back to top |
|
 |
malaka
Joined: 02 Aug 2005 Posts: 3
|
Posted: Tue Aug 02, 2005 3:33 am Post subject: |
|
|
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 - |
|
| Back to top |
|
 |
Subzero

Joined: 11 Jul 2005 Posts: 9
|
Posted: Tue Aug 02, 2005 9:39 am Post subject: |
|
|
Back in business.
Thank you |
|
| Back to top |
|
 |
|