summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* clang: Do not add lld linker for ppc32 when ld-is-lld is in distro featuresHEADmasterKhem Raj2025-05-061-1/+2
| | | | | | Causes binaries to segfault in qemu user mode Signed-off-by: Khem Raj <raj.khem@gmail.com>
* vulkan-samples: Use gcc to compile for now.Khem Raj2025-05-061-3/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: install opt dir to image to fix py_test_trace3_cHarish Sadineni2025-05-061-0/+2
| | | | | | | | | | | | | | This patch Fixes the following error: ERROR: test_blk1 (__main__.TestBlkRequest.test_blk1) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/bcc/ptest/tests/python/./test_trace3.py", line 38, in test_blk1 os.unlink("/opt/trace3.txt") ~~~~~~~~~^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/opt/trace3.txt' Signed-off-by: Harish Sadineni <HarishSadineni@windriver.com>
* bcc: Fix for test bpf stack_id tableHarish Sadineni2025-05-062-0/+14
| | | | | | | | | | | | | | The test for bpf_stack_id was failing due to the system being unable to locate libc.so.6. Upon investigation using strace, the following error was observed: newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", 0x7ffdcd475420, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/lib64/libc.so.6", 0x7ffdcd475420, 0) = -1 ENOENT (No such file or directory) This issue occurs because libc.so.6 was not found in the expected locations. To resolve this, the location of libc.so.6 in image has been added . It is now accessible at: /lib/libc.so.6 Upstream-Status: Submitted [https://github.com/iovisor/bcc/pull/5292] Signed-off-by: Harish Sadineni <HarishSadineni@windriver.com>
* bcc: copy shared libs & archive files to imageHarish Sadineni2025-05-061-0/+9
| | | | | | | | Avoid stripping debuginfo.so to fix some tests. ptest searches for shared libs and archive files in the build folder. Hence, these files are copied to the image to fix some tests. Signed-off-by: Harish Sadineni <HarishSadineni@windriver.com>
* fluentbit: Enable vectorizer on riscv64Khem Raj2025-05-051-0/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* castxml: Do not inherit cmake-nativeKhem Raj2025-05-052-1/+73
| | | | | | This has been merged into cmake bbclass in core Signed-off-by: Khem Raj <raj.khem@gmail.com>
* cmake-native: RemoveKhem Raj2025-05-051-56/+0
| | | | | | Moved to OE-core Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer.conf: Remove choice for llvm providersKhem Raj2025-05-051-6/+0
| | | | | | Core has merged recipes now. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spirv-llvm-translator: Delete recipeKhem Raj2025-05-051-35/+0
| | | | | | Moved to core. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Delete recipesKhem Raj2025-05-0552-3792/+0
| | | | | | They are in core layer now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bindgen-cli: Remove recipeKhem Raj2025-05-052-207/+0
| | | | | | Its in OE-core now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use llvm-config wrapper for nativesdk recipesKhem Raj2025-05-051-0/+1
| | | | | | helps with nativesdk-mesa compilation since it gets all flags wrong otherwise Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftrace: fix an intermitent compile failureChangqing Li2025-04-222-0/+55
| | | | | | | | | | A missing dependency causes intermitent compile failure: git/src/functions.h:9:10: fatal error: location.hh: No such file or directory 9 | #include "location.hh" This location.hh is generated by target parser Signed-off-by: Changqing Li <changqing.li@windriver.com>
* mesa: Fall back to use gcc on riscv32/riscv64Khem Raj2025-04-121-1/+5
| | | | | | | | | | | | | | | LLD fails to link mesa 25.x sadly | Error relocating riscv32-yoe-linux-musl/gstreamer1.0-plugins-base/1.26.0/recipe-sysroot//usr/lib/libGLESv2.so.2: unsupported relocation type 12 | Error relocating riscv32-yoe-linux-musl/gstreamer1.0-plugins-base/1.26.0/recipe-sysroot//usr/lib/libGL.so.1: unsupported relocation type 12 | Error relocating riscv32-yoe-linux-musl/gstreamer1.0-plugins-base/1.26.0/recipe-sysroot//usr/lib/libGL.so.1: unsupported relocation type 12 | Error relocating riscv32-yoe-linux-musl/gstreamer1.0-plugins-base/1.26.0/recipe-sysroot//usr/lib/libEGL.so.1: unsupported relocation type 12 | Error relocating riscv32-yoe-linux-musl/gstreamer1.0-plugins-base/1.26.0/recipe-sysroot//usr/lib/libEGL.so.1: unsupported relocation type 12 | Error relocating riscv32-yoe-linux-musl/gstreamer1.0-plugins-base/1.26.0/recipe-sysroot//usr/lib/libgallium-25.0.2.so: unsupported relocation type 12 | Error relocating riscv32-yoe-linux-musl/gstreamer1.0-plugins-base/1.26.0/recipe-sysroot//usr/lib/libgallium-25.0.2.so: unsupported relocation type 12 | Error relocating riscv32-yoe-linux-musl/gstreamer1.0-plugins-base/1.26.0/recipe-sysroot//usr/lib/libgallium-25.0.2.so: unsupported relocation type 12 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: enable targets being used by libclcDmitry Baryshkov2025-04-111-1/+1
| | | | | | Enable NVPTX and SPIRV, targets being used by libclc. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
* clang: remove LLVM files from sysroot if clang is not providing itDmitry Baryshkov2025-04-112-1/+15
| | | | | | | | | | | | Upcoming Mesa patches for OE-Core pull both LLVM and Clang into the sysroot if meta-clang is being used. Now as libLLVM.so in OE-Core is compatible with the one being built by Clang, remove LLVM artifacts from the native sysroot if clang recipe is not selected as LLVM provider. The spirv-llvm-translator recipe is changed to also DEPEND on llvm in order to pull the library into the chroot. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
* clang: handle libdir in llvm-configDmitry Baryshkov2025-04-111-1/+4
| | | | | | | | The llvm-config wrapper also needs to override a --libdir switch, otherwise software (like mesa) end up using TMPDIR-based directory for Clang resource lookup (and also encoding TMPDIR into the target binary). Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
* bpftrace: update SRCREV to tag 0.23.0Changqing Li2025-04-111-1/+1
| | | | | | | | Update SRCREV to tag 0.23.0, refer [1] [1] https://github.com/bpftrace/bpftrace/releases/tag/v0.23.0 Signed-off-by: Changqing Li <changqing.li@windriver.com>
* bpftrace: add systemd PACKAGECONFIG optionErik Schilling2025-04-101-2/+6
| | | | | | | | | | | | | This option mostly enables sd_notify support and is useful when running bpftrace as part of a systemd service [1]. Defaulting to the systemd DISTRO_FEATURES seems like a reasonable choice. The official builds also now enable this by default [2]. [1] https://bpftrace.org/docs/latest#_systemd_support [2] https://github.com/bpftrace/bpftrace/pull/3969 Signed-off-by: Erik Schilling <erik@riscstar.com>
* clang: Upgrade to 20.1.2 releaseKhem Raj2025-04-073-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 58df0ef89dd6 Define LLVM_ABI and CLANG_ABI for __EMSCRIPTEN__ builds (#131578) * e256eda15377 [LoongArch][MC] Add relocation support for fld fst [x]vld [x]vst * ba00d9f641e9 [LoongArch] Pre-commit test for #133225 * f07f96873aa8 Backport/20.x: [LoongArch] Fix the type of tls-le symbols * e7406753caf3 [PATCH] [clang][modules] Fix serialization and de-serialization of PCH module file refs (#105994) (#132802) * 2f6c5807ca7e [workflows] Add missing -y option to apt-get for abi tests (#133337) * bc65196c0919 update test due to https://github.com/llvm/llvm-project/pull/126880 not being backported * d6d1dbf22181 [ARM] Speedups for CombineBaseUpdate. (#129725) * 5ba194972878 [MC,COFF] .safeseh: avoid changeSection (#132624) * 943b43250b55 release/20.x: [clang][docs] Move -Wnontrivial-memcall to added flags. (#132367) * 44a6f6abbdb6 [libcxx] [test] Fix restoring LLVM_DIR and Clang_DIR (#132838) * c1c4d7191d70 [clang-format] Allow `Language: Cpp` for C files (#133033) * 2406e0d4467a Revert "[MC] Explicitly mark MCSymbol for MO_ExternalSymbol" (#133291) * 3d5f5ef6b784 workflows: Add missing apt-get update to abi tests (#133264) * d1f5a9f66ee2 [hexagon] Bump the default version to v68 (#132304) * 90cc9ca8bcb2 [Hexagon] Set the default compilation target to V68 (#125239) * 3e2801eb634e [PowerPC] Support conversion between f16 and f128 (#130158) * d60baf3d4786 [HEXAGON] Fix semantics of ordered FP compares (#131089) * 1a76c29a9ba8 [hexagon] Enable --eh-frame-hdr (#130225) * ecde8c235e5e [clang] fix matching of nested template template parameters * c86df914dee1 release/20.x: [Clang] Fix various bugs in alias CTAD transform * f7b6f23c6bb7 [llvm-dlltool] Add a missing dependency * a311bc81d957 [llvm-dlltool] Implement the --identify option (#127465) * 6034661369c4 [LoongArch] Pre-commit test for fixing tls-le symbol type * 95763651e25c [HEXAGON] Add support to lower "FREEZE a half(f16)" instruction on Hexagon and fix the isel-buildvector-v2f16.ll assertion (#130977) * e0e8071815c7 [hexagon] Prevent alignment search beyond a label (#130631) * 2198410a8a8a [compiler-rt][Darwin][x86] Fix instrprof-darwin-exports test (#131425) * 0383020b6c1a [llvm] Fix crash when complex deinterleaving operates on an unrolled loop (#129735) * dc7b743515d3 [AArch64] Fix SVE scalar fcopysign lowering without neon. (#129787) * fcd0ad23f668 [AArch64] Add test for scalar copysign. NFC * 66825a89b8e0 [LLD] [COFF] Add a few more mingw libs to skip autoexports for (#132289) * 9710e9963455 [X86][AVX10.2] Include changes for COMX and VGETEXP from rev. 2 (#132824) * 3f957cc67cff Bump version to 20.1.2 (#132293) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: add whitespace around assignmentsMartin Jansa2025-04-023-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | With: https://lists.openembedded.org/g/bitbake-devel/message/17508 there are many WARNINGs from this layer Most of them are caused by this LLVM_LIBDIR_SUFFIX=" which is included everywhere. WARNING: meta-clang/recipes-devtools/clang/clang-cross-canadian_git.bb: meta-clang/recipes-devtools/clang/clang.inc:19 has a lack of whitespace around the assignment: 'LLVM_LIBDIR_SUFFIX="${@d.getVar('baselib').replace('lib', '')}"' WARNING: meta-clang/recipes-devtools/clang/clang-crosssdk_git.bb: meta-clang/recipes-devtools/clang/clang.inc:19 has a lack of whitespace around the assignment: 'LLVM_LIBDIR_SUFFIX="${@d.getVar('baselib').replace('lib', '')}"' WARNING: meta-clang/recipes-devtools/clang/clang.inc:19 has a lack of whitespace around the assignment: 'LLVM_LIBDIR_SUFFIX="${@d.getVar('baselib').replace('lib', '')}"' WARNING: meta-clang/recipes-devtools/clang/clang_git.bb: meta-clang/recipes-devtools/clang/clang.inc:19 has a lack of whitespace around the assignment: 'LLVM_LIBDIR_SUFFIX="${@d.getVar('baselib').replace('lib', '')}"' WARNING: meta-clang/recipes-devtools/clang/compiler-rt-sanitizers_git.bb: meta-clang/recipes-devtools/clang/clang.inc:19 has a lack of whitespace around the assignment: 'LLVM_LIBDIR_SUFFIX="${@d.getVar('baselib').replace('lib', '')}"' WARNING: meta-clang/recipes-devtools/clang/compiler-rt-sanitizers_git.bb: meta-clang/recipes-devtools/clang/compiler-rt-sanitizers_git.bb:31 has a lack of whitespace around the assignment: 'PACKAGECONFIG[ctx-profile] ="-DCOMPILER_RT_BUILD_CTX_PROFILE=ON,-DCOMPILER_RT_BUILD_CTX_PROFILE=OFF"' WARNING: meta-clang/recipes-devtools/clang/compiler-rt_git.bb: meta-clang/recipes-devtools/clang/compiler-rt_git.bb:47 has a lack of whitespace around the assignment: 'PACKAGECONFIG[profile] ="-DCOMPILER_RT_BUILD_PROFILE=ON,-DCOMPILER_RT_BUILD_PROFILE=OFF"' WARNING: meta-clang/recipes-devtools/clang/compiler-rt_git.bb: meta-clang/recipes-devtools/clang/compiler-rt_git.bb:49 has a lack of whitespace around the assignment: 'PACKAGECONFIG[ctx-profile] ="-DCOMPILER_RT_BUILD_CTX_PROFILE=ON,-DCOMPILER_RT_BUILD_CTX_PROFILE=OFF"' WARNING: meta-clang/recipes-devtools/clang/compiler-rt_git.bb:47 has a lack of whitespace around the assignment: 'PACKAGECONFIG[profile] ="-DCOMPILER_RT_BUILD_PROFILE=ON,-DCOMPILER_RT_BUILD_PROFILE=OFF"' WARNING: meta-clang/recipes-devtools/clang/compiler-rt_git.bb:49 has a lack of whitespace around the assignment: 'PACKAGECONFIG[ctx-profile] ="-DCOMPILER_RT_BUILD_CTX_PROFILE=ON,-DCOMPILER_RT_BUILD_CTX_PROFILE=OFF"' WARNING: meta-clang/recipes-devtools/clang/libclc_git.bb: meta-clang/recipes-devtools/clang/clang.inc:19 has a lack of whitespace around the assignment: 'LLVM_LIBDIR_SUFFIX="${@d.getVar('baselib').replace('lib', '')}"' WARNING: meta-clang/recipes-devtools/clang/libcxx_git.bb: meta-clang/recipes-devtools/clang/clang.inc:19 has a lack of whitespace around the assignment: 'LLVM_LIBDIR_SUFFIX="${@d.getVar('baselib').replace('lib', '')}"' WARNING: meta-clang/recipes-devtools/clang/llvm-project-source.bb: meta-clang/recipes-devtools/clang/clang.inc:19 has a lack of whitespace around the assignment: 'LLVM_LIBDIR_SUFFIX="${@d.getVar('baselib').replace('lib', '')}"' WARNING: meta-clang/recipes-devtools/clang/openmp_git.bb: meta-clang/recipes-devtools/clang/clang.inc:19 has a lack of whitespace around the assignment: 'LLVM_LIBDIR_SUFFIX="${@d.getVar('baselib').replace('lib', '')}"' Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
* compiler-rt-sanitizers: remove the LLVM_LIBDIR_SUFFIX conditionalMartin Jansa2025-04-011-8/+2
| | | | | | | | | | | | | | As in previous commit for compiler-rt. Since the upgrade to 20 it's installed in nonarch_libdir even when multilib is used and LLVM_LIBDIR_SUFFIX is set to '32'. Fixes: http://errors.yoctoproject.org/Errors/Details/850269/ mv: cannot stat 'TOPDIR/tmp/work/i586-oemllib32-linux/lib32-compiler-rt-sanitizers/20.1.1/image/usr/lib32/linux': No such file or directory Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
* compiler-rt: remove the LLVM_LIBDIR_SUFFIX conditionalMartin Jansa2025-04-011-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since the upgrade to 20 it's installed in nonarch_libdir even when multilib is used and LLVM_LIBDIR_SUFFIX is set to '32'. I don't know if some people are setting LLVM_LIBDIR_SUFFIX in some more creative way where this won't work, but with the default: LLVM_LIBDIR_SUFFIX="${@d.getVar('baselib').replace('lib', '')}" we don't seem to need this conditional, which actually breaks the build now when the 'else' branch is used. fixes: http://errors.yoctoproject.org/Errors/Details/850268/ mv: cannot stat 'lib32-compiler-rt/20.1.1/image/usr/lib32/linux': No such file or directory No change for build without multilib and compared with 19 most notably include/orc/c_api.h is no longer included in {libdir}/clang/<version>: $ find tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/ tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/ tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/usr tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/usr/lib tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/usr/lib/clang tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/usr/lib/clang/20.1.1 tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/usr/lib/clang/20.1.1/lib tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/usr/lib/clang/20.1.1/lib/linux tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/usr/lib/clang/20.1.1/lib/linux/libclang_rt.builtins-x86_64.a tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/usr/lib/clang/20.1.1/lib/linux/liborc_rt-x86_64.a tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/usr/include tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/usr/include/orc tmp/work/core2-64-oe-linux/compiler-rt/20.1.1.after/image/usr/include/orc/c_api.h $ find tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/ tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/ tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/usr tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/usr/lib tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/usr/lib/clang tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/usr/lib/clang/19.1.7 tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/lib tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/lib/linux tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/lib/linux/libclang_rt.builtins-x86_64.a tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/lib/linux/liborc_rt-x86_64.a tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/include tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/include/orc tmp/work/core2-64-oe-linux/compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/include/orc/c_api.h for lib32-compiler-rt: $ find tmp/work/i586-oemllib32-linux/lib32-compiler-rt/19.1.7/image/ tmp/work/i586-oemllib32-linux/lib32-compiler-rt/19.1.7/image/ tmp/work/i586-oemllib32-linux/lib32-compiler-rt/19.1.7/image/usr tmp/work/i586-oemllib32-linux/lib32-compiler-rt/19.1.7/image/usr/lib tmp/work/i586-oemllib32-linux/lib32-compiler-rt/19.1.7/image/usr/lib/clang tmp/work/i586-oemllib32-linux/lib32-compiler-rt/19.1.7/image/usr/lib/clang/19.1.7 tmp/work/i586-oemllib32-linux/lib32-compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/lib tmp/work/i586-oemllib32-linux/lib32-compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/lib/linux tmp/work/i586-oemllib32-linux/lib32-compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/lib/linux/libclang_rt.builtins-i386.a tmp/work/i586-oemllib32-linux/lib32-compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/include tmp/work/i586-oemllib32-linux/lib32-compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/include/orc tmp/work/i586-oemllib32-linux/lib32-compiler-rt/19.1.7/image/usr/lib/clang/19.1.7/include/orc/c_api.h $ find tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.before/image/ tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.before/image/ tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.before/image/usr tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.before/image/usr/lib tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.before/image/usr/lib/linux tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.before/image/usr/lib/linux/libclang_rt.builtins-i386.a tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.before/image/usr/lib/clang tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.before/image/usr/lib/clang/20.1.1 tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.before/image/usr/lib/clang/20.1.1/lib tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.before/image/usr/include tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.before/image/usr/include/orc tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.before/image/usr/include/orc/c_api.h this is where it failed because there is no /usr/lib32/clang $ find tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.after/image/ tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.after/image/ tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.after/image/usr tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.after/image/usr/lib tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.after/image/usr/lib/clang tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.after/image/usr/lib/clang/20.1.1 tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.after/image/usr/lib/clang/20.1.1/lib tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.after/image/usr/lib/clang/20.1.1/lib/linux tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.after/image/usr/lib/clang/20.1.1/lib/linux/libclang_rt.builtins-i386.a tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.after/image/usr/include tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.after/image/usr/include/orc tmp/work/i586-oemllib32-linux/lib32-compiler-rt/20.1.1.after/image/usr/include/orc/c_api.h Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
* clang: use LLVM_LIBDIR_SUFFIX variableMartin Jansa2025-04-011-1/+1
| | | | | | | * it was added here in 78362787f9e827ecb5dad9c44040f05a545f3ebe, but it's also defined in clang.inc since 98a9122637041b92fc40459bf71ad8d067bc4270 Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
* layer.conf: disable conflicting LLVM PACKAGECONFIG optionsDmitry Baryshkov2025-03-311-0/+6
| | | | | | | | | | The LLVM package in OE-Core got optional support for building libclc and SPIRV-LLVM-Translator. However this also means that llvm-native also install clang binaries into the sysroot. In order to remove a conflict with the clang recipe from meta-clang forcibly disable PACKAGECONFIG options causing conflict. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
* gimp: Remove -Qunused-arguments from complier cmdline with clangKhem Raj2025-03-281-0/+1
| | | | | | | | | | | | | | | This supresses the -msseX argument diagnostics on non-x86 architectures and meson wrongly decided to enable SSE on these biulds which ends up in │ │| In file included from ../gimp-3.0.2/app/gegl/gimp-gegl-loops-sse2.c:36: │ │| /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/gimp/3.0.2/recipe-sysroot-native/usr/lib/clang/20/include/emmintrin.h:14:2: error: "This header is only meant to be used on x86 and│ │ x64 architecture" │ │| 14 | #error "This header is only meant to be used on x86 and x64 architecture" │ │| | ^ │ │| In file included from ../gimp-3.0.2/app/gegl/gimp-gegl-loops-sse2.c:36: Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Disable building dexp in clang-nativeYoann Congal2025-03-273-0/+91
| | | | | | | | | | | | | | | | | | Building dexp (native) on Debian 11 causes intermittent failure[0]. This tools in not used in clang except in tests (that we don't run). So, disable building this tool by encapsulating its build in a cmake option and then in a PACKAGECONFIG. Users sure of not using Debian 11 (or the impacted g++ compiler) can turn this config on safely. Only the -native* variants change. Dexp is still enabled by default for target. [0]: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15803 Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
* clang: Upgrade to 20.1.1Khem Raj2025-03-233-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 424c2d9b7e4d [libcxx] Add a missing include for __bit_iterator (#127015) * 2cc53628fbe8 [SCEV] Check whether the start is non-zero in `ScalarEvolution::howFarToZero` (#131522) * 0619bbcbbd86 [BPF] Add default cpu change in ReleaseNotes (#131691) * 2dc152fb40db fix abi (again) * 2044b18af046 fix abi * e3f0ce3ef803 [Clang] Do not emit nodiscard warnings for the base expr of static member access (#131450) * 0ceb4efefeaa [CUDA][HIP] fix virtual dtor host/device attr (#128926) * 1058e693f090 [libc++][test] Skip a `is_virtual_base_of` test for apple-clang-17 (#131438) * 1f9d00524b8c [libc++] Forward-proof some tests for AppleClang 17 * 1515c4ac202d [LAA] Consider accessed addrspace when mapping underlying obj to access. (#129087) * 1cfbb9f33436 Backport/20.x: [Clang] Fix an incorrect assumption on getTemplatedDecl() * 0fcfeacd8b99 [BPF] Fix BitCast Assertion with NonZero AddrSpace * 0b23d98dceaa Reduce memory usage in AST parent map generation by lazily checking if nodes have been seen (#129934) * 073ae08864b4 AMDGPU: Fix broken broken negative test for gfx950 assembler (#129667) (#129686) * cb50aaf8a11b [llvm-objcopy] Apply encryptable offset to first segment, not section (#130517) * 63e63f306128 [Clang] Fix an integer overflow issue in computing CTAD's parameter depth (#128704) * b09b05b8e7c3 [MemCpyOpt] Fix clobber check in fca2memcpy optimization * 64ae6413559e [SystemZ] Move disabling of arg verification to before isFullyInternal(). (#130693) * 548d057ebcfa [VectorCombine] scalarizeLoadExtract - don't create scalar loads if any extract is waiting to be erased (#129375) * 7c154dad4d15 [Clang] Fix GPU intrinsic helpers incorrectly sign extending (#129560) * 946780474f3b [libc++][test] extend XFAIL clauses to cover Amazon Linux too (#129377) * f09bcfbdc90b [LoongArch] Relax the restrictions of inlineasm operand modifier 'u' and 'w' (#129864) * f62b50e0e8f1 [ValueTracking] Skip incoming values that are the same as the phi in `isGuaranteedNotToBeUndefOrPoison` (#130111) * 50343e517992 [HEXAGON] Fix hvx-isel for extract_subvector op (#129672) * 0412f708c380 [TailDuplicator] Do not restrict the computed gotos (#114990) * 72c4a3f419f4 [clang][test] Don't require specific alignment in test case (#130589) * fbb2a7e74d91 [clang] Reject constexpr-unknown values as constant expressions more consistently (#129952) * 9010db1b84ef [Clang] Treat constexpr-unknown value as invalid in `EvaluateAsInitializer` (#128409) * 32ce5b043c2b [AArch64] Fix BE popcount casts. (#129879) * 05be3ca72e39 [AArch64] Add BE test coverage for popcount. NFC * 0e96713a3b29 [ValueTracking] Bail out on x86_fp80 when computing fpclass with knownbits (#130477) * 0fda7e633255 [X86][AVX10.2] Fix unexpected larger scope (#130767) * f7a4e3a4d45d [clang-format] Don't remove parentheses separated from ellipsis by comma (#130471) * 1d4d84c89be6 [AArch64] Don't try to custom lower fp16 selects with nofp (#129492) * 0064565bce3f [DAGCombiner] Don't ignore N2's undef elements in `foldVSelectOfConstants` (#129272) * 54c90e4cdf2f [lldb] Fix manual CURSES_LIBRARIES tinfo finding (#128245) * 712d3c7f0944 [lldb] Add terminfo dependency for ncurses support (#126810) * 6525b151fe77 [Hexagon] Handle Call Operand vxi1 in Hexagon Backend (#128027) * dcc378e862de [libc++] Guard <codecvt> contents on _LIBCPP_HAS_LOCALIZATION (#129112) * 0f5e7e86e38e [SystemZ] Add header guard macros to vecintrin.h (#129170) * 5b552d780ae8 [LV][VPlan] Prevent calculate cost for skiped instructions in precomputeCosts(). (#127966) * 20adce87104c [libc++][ci] Update the Windows toolchains to Clang 19 (#129232) * 0e537474ea59 Bump version to 20.1.1 (#130806) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt-sanitizers: Fix build on riscv/muslKhem Raj2025-03-232-0/+98
| | | | | | | | | | Fixes /compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp:627:29: error: use of undeclared identifier 'TlsPreTcbSize' 627 | const uptr pre_tcb_size = TlsPreTcbSize(); | ^ 1 error generated. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* webkitgtk: Use gcc to build for rv64 for nowKhem Raj2025-03-231-2/+6
| | | | | | clang-20 is unable to build webkit 2.48 for rv64 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* webkitgtk: Use gcc to compile on ARMKhem Raj2025-03-211-0/+4
| | | | | | clang 20 can not compile webkit 2.48 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang-cross: Create cross binary copies instead of symlinksKhem Raj2025-03-211-1/+5
| | | | | | | | | | | This ensures that search path for subsequent tools e.g. linker assembler are searched in the same dir where <cross>-clang is installed. If its a symlink to ../clang then the reference installation dir is ../ and all cross-tools are not there so clang may fail to find assembler/linker from cross staging area and use /usr/bin/ld or /usr/bin/as which we do not want Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-numpy: Enable vector extentions since highway pkg needs itKhem Raj2025-03-211-0/+5
| | | | | | | | | | | | | Fixes | ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvl_e32mf2' | ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvl_e32mf2' | ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvlmax_e64m1' | ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvl_e64m1' | ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvl_e64m1' | ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvl_e64m1' | fatal error: too many errors emitted, stopping now [-ferror-limit=] Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftrace: Inherit bash completion classKhem Raj2025-03-211-1/+1
| | | | | | | | | | Fixes ERROR: bpftrace-0.23.0+git-r0 do_package: QA Issue: bpftrace: Files/directories were installed but not shipped in any package: /usr/share/bash-completion /usr/share/bash-completion/completions /usr/share/bash-completion/completions/bpftrace Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftrace: Upgrade to 0.23.x branchKhem Raj2025-03-213-31/+4
| | | | | | This is targetting clang-20 support. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: Upgrade to 0.33.0+Khem Raj2025-03-212-32/+3
| | | | | | Fix version string and add missing dependencies for ptests Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass,compiler-rt: Do not set -target for native clangKhem Raj2025-03-214-25/+40
| | | | | | | | | | | | | | | | | | | | | | | | | When building native recipes using clang as native compiler e.g. compiler-rt-native, setting -target can be out of sync with the underlying distro's understanding of gcc tuple e.g. aarch64-linux or aarch64-linux-gnu, which is used by distros to house the gcc runtime e.g. on ubuntu /usr/lib/gcc/aarch64-linux-gnu/11 /usr/lib/gcc/aarch64-linux-gnu/9 if we provide -target its not able to deduce it from the build host which is required for native packages try with recipe-sysroot-native/usr/bin/clang -xc /dev/null -rtlib=libgcc --unwindlib=libgcc -stdlib=libstdc++ -v or recipe-sysroot-native/usr/bin/clang -xc /dev/null -rtlib=libgcc --unwindlib=libgcc -stdlib=libstdc++ -target aarch64-linux -v to see the difference Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fmt: Disable invalide-specialization warning as errorKhem Raj2025-03-211-0/+3
| | | | | | This fails fmt to build with clang-20 + libcxx Signed-off-by: Khem Raj <raj.khem@gmail.com>
* include-what-you-use: Upgrade to 0.23+ releaseKhem Raj2025-03-211-2/+6
| | | | | | | | | | Use IWYU_RESOURCE_RELATIVE_TO=iwyu License-Update: Copyright year incremented [1] [1] https://github.com/include-what-you-use/include-what-you-use/commit/414d6f760caba8068b208d31125409a60930df69 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* castxml: Upgrade to 0.6.11Khem Raj2025-03-211-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spirv-llvm-translator: Upgrade to clang 20.1 branchKhem Raj2025-03-211-4/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 20.x releaseKhem Raj2025-03-2137-147/+189
| | | | | | | | | | | Release Notes clang-extra-tools [4] lld [3] clang [2] llvm [1] [1] https://releases.llvm.org/20.1.0/docs/ReleaseNotes.html [2] https://releases.llvm.org/20.1.0/tools/clang/docs/ReleaseNotes.html [3] https://releases.llvm.org/20.1.0/tools/lld/docs/ReleaseNotes.html [4] https://releases.llvm.org/20.1.0/tools/clang/tools/extra/docs/ReleaseNotes.html Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fix: [Issue #1061] - check for existence before trying to process a fileaprospero2025-03-171-2/+6
| | | | | | | | | | | | | | In certain configurations LLVMConfig.cmake does not exist. If that's the case do_install breaks for the nativesdk-clang recipe. Eg. set the following: EXTRA_OECMAKE:append:pn-nativesdk-clang = " -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON" as suggested here: https://llvm.org/docs/BuildingADistribution.html Signed-off-by: aprospero <apro@posteo.de>
* clang: set BPN = "clang" for clang cross,crosssdk,cross-canadian recipesHongxu Jia2025-02-246-0/+12
| | | | | | | | | | | | | | Similar gcc recipes in oe-core [1], set BPN = "clang" in common.inc for clang cross,crosssdk,cross-canadian recipes, but the recipe compiler-rt-sanitizers, compiler-rt, libclc, libcxx, openmp which shares sources with clang are not affected Due to commit [2], the BPN of llvm-project-source is not affected by this commit [1] https://github.com/openembedded/openembedded-core/commit/a2c5509520d5c3e082f55844e6545d0309565f8f [2] https://github.com/kraj/meta-clang/commit/e7517e1910a7d49abb4782fa0778f0b958f7717d Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
* libmodulemd,libblockdev,webkitgtk: Disable g-i on x86-64Khem Raj2025-02-111-1/+5
| | | | | | | Somehow g-i parser is confused with glibc 2.41 headers on x86-64 as well when using clang, it works ok when using gcc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libslirp,avahi-libnss-mdns: Add --undefined-version to LDFLAGS with LLDKhem Raj2025-02-091-0/+4
| | | | | | LLD does not understand the linker script versioning scheme as BFD linker does Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libmodulemd,libblockdev,webkitgtk: Disable g-i on x86Khem Raj2025-02-041-0/+6
| | | | | | | Somehow g-i parser is confused with glibc 2.41 headers on x86 when using clang, it works ok when using gcc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Update to match OE-Core virtual/cross-* changesRichard Purdie2025-01-2110-10/+10
| | | | | | | Update meta-clang to match OE-Core changes to use recipe specific virtual providers (without yet switching to the new switching mechanism). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lttng-ust: Link with libatomic on 32bit x86Khem Raj2025-01-181-0/+4
| | | | | | Clang generates _atomic_store calls Signed-off-by: Khem Raj <raj.khem@gmail.com>