<div dir="ltr">coreboot is a 32 bit binary on x86, still. You should always build the coreboot toolchain and use it to compile coreboot. What you are reporting is a common problem for those who do not use the coreboot toolchain.<br></div><br><div class="gmail_quote">On Tue, Apr 28, 2015 at 9:03 PM sibu <<a href="mailto:sibxol@btconnect.com">sibxol@btconnect.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings,<br>
<br>
I am new to this list.<br>
<br>
I am trying to learn how to compile coreboot.  My host has these:<br>
<br>
---cpu:  AMD64 3 cores<br>
---OS:  linux (BLFS) linux-3.10.32, ( pure 64-bit ), gcc-4.8.1. IASL (<br>
downloaded as tbb41_201305160ss )<br>
<br>
<br>
A ) I fetched coreboot  fron the git repository<br>
B ) I unpacked the downloaded in /usr/src<br>
C ) I ran 'make menuconfig' and  selected  'build with any toolchain'<br>
D ) I then ran 'make'  which ended as follows:-<br>
<br>
<br>
######################<br>
mv build/coreboot.pre1.tmp build/coreboot.pre1<br>
    LINK       cbfs/fallback/romstage_null.debug<br>
ld.bfd -b elf32-i386 -melf_i386 --gc-sections -nostdlib -nostartfiles -static<br>
-o build/cbfs/fallback/romstage_null.debug -Lbuild --wrap __divdi3 --wrap<br>
__udivdi3 --wrap __moddi3 --wrap __umoddi3 --start-group<br>
build/generated/crt0.romstage.o build/mainboard/emulation/qemu-<br>
i440fx/static.romstage.o build/arch/x86/boot/boot.romstage.o<br>
build/arch/x86/boot/cbmem.romstage.o<br>
build/arch/x86/lib/cbfs_and_run.romstage.o<br>
build/arch/x86/lib/memcpy.romstage.o build/arch/x86/lib/memmove.romstage.o<br>
build/arch/x86/lib/memset.romstage.o build/arch/x86/lib/rom_media.romstage.o<br>
build/console/console.romstage.o build/console/die.romstage.o<br>
build/console/init.romstage.o build/console/post.romstage.o<br>
build/console/printk.romstage.o build/console/vtxprintf.romstage.o<br>
build/cpu/x86/car.romstage.o build/cpu/x86/lapic/boot_cpu.romstage.o<br>
build/device/device_romstage.romstage.o build/device/pci_early.romstage.o<br>
build/drivers/emulation/qemu/qemu_debugcon.romstage.o<br>
build/drivers/pc80/mc146818rtc.romstage.o<br>
build/drivers/pc80/mc146818rtc_early.romstage.o<br>
build/drivers/uart/uart8250io.romstage.o build/drivers/uart/util.romstage.o<br>
build/lib/bootmode.romstage.o build/lib/cbfs.romstage.o<br>
build/lib/cbfs_core.romstage.o build/lib/cbmem_common.romstage.o<br>
build/lib/cbmem_console.romstage.o build/lib/clog2.romstage.o<br>
build/lib/compute_ip_checksum.romstage.o build/lib/dynamic_cbmem.romstage.o<br>
build/lib/gcc.romstage.o build/lib/halt.romstage.o<br>
build/lib/hexdump.romstage.o build/lib/loaders/cbfs_ramstage_loader.romstage.o<br>
build/lib/loaders/load_and_run_ramstage.romstage.o build/lib/lzma.romstage.o<br>
build/lib/lzmadecode.romstage.o build/lib/memchr.romstage.o<br>
build/lib/memcmp.romstage.o build/lib/prog_ops.romstage.o<br>
build/lib/ramtest.romstage.o build/lib/version.romstage.o<br>
build/southbridge/intel/i82371eb/early_pm.romstage.o<br>
build/southbridge/intel/i82371eb/early_smbus.romstage.o  /usr/lib/gcc/x86_64-<br>
unknown-linux-gnu/4.8.1/libgcc.a --end-group -T<br>
build/generated/romstage_null.ld<br>
build/lib/gcc.romstage.o: In function `__wrap___udivdi3':<br>
/usr/src/coreboot_GIT170415/src/lib/gcc.c:37: undefined reference to<br>
`__udivdi3'<br>
build/lib/gcc.romstage.o: In function `__wrap___umoddi3':<br>
/usr/src/coreboot_GIT170415/src/lib/gcc.c:39: undefined reference to<br>
`__umoddi3'<br>
make: *** [build/cbfs/fallback/romstage_null.debug] Error 1<br>
rm build/cbfs/fallback/bootblock.elf<br>
<br>
#########<br>
<br>
I am running on a pure 64-bit host   but it seems coreboot is attempting to<br>
link 32-bit binaries.     Help  to successfuly build coreboot  will be<br>
appreciated.<br>
<br>
Yours sincerely<br>
<br>
Sibu<br>
<br>
--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org" target="_blank">coreboot@coreboot.org</a><br>
<a href="http://www.coreboot.org/mailman/listinfo/coreboot" target="_blank">http://www.coreboot.org/mailman/listinfo/coreboot</a><br>
</blockquote></div>