Skip to contentSkip to conversation

glibc: Disable CPU ISA level requirement check

PATCH In review He Zhe 2 participants 2 messages Feb 26, 2021 – Feb 27, 2021

lore
Share & tools
lore

He Zhe

author
#0 lore raw

PATCH 1/1 glibc: Disable CPU ISA level requirement check

We experience the following error and fail to boot on qemu64 machine

/lib64/libc.so.6: CPU ISA level is lower than required

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00

As stated in [1],

Passing -march= causes glibc to add annotations not compatible to run result on -march= as too high ISA level is inferred.

ISA level is a new feature of 2.33 release.

Until it's fixed let's disable ISA level inference with
libc_cv_include_x86_isa_level=no
(no better configure option yet).

[1] https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dbd6a821ff753e3b41324c4fb7c58cf65eeea33

---
 meta/recipes-core/glibc/glibc.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/glibc/glibc.inc +1 -0
index d2f02ad59b..7d14306377 100644
@@ -20,6 +20,7 @@ CACHED_CONFIGUREVARS += " \
   libc_cv_ssp_strong=no \
   libc_cv_ssp_all=no \
   libc_cv_ssp=no \
+  libc_cv_include_x86_isa_level=no \
 "
 
 # ifunc doesn't appear to work on mips, casuses libbfd assertion failures
Signature · 1 line
2.17.1
#1 lore raw

this change is ok

Quoted 42 lines · He Zhe

We experience the following error and fail to boot on qemu64 machine

/lib64/libc.so.6: CPU ISA level is lower than required

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00

As stated in [1],

Passing -march= causes glibc to add annotations not compatible to run result on -march= as too high ISA level is inferred.

ISA level is a new feature of 2.33 release.

Until it's fixed let's disable ISA level inference with
libc_cv_include_x86_isa_level=no
(no better configure option yet).

[1] https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dbd6a821ff753e3b41324c4fb7c58cf65eeea33

---
 meta/recipes-core/glibc/glibc.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/glibc/glibc.inc +1 -1
index d2f02ad59b..7d14306377 100644
@@ -20,6 +20,7 @@ CACHED_CONFIGUREVARS += " \
   libc_cv_ssp_strong=no \
   libc_cv_ssp_all=no \
   libc_cv_ssp=no \
+  libc_cv_include_x86_isa_level=no \
 "
 
 # ifunc doesn't appear to work on mips, casuses libbfd assertion failures
--

2.17.1