Page 1 of 1

error with devkitPPC

Posted: Tue Oct 26, 2010 8:56 pm
by hamachi-mp
hello,
I'm from Germany and my english is bad
I have an error

in the new devkitPPC I always get the following error

Code: Select all

dol.c
main.c
system.c
cache_asm.S
crt0.S
system_asm.S
linking ... stub.elf
dol.o: In function `dol_relocstart':
c:/Users/temp/Desktop/back_to/stub/source/dol.c:65: undefined reference to `_restgpr_29_x'
system.o: In function `__exception_close':
c:/Users/temp/Desktop/back_to/stub/source/system.c:56: undefined reference to `_savegpr_31'
c:/Users/temp/Desktop/back_to/stub/source/system.c:62: undefined reference to `_restgpr_31_x'
system.o: In function `__exception_closeall':
c:/Users/temp/Desktop/back_to/stub/source/system.c:65: undefined reference to `_savegpr_31'
c:/Users/temp/Desktop/back_to/stub/source/system.c:72: undefined reference to `_restgpr_31_x'
collect2: ld returned 1 exit status
make[1]: *** [/c/Users/temp/Desktop/back_to/stub/stub.elf] Error 1
"make": *** [build] Error 2

Re: error with devkitPPC

Posted: Tue Oct 26, 2010 9:27 pm
by WinterMute
Since you have a crt0.s in the compiled files list I assume you're linking with -nostartfiles -nostdlib. The error you're getting comes from compiling code with -Os but not linking against libgcc. You'll need to either add -lgcc to your link command or not compile with -Os.

Re: error with devkitPPC

Posted: Tue Oct 26, 2010 10:15 pm
by hamachi-mp
thank you
with LIBS := -lgcc works

Re: error with devkitPPC

Posted: Wed Nov 24, 2010 2:28 am
by DanielKO
The examples don't build anymore because of this. Any chance to get an updated tarball?

EDIT: never mind, just mismatched devkitPPC and libogc versions. Everything works fine.