[OpenBIOS] cross-pcc compilation issue with GCC 4.5.0
Mark Cave-Ayland
mark.cave-ayland at siriusit.co.uk
Fri Apr 23 14:41:36 CEST 2010
Andreas Färber wrote:
> Hi,
>
> Am 10.04.2010 um 18:26 schrieb Andreas Färber:
>
>> Some notes: binutils 2.20.1 and 2.20 do not compile on Mac OS X v10.6.
>> They error about lots of _("...") format strings that Ubuntu (gcc
>> 4.4.1) just warns about. [...]
>
> --disable-werror was able to workaround that much easier than editing
> the sources, thanks for the hint.
>
> Configuration now is:
> Mac OS X v10.6.3 (i386) w/ gcc 4.2.1
> gmp 5.0.1
> mpfr 2.4.2
> mpc 0.8.1
> binutils 2.20.1 w/ --target=powerpc-elf --disable-nls
> gcc 4.5.0 w/ --target=powerpc-elf --disable-nls --disable-libssp
>
> Build fails as follows:
>
> Building OpenBIOS for ppc
> Building...error:
> /Users/andreas/QEMU/OpenBIOS/openbios-devel/obj-ppc/../libc/string.c:499:
> undefined reference to `_restgpr_30_x'
> liblibc.a(string.o): In function `strcasecmp':
> /Users/andreas/QEMU/OpenBIOS/openbios-devel/obj-ppc/../libc/string.c:513:
> undefined reference to `_restgpr_27_x'
> liblibc.a(string.o): In function `strncasecmp':
> /Users/andreas/QEMU/OpenBIOS/openbios-devel/obj-ppc/../libc/string.c:527:
> undefined reference to `_restgpr_26_x'
> liblibc.a(vsprintf.o): In function `number':
> /Users/andreas/QEMU/OpenBIOS/openbios-devel/obj-ppc/../libc/vsprintf.c:145:
> undefined reference to `_restgpr_17_x'
> liblibc.a(vsprintf.o): In function `vsnprintf':
> /Users/andreas/QEMU/OpenBIOS/openbios-devel/obj-ppc/../libc/vsprintf.c:388:
> undefined reference to `_restgpr_21_x'
> libgcc.a(__divdi3.o): In function `__divdi3':
> /Users/andreas/QEMU/OpenBIOS/openbios-devel/obj-ppc/../libgcc/__divdi3.c:8:
> undefined reference to `_savegpr_31'
> /Users/andreas/QEMU/OpenBIOS/openbios-devel/obj-ppc/../libgcc/__divdi3.c:26:
> undefined reference to `_restgpr_31_x'
> libgcc.a(__udivmoddi4.o): In function `__udivmoddi4':
> /Users/andreas/QEMU/OpenBIOS/openbios-devel/obj-ppc/../libgcc/__udivmoddi4.c:31:
> undefined reference to `_restgpr_30_x'
> make[1]: *** [openbios-qemu.elf] Error 1
> make: *** [build] Error 1
>
> Anyone else noticed that on another system? Is it a GCC bug or are
> changes to OpenBIOS code required?
Hmmm this looks like its related to this past thread here:
http://lists.openbios.org/pipermail/openbios/2010-January/004464.html.
Unfortunately I'm not familiar enough with gcc to know what the solution
should be :(
ATB,
Mark.
--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063
Sirius Labs: http://www.siriusit.co.uk/labs
More information about the OpenBIOS
mailing list