error with devkitPPC

Post Reply
hamachi-mp
Posts: 2
Joined: Tue Oct 26, 2010 8:43 pm

error with devkitPPC

Post by hamachi-mp » Tue Oct 26, 2010 8:56 pm

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

WinterMute
Site Admin
Posts: 1478
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: error with devkitPPC

Post by WinterMute » Tue Oct 26, 2010 9:27 pm

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

hamachi-mp
Posts: 2
Joined: Tue Oct 26, 2010 8:43 pm

Re: error with devkitPPC

Post by hamachi-mp » Tue Oct 26, 2010 10:15 pm

thank you
with LIBS := -lgcc works

DanielKO
Posts: 1
Joined: Wed Nov 24, 2010 2:25 am

Re: error with devkitPPC

Post by DanielKO » Wed Nov 24, 2010 2:28 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest