Issue #528 has been reported by Paul Menzel.
---------------------------------------- Bug #528: Building `emulation/qemu-i440fx` with `CONFIG_CBFS_VERIFICATION=y` fails https://ticket.coreboot.org/issues/528
* Author: Paul Menzel * Status: New * Priority: Normal * Target version: none * Start date: 2024-03-01 ---------------------------------------- Building a coreboot image for `emulation/qemu-i440fx` with `CONFIG_CBFS_VERIFICATION=y` fails.
``` $ git log --oneline --no-decorate -1 ff2d863515 drivers/intel/gma: Allow SPARK function with side effects $ make savedefconfig $ more defconfig CONFIG_ANY_TOOLCHAIN=y # CONFIG_SEPARATE_ROMSTAGE is not set CONFIG_TIMESTAMPS_ON_CONSOLE=y # CONFIG_USE_BLOBS is not set CONFIG_NO_POST=y CONFIG_USE_EXP_X86_64_SUPPORT=y # CONFIG_PCI_ALLOW_BUS_MASTER is not set CONFIG_CBFS_VERIFICATION=y CONFIG_CONSOLE_SERIAL_921600=y # CONFIG_CONSOLE_QEMU_DEBUGCON is not set CONFIG_PAYLOAD_FILO=y CONFIG_FILO_HEAD=y CONFIG_FILO_USE_AUTOBOOT=y CONFIG_FILO_AUTOBOOT_FILE="hda1:/vmlinuz initrd=hda1:/initrd.img root=/dev/sda1 ro quiet" $ make -j4 […] CC ramstage/arch/x86/boot.o CC ramstage/arch/x86/breakpoint.o LINK cbfs/fallback/postcar.debug LINK cbfs/fallback/bootblock.debug x86_64-linux-gnu-ld.bfd: warning: build/postcar/mainboard/emulation/qemu-i440fx/exit_car.o: missing .note.GNU-stack section implies executable stack x86_64-linux-gnu-ld.bfd: NOTE: This behaviour is deprecated and will be removed in a future version of the linker x86_64-linux-gnu-ld.bfd: warning: build/cbfs/fallback/postcar.debug has a LOAD segment with RWX permissions HOSTCC cbfstool/ifittool (link) HOSTCC cbfstool/ifwitool (link) HOSTCC cbfstool/cse_fpt (link) x86_64-linux-gnu-ld.bfd: warning: build/bootblock/cpu/x86/reset16.o: missing .note.GNU-stack section implies executable stack x86_64-linux-gnu-ld.bfd: NOTE: This behaviour is deprecated and will be removed in a future version of the linker x86_64-linux-gnu-ld.bfd: warning: build/cbfs/fallback/bootblock.debug has a LOAD segment with RWX permissions x86_64-linux-gnu-ld.bfd: build/bootblock/cpu/qemu-x86/cache_as_ram_bootblock.o: in function `cache_as_ram': /dev/shm/coreboot/src/cpu/qemu-x86/cache_as_ram_bootblock.S:46:(.init+0x1f): undefined reference to `walkcbfs_asm' /dev/shm/coreboot/src/cpu/qemu-x86/cache_as_ram_bootblock.S:46:(.init+0x1f): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `walkcbfs_asm' make: *** [src/arch/x86/Makefile.mk:101: build/cbfs/fallback/bootblock.debug] Fehler 1 make: *** Es wird auf noch nicht beendete Prozesse gewartet.... ```
Issue #528 has been updated by Maximilian Brune.
https://review.coreboot.org/c/coreboot/+/74243 Before this one it worked. walkcbfs_asm is apparently used by the QEMU target but not linked in anymore.
---------------------------------------- Bug #528: Building `emulation/qemu-i440fx` with `CONFIG_CBFS_VERIFICATION=y` fails https://ticket.coreboot.org/issues/528#change-1770
* Author: Paul Menzel * Status: New * Priority: Normal * Target version: none * Start date: 2024-03-01 ---------------------------------------- Building a coreboot image for `emulation/qemu-i440fx` with `CONFIG_CBFS_VERIFICATION=y` fails.
``` $ git log --oneline --no-decorate -1 ff2d863515 drivers/intel/gma: Allow SPARK function with side effects $ make savedefconfig $ more defconfig CONFIG_ANY_TOOLCHAIN=y # CONFIG_SEPARATE_ROMSTAGE is not set CONFIG_TIMESTAMPS_ON_CONSOLE=y # CONFIG_USE_BLOBS is not set CONFIG_NO_POST=y CONFIG_USE_EXP_X86_64_SUPPORT=y # CONFIG_PCI_ALLOW_BUS_MASTER is not set CONFIG_CBFS_VERIFICATION=y CONFIG_CONSOLE_SERIAL_921600=y # CONFIG_CONSOLE_QEMU_DEBUGCON is not set CONFIG_PAYLOAD_FILO=y CONFIG_FILO_HEAD=y CONFIG_FILO_USE_AUTOBOOT=y CONFIG_FILO_AUTOBOOT_FILE="hda1:/vmlinuz initrd=hda1:/initrd.img root=/dev/sda1 ro quiet" $ make -j4 […] CC ramstage/arch/x86/boot.o CC ramstage/arch/x86/breakpoint.o LINK cbfs/fallback/postcar.debug LINK cbfs/fallback/bootblock.debug x86_64-linux-gnu-ld.bfd: warning: build/postcar/mainboard/emulation/qemu-i440fx/exit_car.o: missing .note.GNU-stack section implies executable stack x86_64-linux-gnu-ld.bfd: NOTE: This behaviour is deprecated and will be removed in a future version of the linker x86_64-linux-gnu-ld.bfd: warning: build/cbfs/fallback/postcar.debug has a LOAD segment with RWX permissions HOSTCC cbfstool/ifittool (link) HOSTCC cbfstool/ifwitool (link) HOSTCC cbfstool/cse_fpt (link) x86_64-linux-gnu-ld.bfd: warning: build/bootblock/cpu/x86/reset16.o: missing .note.GNU-stack section implies executable stack x86_64-linux-gnu-ld.bfd: NOTE: This behaviour is deprecated and will be removed in a future version of the linker x86_64-linux-gnu-ld.bfd: warning: build/cbfs/fallback/bootblock.debug has a LOAD segment with RWX permissions x86_64-linux-gnu-ld.bfd: build/bootblock/cpu/qemu-x86/cache_as_ram_bootblock.o: in function `cache_as_ram': /dev/shm/coreboot/src/cpu/qemu-x86/cache_as_ram_bootblock.S:46:(.init+0x1f): undefined reference to `walkcbfs_asm' /dev/shm/coreboot/src/cpu/qemu-x86/cache_as_ram_bootblock.S:46:(.init+0x1f): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `walkcbfs_asm' make: *** [src/arch/x86/Makefile.mk:101: build/cbfs/fallback/bootblock.debug] Fehler 1 make: *** Es wird auf noch nicht beendete Prozesse gewartet.... ```