diff options
| author | Yogesh Tyagi <yogesh.tyagi@intel.com> | 2026-03-20 22:22:07 +0800 |
|---|---|---|
| committer | Yogesh Tyagi <yogesh.tyagi@intel.com> | 2026-04-08 23:01:41 +0530 |
| commit | 511ddb7ea90499b2088248f59bab3e9d6f3c900c (patch) | |
| tree | 8654a72118b23cb0225ee19f72fccfde68bb6573 /files/wic/systemd-bootdisk-microcode.wks.in | |
| parent | bf06e8360baf2c84257e82f4153e13e62708568a (diff) | |
| download | meta-intel-master.tar.gz | |
The ISPC superbuild internally builds LLVM (stage1/stage2). The
generated toolchain files inherit Yocto flags and sysroot paths,
causing CMake to locate libraries from recipe-sysroot-native.
This leads to linking failures when host compiler toolchains are
used together with libraries built against a newer glibc, resulting
in errors such as:
undefined reference to `__isoc23_wcstol@GLIBC_2.38'
Fix this by isolating the LLVM superbuild from Yocto sysroot:
* Patch generated stage1/stage2 toolchain files:
- Replace symbolic compiler names (cc/c++) with ${BUILD_CC}/${BUILD_CXX}
- Clear injected CMake compiler and linker flags
* Prevent CMake from searching recipe-sysroot-native:
- Set CMAKE_FIND_ROOT_PATH_MODE_* to NEVER
* Disable optional LLVM features requiring external libraries
(libedit, terminfo, zstd, zlib)
* Scope environment cleanup to the cmake build invocation to avoid
leaking Yocto flags into the superbuild
This ensures the internal LLVM build uses a consistent host
environment, avoiding GLIBC ABI mismatches.
Remove ncurses dependency as terminfo/libedit are disabled.
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Diffstat (limited to 'files/wic/systemd-bootdisk-microcode.wks.in')
0 files changed, 0 insertions, 0 deletions
