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 

Problem compiling the sample

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



Joined: 25 Jun 2005
Posts: 11

PostPosted: Wed Jun 29, 2005 12:35 am    Post subject: Problem compiling the sample Reply with quote

I just installed the sdk on my G5 and when I compile the sdktest sample I get the following error:

psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -L. -L/usr/local/pspdev/psp/sdk/lib main.o -lpspdebug -lpsplibc -lpspkernel -o sdktest.elf
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/bin/ld: warning: cannot find entry symbol _start; defaulting to 000000000040003c
main.o: In function `main':
main.c:(.text+0x1cc): undefined reference to `g_elf_name'

Looks like it is noyt linking with the correct crt0. should I manually copy it somewhere? I did make install and I have the latest toolchain.
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Jun 29, 2005 12:43 am    Post subject: Reply with quote

Did you also make sure you installed the most recent version of the toolchain, at least the version mentioned by mrbrown ?

I will try it on my G4 tonight... I remember the outpatch program previously used had an endian issue for big-endian systems like Macs, but there should be enough lead ps2dev'ers with Macs now that I wouldn't expect such things to carry over into the toolchain now.
Back to top
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Wed Jun 29, 2005 2:43 am    Post subject: Reply with quote

Yeah, the most common cause for that error is having an older version of the toolchain. Also, if you haven't updated your toolchain in a few weeks, you'll want to delete your current /usr/local/pspdev directory before building the new one.

gorim, outpatch is no longer required :).
Back to top
View user's profile Send private message
kl0wn



Joined: 29 Jun 2005
Posts: 1

PostPosted: Wed Jun 29, 2005 5:40 am    Post subject: Reply with quote

Sounds like a problem I was having, must have been an old toolchain as stated above.

I used one of the installers, then overwrote with the latest, fixed that exact problem for me, recommend you try it yourself ;)
Back to top
View user's profile Send private message
pcostabel



Joined: 25 Jun 2005
Posts: 11

PostPosted: Thu Jun 30, 2005 12:51 am    Post subject: Reply with quote

New toolchain fixed it, thanks.
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