[OpenBIOS] failed to build

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Wed Jan 3 10:25:43 CET 2018

On 03/01/18 00:25, mr.jb at gmx.de wrote:

> Hello,
> I want to build the openbios image for use in coreboot, but it fails.
> I am running a 32bit debian 8.10 vm.
> $ make
> /usr/bin/xsltproc
> Building OpenBIOS for x86
> Building...
> error:
>    AR    libfs.a
>    CC    target/libgcc/ashldi3.o
>    CC    target/libgcc/ashrdi3.o
>    CC    target/libgcc/__lshrdi3.o
>    CC    target/libgcc/__divdi3.o
>    CC    target/libgcc/__udivdi3.o
>    CC    target/libgcc/__udivmoddi4.o
>    CC    target/libgcc/__umoddi3.o
>    AR    libgcc.a
>    LINK  openbios.multiboot
> libdrivers.a(pci.o): In function `ob_pci_unmap':
> /tmp/openbios/drivers/pci.c:405: undefined reference to `ofmem_unmap'
> rules.mak:235: recipe for target 'openbios.multiboot' failed
> make[1]: *** [openbios.multiboot] Error 1
> make[1]: Leaving directory '/tmp/openbios/obj-x86'
> Makefile:19: recipe for target 'build' failed
> make: *** [build] Error 1
> if i select amd64 on a 64bit machine it works without a problem.
> What is the problem here?

Oops, that was me not handling the non-OFMEM PCI mapping case in the 
last set of updates.

The attached patch squash is enough to compile x86 for me, can you 
confirm that it actually boots on your setup?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: openbios-x86-build-fixes.patch
Type: text/x-patch
Size: 752 bytes
Desc: not available
URL: <http://mail.coreboot.org/pipermail/openbios/attachments/20180103/fa7de6ac/attachment.patch>

More information about the OpenBIOS mailing list