[OpenBIOS] openbios cross compile fails with gcc 5.2

Cole Robinson crobinso at redhat.com
Sat Nov 21 03:03:52 CET 2015

Hi all,

openbios fails to build with gcc 5.2 cross compilers. This is using fedora 23
packages. There's a bug here with complete info:


The error is:

powerpc64-linux-gnu-gcc $EXTRACFLAGS -m32 -msoft-float -fno-builtin-bcopy
-USWAP_ENDIANNESS -Wall -Wredundant-decls -Wshadow -Wpointer-arith
-Wstrict-prototypes -Wmissing-declarations -Wundef -Wendif-labels
-Wstrict-aliasing -Wwrite-strings -Wmissing-prototypes -Wnested-externs
-Werror -MMD -MP -MT target/arch/ppc/qemu/ofmem.o -MF
'target/arch/ppc/qemu/ofmem.d' -I/root/openbios/openbios-1.1/include
-I/root/openbios/openbios-1.1/kernel/include -I./target/include -c -o
target/arch/ppc/qemu/ofmem.o /root/openbios/openbios-1.1/arch/ppc/qemu/ofmem.c
/tmp/ccznzzOd.s: Assembler messages:
/tmp/ccznzzOd.s:551: Error: missing operand
rules.mak:309: recipe for target 'target/arch/ppc/qemu/ofmem.o' failed
make[1]: *** [target/arch/ppc/qemu/ofmem.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/root/openbios/openbios-1.1/obj-ppc'
Makefile:32: recipe for target 'subdir-ppc' failed
make: *** [subdir-ppc] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.DSB86j (%build)

David Howells' commented in the bug with a suggested fix... but I don't even
have a setup to test openbios so I'd prefer if someone else cooks up the patch :)


More information about the OpenBIOS mailing list