https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sys-apps/fwupd-efi-1.1 fails to compile. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses CLANG as a compiler and LLD as a linker
Created attachment 763491 [details] build.log build log and emerge --info
Created attachment 763492 [details] 1-meson-log.txt 1-meson-log.txt
Error(s) that match a know pattern in addition to what has been reported in the summary: Program genpeimg found: NO efi/meson.build:55:6: ERROR: Problem encountered: Cannot find elf_x86_64_efi.lds
*** Bug 832105 has been marked as a duplicate of this bug. ***
Does this happen with 1.3 as well?
Created attachment 795236 [details] build log 1.3 still triggers the error for me. The Meson build system Version: 0.63.0 Source dir: /var/tmp/portage/sys-apps/fwupd-efi-1.3/work/fwupd-efi-1.3 Build dir: /var/tmp/portage/sys-apps/fwupd-efi-1.3/work/fwupd-efi-1.3-build Build type: native build Project name: fwupd-efi Project version: 1.3 C compiler for the host machine: clang (clang 14.0.6 "clang version 14.0.6") C linker for the host machine: clang ld.bfd 2.38 Host machine cpu family: x86_64 Host machine cpu: x86_64 Program x86_64-pc-linux-gnu-objcopy found: YES Program genpeimg found: NO Configuring config.h using configuration Program generate_sbat.py found: YES (/var/tmp/portage/sys-apps/fwupd-efi-1.3/work/fwupd-efi-1.3/efi/generate_sbat.py) Program generate_binary.py found: YES (/var/tmp/portage/sys-apps/fwupd-efi-1.3/work/fwupd-efi-1.3/efi/generate_binary.py) Has header "/usr/include/efi/x86_64/efibind.h" : YES WARNING: You should add the boolean check kwarg to the run_command call. It currently defaults to false, but it will default to true in future releases of meson. See also: https://github.com/mesonbuild/meson/issues/9300 efi/meson.build:57:6: ERROR: Problem encountered: Cannot find elf_x86_64_efi.lds
Gotta love misleading end-user error messages. At least meson logs HAVE captured the root of the problem!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9541fad8fb8167c5f4b9fa6ceb58839139fd8014 commit 9541fad8fb8167c5f4b9fa6ceb58839139fd8014 Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2022-07-28 12:10:05 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2022-07-28 13:03:46 +0000 sys-apps/fwupd-efi: have the ebuilds set efi-libdir Upstream build scripts attempt to determine the ABI-correct libdir name by calling '${CC} -print-multi-os-directory', which does not work with clang. Fortunately, we have a perfectly good mechanism for this available to the ebuilds. Closes: https://bugs.gentoo.org/831970 Signed-off-by: Marek Szuba <marecki@gentoo.org> sys-apps/fwupd-efi/fwupd-efi-1.3.ebuild | 1 + 1 file changed, 1 insertion(+)