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
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
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: ---


Attachments

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):

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(+)
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):

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(-)
Comment 3 Mike Gilbert gentoo-dev 2019-12-29 20:37:40 UTC
This issue will be better addressed via these 2 changes:

https://github.com/rhboot/efivar/commit/998f617cec92d526e1fadb745673ceef63fa1483

https://github.com/rhboot/efivar/pull/145