forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Latest SVN pspsdk errors

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Shito



Joined: 11 May 2005
Posts: 21

PostPosted: Sun Jul 31, 2005 11:56 am    Post subject: Latest SVN pspsdk errors Reply with quote

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
View user's profile Send private message
apache37



Joined: 04 Jun 2004
Posts: 76

PostPosted: Sun Jul 31, 2005 2:14 pm    Post subject: Reply with quote

I think you have to update your toolchain
Back to top
View user's profile Send private message
Shito



Joined: 11 May 2005
Posts: 21

PostPosted: Mon Aug 01, 2005 6:43 am    Post subject: Reply with quote

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
View user's profile Send private message
t-nooby



Joined: 31 Jul 2005
Posts: 6

PostPosted: Mon Aug 01, 2005 4:16 pm    Post subject: Reply with quote

ok this has just happened to me


what code did u use to upsate??

./toolchain.sh -n

or just ./toolchain.sh
Back to top
View user's profile Send private message
Shito



Joined: 11 May 2005
Posts: 21

PostPosted: Mon Aug 01, 2005 5:31 pm    Post subject: Reply with quote

I updated the whole toolchain, so ./toolchain.sh
Back to top
View user's profile Send private message
Subzero



Joined: 11 Jul 2005
Posts: 9

PostPosted: Mon Aug 01, 2005 8:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Mon Aug 01, 2005 9:16 pm    Post subject: Reply with quote

try a "clean" update.
ie: remove $PSPDEV first
Back to top
View user's profile Send private message
malaka



Joined: 02 Aug 2005
Posts: 3

PostPosted: Tue Aug 02, 2005 3:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Subzero



Joined: 11 Jul 2005
Posts: 9

PostPosted: Tue Aug 02, 2005 9:39 am    Post subject: Reply with quote

Back in business.

Thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group