Bug 14632

Summary: glibc fails in do_configure on tune-i586 with --enable-cet option
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Tim Orling <tim.orling>
Component: coreAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, raj.khem, randy.macleod, tim.orling
Version: 3.4   
Target Milestone: 4.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Tim Orling 2021-11-16 23:16:09 UTC
While building core-image-minimal on the 'honister-3.4' tag of poky for tune-i586 (for the legacy kernel lab hands-on):

| checking whether CET can be enabled... no
| configure: error: i586-poky-linux-gcc  -m32 -march=i586  -Wdate-time --sysroot=/path/to/poky/build/tmp/work/i586-poky-linux/glibc/2.34-r0/recipe-sysroot doesn't support CET

The '--enable-cet' option is set since commit:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/recipes-core/glibc?h=honister&id=51cf44884971d6fc919f2a799fb08ee61acf7518

but apparently this is not supported on i586 (needs i686+ apparently)
https://github.com/aristocratos/btop/issues/106#issuecomment-948722970

We could obviously do tune specific enablement, but that is messy.
Comment 1 Khem Raj 2021-11-16 23:28:11 UTC
perhaps we should just remove

EXTRA_OECONF_append_x86 = " --enable-cet"

and fix it for once.