| View previous topic :: View next topic |
| Author |
Message |
pcostabel
Joined: 25 Jun 2005 Posts: 11
|
Posted: Wed Jun 29, 2005 12:35 am Post subject: Problem compiling the sample |
|
|
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 |
|
 |
Guest
|
Posted: Wed Jun 29, 2005 12:43 am Post subject: |
|
|
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
|
Posted: Wed Jun 29, 2005 2:43 am Post subject: |
|
|
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 |
|
 |
kl0wn
Joined: 29 Jun 2005 Posts: 1
|
Posted: Wed Jun 29, 2005 5:40 am Post subject: |
|
|
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 |
|
 |
pcostabel
Joined: 25 Jun 2005 Posts: 11
|
Posted: Thu Jun 30, 2005 12:51 am Post subject: |
|
|
| New toolchain fixed it, thanks. |
|
| Back to top |
|
 |
|