Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702584 - sys-libs/efivar: build fails when compiling for newer arches on older hosts
Summary: sys-libs/efivar: build fails when compiling for newer arches on older hosts
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
Keywords: PullRequest
Depends on:
Reported: 2019-12-11 20:02 UTC by Dmitry Torokhov
Modified: 2019-12-29 20:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Torokhov 2019-12-11 20:02:00 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2019-12-11 20:41:35 UTC
The bug has been closed via the following commit(s):

commit e380cf8427ba5f3c073491bdf88488c04beeff6b
Author:     Dmitry Torokhov <>
AuthorDate: 2019-10-25 16:55:14 +0000
Commit:     Mike Gilbert <>
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.
    Signed-off-by: Dmitry Torokhov <>
    Signed-off-by: Mike Gilbert <>

 .../{efivar-37.ebuild => efivar-37-r1.ebuild}      |  4 +++
 .../efivar-37-makeguids_fix_host_compile.patch     | 36 ++++++++++++++++++++++
 2 files changed, 40 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2019-12-23 16:30:38 UTC
The bug has been referenced in the following commit(s):

commit 54816fed63de0f99741f8e38b1a3f8748a02515c
Author:     Mike Gilbert <>
AuthorDate: 2019-12-23 16:28:01 +0000
Commit:     Mike Gilbert <>
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.
    Signed-off-by: Mike Gilbert <>

 .../{efivar-37-r1.ebuild => efivar-37.ebuild}      |  4 ---
 .../efivar-37-makeguids_fix_host_compile.patch     | 36 ----------------------
 2 files changed, 40 deletions(-)
Comment 3 Mike Gilbert gentoo-dev 2019-12-29 20:37:40 UTC
This issue will be better addressed via these 2 changes: