efivar package is using the same compiler options for both the host and the target, and it may cause build fail with "invalid instruction" when hosts architecture is sufficiently different from the target (even though both are x86). We need to import patch that forces to use hosts' microarchitecture when compiling parts of the build utilities that are running on host. Reproducible: Always
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e380cf8427ba5f3c073491bdf88488c04beeff6b commit e380cf8427ba5f3c073491bdf88488c04beeff6b Author: Dmitry Torokhov <dtor@chromium.org> AuthorDate: 2019-10-25 16:55:14 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2019-12-11 20:41:31 +0000 sys-libs/efivar: fix compiling makeguids on older hosts This imports a fix for build failures when compiling on older hosts for a newer microarchitectures. Closes: https://bugs.gentoo.org/702584 Signed-off-by: Dmitry Torokhov <dtor@chromium.org> Signed-off-by: Mike Gilbert <floppym@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/13435 .../{efivar-37.ebuild => efivar-37-r1.ebuild} | 4 +++ .../efivar-37-makeguids_fix_host_compile.patch | 36 ++++++++++++++++++++++ 2 files changed, 40 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54816fed63de0f99741f8e38b1a3f8748a02515c commit 54816fed63de0f99741f8e38b1a3f8748a02515c Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2019-12-23 16:28:01 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2019-12-23 16:30:23 +0000 Revert "sys-libs/efivar: fix compiling makeguids on older hosts" This reverts commit e380cf8427ba5f3c073491bdf88488c04beeff6b, which broke compilation on ia64. Bug: https://bugs.gentoo.org/702584 Closes: https://bugs.gentoo.org/703536 Signed-off-by: Mike Gilbert <floppym@gentoo.org> .../{efivar-37-r1.ebuild => efivar-37.ebuild} | 4 --- .../efivar-37-makeguids_fix_host_compile.patch | 36 ---------------------- 2 files changed, 40 deletions(-)
This issue will be better addressed via these 2 changes: https://github.com/rhboot/efivar/commit/998f617cec92d526e1fadb745673ceef63fa1483 https://github.com/rhboot/efivar/pull/145