Page 1 of 2

Compiling error with libogc 1.7.1.

Posted: Mon Feb 23, 2009 11:57 am
by dontwantanick
Sorry for posting this twice, but i really don't know how to solve my problem.

After upgrading DevKitPro, i get the following compiling error(s):

d:/Programme/devkitPro/libogc/lib/wii\libogc.a(ipc.o): In function `__ios_ioctlvformat_parse’:
ipc.c:(.text.__ios_ioctlvformat_parse+0×174): undefined reference to `__ctype_ptr__’
d:/programme/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld.exe: d:/Programme/devkitPro/libogc/lib/wii\libogc.a(ipc.o)(.text.__ios_ioctlvformat_parse+0×174): unresolvable R_PPC_EMB_SDA21 relocation against symbol `__ctype_ptr__’
ipc.c:(.text.__ios_ioctlvformat_parse+0×4e8): undefined reference to `__ctype_ptr__’
d:/programme/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld.exe: d:/Programme/devkitPro/libogc/lib/wii\libogc.a(ipc.o)(.text.__ios_ioctlvformat_parse+0×4e8): unresolvable R_PPC_EMB_SDA21 relocation against symbol `__ctype_ptr__’
d:/programme/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld.exe: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status

When i revert libogc back to 1.7.0.(and leave DevKitPPC at the new version) the error is gone.

Does anybody know what's wrong or what was changed?

Re: Compiling error with libogc 1.7.1.

Posted: Mon Feb 23, 2009 5:42 pm
by WinterMute
I can't find any way to reproduce this locally. Could you try to reduce your code to the minimum necessary to give the error and post it here?

Re: Compiling error with libogc 1.7.1.

Posted: Mon Feb 23, 2009 6:38 pm
by dontwantanick
I get the same error with only this main.c:
int main(int argc, char* argv[])
{
return 0;
}

I deinstalled DevKitPro completely and i'm reinstalling it right now(with everything except DevKitPSP and Insight). I will report the result here as soon it's done.

Re: Compiling error with libogc 1.7.1.

Posted: Mon Feb 23, 2009 6:52 pm
by dontwantanick
*Edit:
Reinstall is done, but still the same error. Same result with only mentioned main.c and the makefile from devkitPro\examples\wii\template in the project folder

When i overwrite libogc with version 1.7.0 the compiling errors are gone, so what's the change in libogc?

Re: Compiling error with libogc 1.7.1.

Posted: Mon Feb 23, 2009 8:14 pm
by dontwantanick
Hmm, when i compile libogc 1.7.1 myself and overwrite the libogc.a with the new one, the compiling error is gone. Maybe a wrong file managed to get into the release or the file was damaged during uploading?

Re: Compiling error with libogc 1.7.1.

Posted: Mon Feb 23, 2009 8:49 pm
by hiperbou
Same to me, but only when compiling the wii examples. (it works on the gc ones)

Re: Compiling error with libogc 1.7.1.

Posted: Tue Feb 24, 2009 4:47 am
by WinterMute
Not quite sure what happened there tbh. I managed to reproduce on a linux machine and uploaded a 1.7.1a release from there which tests fine on OSX & Windows. Hopefully it should be sorted now.

Re: Compiling error with libogc 1.7.1.

Posted: Tue Feb 24, 2009 9:29 pm
by dontwantanick
Problem is solved with the new version. When can i expect the changelog for DevKitPPC and libogc? I want to know if there are new features or if the update "only" contains bugfixes. And i just would like to know what's fixed.

Re: Compiling error with libogc 1.7.1.

Posted: Wed Feb 25, 2009 2:07 pm
by WinterMute
The changelog for devkitPPC (please note capitalisation) will be available when it next gets updated.

The libogc changelog will be available when it gets parsed and posted, sorry I can't be more definite at this point. Some of the log entries weren't clear and I need to go chase some people & get some more info.

Re: Compiling error with libogc 1.7.1.

Posted: Thu Feb 26, 2009 10:42 am
by electroChimp
great work for fixing this so quickly.
I had the same libogc.a ioctl error with recent install of devkitpro, (for me, I only saw this error when I had "-lfreetype") in my makefile. After updating devkitpro, same project compiles without problem. tested working on my wii.
looking forward to the changelog :D