1 |
commit: 5dbd6a821ff753e3b41324c4fb7c58cf65eeea33 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 3 10:27:42 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 3 10:35:00 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dbd6a82 |
7 |
|
8 |
sys-libs/glibc: disable ISA level annotations on >=2.33 |
9 |
|
10 |
Passing -march= causes glibc to add annotations not compatible to run |
11 |
result on -march= as too high ISA level is inferred. |
12 |
|
13 |
ISA level is a new feature of 2.33 release. |
14 |
|
15 |
Until it's fixed let's disable ISA level inference with |
16 |
libc_cv_include_x86_isa_level=no |
17 |
(no better configure option yet). |
18 |
|
19 |
Bug: https://sourceware.org/PR27318 |
20 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
21 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
22 |
|
23 |
sys-libs/glibc/glibc-2.33.ebuild | 4 ++++ |
24 |
sys-libs/glibc/glibc-9999.ebuild | 6 +++++- |
25 |
2 files changed, 9 insertions(+), 1 deletion(-) |
26 |
|
27 |
diff --git a/sys-libs/glibc/glibc-2.33.ebuild b/sys-libs/glibc/glibc-2.33.ebuild |
28 |
index ee67def4831..a1ee8eff85e 100644 |
29 |
--- a/sys-libs/glibc/glibc-2.33.ebuild |
30 |
+++ b/sys-libs/glibc/glibc-2.33.ebuild |
31 |
@@ -948,6 +948,10 @@ glibc_do_configure() { |
32 |
# https://bugs.gentoo.org/753740 |
33 |
libc_cv_complocaledir='${exec_prefix}/lib/locale' |
34 |
|
35 |
+ # -march= option tricks build system to infer too |
36 |
+ # high ISA level: https://sourceware.org/PR27318 |
37 |
+ libc_cv_include_x86_isa_level=no |
38 |
+ |
39 |
${EXTRA_ECONF} |
40 |
) |
41 |
|
42 |
|
43 |
diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild |
44 |
index 0104a0d7238..fda4b18ea3a 100644 |
45 |
--- a/sys-libs/glibc/glibc-9999.ebuild |
46 |
+++ b/sys-libs/glibc/glibc-9999.ebuild |
47 |
@@ -1,4 +1,4 @@ |
48 |
-# Copyright 1999-2020 Gentoo Authors |
49 |
+# Copyright 1999-2021 Gentoo Authors |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
|
52 |
EAPI=7 |
53 |
@@ -948,6 +948,10 @@ glibc_do_configure() { |
54 |
# https://bugs.gentoo.org/753740 |
55 |
libc_cv_complocaledir='${exec_prefix}/lib/locale' |
56 |
|
57 |
+ # -march= option tricks build system to infer too |
58 |
+ # high ISA level: https://sourceware.org/PR27318 |
59 |
+ libc_cv_include_x86_isa_level=no |
60 |
+ |
61 |
${EXTRA_ECONF} |
62 |
) |