[coreboot] build failure on amd64 host: help

Paul Menzel paulepanter at users.sourceforge.net
Fri May 1 14:09:31 CEST 2015


Dear sibu,


Am Montag, den 27.04.2015, 20:25 +0100 schrieb sibu:

> I am new to this list.

welcome!

> I am trying to learn how to compile coreboot.  My host has these:
> 
> ---cpu:  AMD64 3 cores
> ---OS:  linux (BLFS) linux-3.10.32, ( pure 64-bit ), gcc-4.8.1. IASL ( 
> downloaded as tbb41_201305160ss )
> 
> 
> A ) I fetched coreboot  fron the git repository
> B ) I unpacked the downloaded in /usr/src

So you just downloaded a snapshot archive and did not clone it with git?

        $ git clone http://review.coreboot.org/coreboot.git

What commit hash does your version have?

> C ) I ran 'make menuconfig' and  selected  'build with any toolchain'
> D ) I then ran 'make'  which ended as follows:-
> 
> 
> ######################
> mv build/coreboot.pre1.tmp build/coreboot.pre1
>     LINK       cbfs/fallback/romstage_null.debug
> ld.bfd -b elf32-i386 -melf_i386 --gc-sections -nostdlib -nostartfiles -static 
> -o build/cbfs/fallback/romstage_null.debug -Lbuild --wrap __divdi3 --wrap 
> __udivdi3 --wrap __moddi3 --wrap __umoddi3 --start-group 
> build/generated/crt0.romstage.o build/mainboard/emulation/qemu-
> i440fx/static.romstage.o build/arch/x86/boot/boot.romstage.o 
> build/arch/x86/boot/cbmem.romstage.o 
> build/arch/x86/lib/cbfs_and_run.romstage.o 
> build/arch/x86/lib/memcpy.romstage.o build/arch/x86/lib/memmove.romstage.o 
> build/arch/x86/lib/memset.romstage.o build/arch/x86/lib/rom_media.romstage.o 
> build/console/console.romstage.o build/console/die.romstage.o 
> build/console/init.romstage.o build/console/post.romstage.o 
> build/console/printk.romstage.o build/console/vtxprintf.romstage.o 
> build/cpu/x86/car.romstage.o build/cpu/x86/lapic/boot_cpu.romstage.o 
> build/device/device_romstage.romstage.o build/device/pci_early.romstage.o 
> build/drivers/emulation/qemu/qemu_debugcon.romstage.o 
> build/drivers/pc80/mc146818rtc.romstage.o 
> build/drivers/pc80/mc146818rtc_early.romstage.o 
> build/drivers/uart/uart8250io.romstage.o build/drivers/uart/util.romstage.o 
> build/lib/bootmode.romstage.o build/lib/cbfs.romstage.o 
> build/lib/cbfs_core.romstage.o build/lib/cbmem_common.romstage.o 
> build/lib/cbmem_console.romstage.o build/lib/clog2.romstage.o 
> build/lib/compute_ip_checksum.romstage.o build/lib/dynamic_cbmem.romstage.o 
> build/lib/gcc.romstage.o build/lib/halt.romstage.o 
> build/lib/hexdump.romstage.o build/lib/loaders/cbfs_ramstage_loader.romstage.o 
> build/lib/loaders/load_and_run_ramstage.romstage.o build/lib/lzma.romstage.o 
> build/lib/lzmadecode.romstage.o build/lib/memchr.romstage.o 
> build/lib/memcmp.romstage.o build/lib/prog_ops.romstage.o 
> build/lib/ramtest.romstage.o build/lib/version.romstage.o 
> build/southbridge/intel/i82371eb/early_pm.romstage.o 
> build/southbridge/intel/i82371eb/early_smbus.romstage.o  /usr/lib/gcc/x86_64-
> unknown-linux-gnu/4.8.1/libgcc.a --end-group -T

Please make sure that these lines do not get auto-wrapped next time you
send a message! You should be able to configure this in KMail for each
paragraph.

> build/generated/romstage_null.ld
> build/lib/gcc.romstage.o: In function `__wrap___udivdi3':
> /usr/src/coreboot_GIT170415/src/lib/gcc.c:37: undefined reference to 
> `__udivdi3'
> build/lib/gcc.romstage.o: In function `__wrap___umoddi3':
> /usr/src/coreboot_GIT170415/src/lib/gcc.c:39: undefined reference to 
> `__umoddi3'
> make: *** [build/cbfs/fallback/romstage_null.debug] Error 1
> rm build/cbfs/fallback/bootblock.elf
> 
> #########
> 
> I am running on a pure 64-bit host but it seems coreboot is attempting to  
> link 32-bit binaries. Help to successfully build coreboot  will be 
> appreciated.

Yes, the firmware is build with(?) 32-bit.

On Debian GNU/Linux installing the package `gcc-multilib` [1] should
help.


Thanks,

Paul


[1] http://www.coreboot.org/pipermail/coreboot/2009-July/050476.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20150501/560205f5/attachment.asc>


More information about the coreboot mailing list