Compiling error with libogc 1.7.1.

dontwantanick
Posts: 19
Joined: Tue Dec 30, 2008 5:44 pm

Compiling error with libogc 1.7.1.

Post by dontwantanick » Mon Feb 23, 2009 11:57 am

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?

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

Re: Compiling error with libogc 1.7.1.

Post by WinterMute » Mon Feb 23, 2009 5:42 pm

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

Personal Blog

dontwantanick
Posts: 19
Joined: Tue Dec 30, 2008 5:44 pm

Re: Compiling error with libogc 1.7.1.

Post by dontwantanick » Mon Feb 23, 2009 6:38 pm

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.

dontwantanick
Posts: 19
Joined: Tue Dec 30, 2008 5:44 pm

Re: Compiling error with libogc 1.7.1.

Post by dontwantanick » Mon Feb 23, 2009 6:52 pm

*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?

dontwantanick
Posts: 19
Joined: Tue Dec 30, 2008 5:44 pm

Re: Compiling error with libogc 1.7.1.

Post by dontwantanick » Mon Feb 23, 2009 8:14 pm

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?

hiperbou
Posts: 2
Joined: Mon Aug 25, 2008 1:51 pm

Re: Compiling error with libogc 1.7.1.

Post by hiperbou » Mon Feb 23, 2009 8:49 pm

Same to me, but only when compiling the wii examples. (it works on the gc ones)

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

Re: Compiling error with libogc 1.7.1.

Post by WinterMute » Tue Feb 24, 2009 4:47 am

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

Personal Blog

dontwantanick
Posts: 19
Joined: Tue Dec 30, 2008 5:44 pm

Re: Compiling error with libogc 1.7.1.

Post by dontwantanick » Tue Feb 24, 2009 9:29 pm

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.

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

Re: Compiling error with libogc 1.7.1.

Post by WinterMute » Wed Feb 25, 2009 2:07 pm

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

Personal Blog

electroChimp
Posts: 1
Joined: Thu Feb 26, 2009 10:27 am

Re: Compiling error with libogc 1.7.1.

Post by electroChimp » Thu Feb 26, 2009 10:42 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests