Welcome! Log In Create A New Profile

Advanced

Compile Error

Posted by pinball Wizard 
Compile Error
September 04, 2009 09:33PM
collect2: ld terminated with signal 10 [Bus error]
/opt/devkitpro/libogc/lib/wii/libogc.a(lwp.o): In function `__lwp_sysinit':
lwp.c:(.text.__lwp_sysinit+0xd6): undefined reference to `__crtmain'
lwp.c:(.text.__lwp_sysinit+0xde): undefined reference to `__crtmain'
/opt/devkitpro/libogc/lib/wii/libogc.a(ipc.o): In function `__ios_ioctlvformat_parse':
ipc.c:(.text.__ios_ioctlvformat_parse+0x174): undefined reference to `__ctype_ptr__'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-gekko/4.2.3/../../../../powerpc-gekko/bin/ld: BFD (GNU Binutils) 2.18.50.20080302 assertion fail ../../../binutils-2.18.50/bfd/elf32-ppc.c:6762
make[1]: *** [/HBB/HBBCI/HBBCI.elf] Error 1
make: *** [build] Error 2


Any clue on how to fix this?
Re: Compile Error
September 05, 2009 10:41PM
That's not a compiler error. It's a linker error. The compiler has already gone home, it's the linker that has problems.
The linker blames the build setup manager (his name is Make) for not giving him the right linking list. And poor Make have no idea what's wrong, because all he did was to follow his holey makefile.
Re: Compile Error
September 06, 2009 05:12AM
lol nice description!
Re: Compile Error
September 06, 2009 05:38AM
Basically, the order of the libraries linked are not in the right order.... or more commonly, you have forgot to link a library needed for linking.
Re: Compile Error
September 06, 2009 09:09AM
I'm using this: -lpng -lz -lfat -lwiiuse -lbte -logc -lm. Anything that is wrong in that order? If not I'll start looking for missing links.
Re: Compile Error
September 07, 2009 06:26PM
I got it fixed with a reinstall with of Devkit.
Re: Compile Error
September 24, 2009 10:03PM
henke37 , LOL Nice! Very Clever! :-)
Sorry, only registered users may post in this forum.

Click here to login