summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* yoe.yml: Use yoe_clean_sstate function from envsetupKhem Raj2023-12-301-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-config: update following the oe-core scriptDmitry Baryshkov2023-12-291-19/+19
| | | | | | | | | | | The Mesa Clover meson.build script passes two options to llvm-config script, --libs --ldflags. The script from meta-clang passes control to the native llvm-config script, which unfortunately results in the native dynamic linker option leaking to the cross build. Fix that by adopting the approach from OE-core and filter known options before calling into the native llvm-config. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
* bpftrace: Do not strip uprobe_testWentao Zhang2023-12-291-0/+4
| | | | | | | | | | | | | | | | | | | | | "runtime:regression" in ptest gets the following FAILED: | nm: ./testprogs/uprobe_test: no symbols Keep the debug info of uprobe_test to pass this ptest item. the steps to repruduce: $export BPFTRACE_RUNTIME_TEST_EXECUTABLE=/usr/bin $cd /usr/lib/bpftrace/ptest/tests $python3 runtime/engine/main.py --filter="regression.*" *** | [ FAILED ] regression.address_probe_invalid_expansion | Command: /usr/bin/bpftrace -e "uprobe:./testprogs/uprobe_test:0x$ | (nm ./testprogs/uprobe_test | awk '$3 == "function1" | {print $1}') { @[probe] = count(); exit() }" | Unclean exit code: 1 | Output: nm: ./testprogs/uprobe_test: no symbols\nNo probes to attach\n *** Signed-off-by: Wentao Zhang <wentao.zhang@windriver.com>
* bpftrace: Replace python with python3 in ptestWentao Zhang2023-12-212-0/+54
| | | | | | | | "runtime:call" in ptest gets the following FAILED: | python: No such file or directory Replace python with python3 in this ptest item. Signed-off-by: Wentao Zhang <wentao.zhang@windriver.com>
* openssh: Enable to build it with clang againKhem Raj2023-12-211-3/+0
| | | | | | Clang-17 is good to build it, it had issues with clang-15 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openssl: Limit adding latomic to riscv32/riscv64 aloneKhem Raj2023-12-211-1/+4
| | | | | | This is not needed on all architectures. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Revert "openssh: Enable to build it with clang again"Khem Raj2023-12-031-0/+3
| | | | This reverts commit 89db18e81d78ba9756af04ec4e13d29082948207.
* openssh: Enable to build it with clang againKhem Raj2023-12-031-3/+0
| | | | | | Clang-17 is good to build it, it had issues with clang-15 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 17.0.6Khem Raj2023-12-032-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Bring in following fixes * 6009708b4367 Revert "[runtimes] Add missing test dependencies to check-all (#72955)" * 04caadc61fa2 [Driver] Enable __float128 support on X86 on FreeBSD / NetBSD (#72788) * e919a83f96fe eliminate python SyntaxWarnings from check-all output. * f6c231c15ec8 [clang-format] Fix crashes in AlignArrayOfStructures (#72520) * f74f3e6f58d3 [clang] Fix sorting module headers (#73146) * 7e30ce9528d9 [JITLink][aarch32] Change writeRegister's return type to void. * 03373fd9cb6c [CMake] Support building shared library for NetBSD * 21af3b62b632 workflows/release-binaries: Do a preliminary build to fill ccache (#72576) * 201faeca595e Add RV64 constraint to SRLIW (#69416) * e957e6dcb29d [runtimes] Add missing test dependencies to check-all (#72955) * f8575ff46f89 [clang-format] Fix a bug in aligning comments above PPDirective (#72791) * a71237b9f67f [clangd] Avoid null result in FindRecordTypeAt() * 308c816de5a4 Bump version to 17.0.6 * 442401f7c0ca remove tests from bad merge * 76c7e0e1e2d1 Use the correct namespace for looking up matching operator!= (#68922) * b5cbb35408a3 [libc++] Use correct size for deallocation of arrays in shared_ptr (#68233) * e6de86cb9ef8 Revert "Reland [clang] Canonicalize system headers in dependency file when -canonical-prefixes" (#71697) * bb66d8f8f73b [clang][WebAssembly] Link crt1 even in case of -shared Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Revert "cmake-native.bbclass: Add ubfs specific variable to ignore list"Khem Raj2023-11-221-2/+0
| | | | | | | | The problem is in BSP layer [1], these variable should not be exported universally moreover its not needed as well. [1] https://github.com/varigit/meta-variscite-bsp-imx/pull/36 This reverts commit 288f752445d3783dbaf06a60919a2b35b14e3a62.
* cmake-native.bbclass: Add ubfs specific variable to ignore listKhem Raj2023-11-221-0/+2
| | | | | | | | These variables show up as dependencies of native recipes otherwise can cause clang-native to rebuild without a reason just when defined by a machine using ubifs. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mesa-gl: Use -Wl,--undefined-version with LLDKhem Raj2023-11-201-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 17.0.5Khem Raj2023-11-202-3/+3
| | | | | | | | | | | | | | | | | | | * 98bfdac5ce82 [BranchFolding] Remove dubious assert from operator< (#71639) * 12c6ee8fd204 [GlobalOpt] Cache whether CC is changeable (#71381) * 0a1274224ef8 [libc++] Fix UB in <expected> related to "has value" flag (#68552) (#68733) * 42f8800b720f [clang] fix test PR69717.cpp (#72134) * e666be92b44b [clang] Run test on x86 only * aebee698ef16 [clang] Do not clear FP pragma stack when instantiating functions (#70646) * 529aa6eadb27 [SLP]Fix PR70004: Do not change insert point for reduction gather nodes. * 69b3baf9b87e [DAG] WidenVectorOperand - add basic handling for *_EXTEND_VECTOR_INREG nodes * e7dc53b94212 [Mips] In LowerShift*Parts, xor with bits-1 instead of -1. (#71149) * a6cbdae98272 [clang-format] Correctly annotate keyword operator function name (#66904) * 094cfd14c813 Bump version to 17.0.5 * 05422e1dcf94 [Driver] Fix linking with -lm on Solaris (#65632) * 910748f4ec5a [clang-repl] Fix BUILD_SHARED_LIBS symbols from libclangInterpreter on MinGW (#71393) * 582f0469dae1 [CGExprConstant] stop calling into ConstExprEmitter for Reference type destinations (#70366) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Stage along with gcc toolchainKhem Raj2023-11-121-1/+1
| | | | | | | | | So far when using toolchain = clang would punt gcc from native-sysroot but its beneficial to keep both compilers since they can co-exist its not a big problem to have both in sysroot. This helps in debugging issues as well. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Make tegra specific packages only for tegraJose Quaresma2023-11-101-7/+7
| | | | | | | The optee-os and optee-os-tadevkit are available not only for tegra so it should be better to use a `:tegra` machine override there for all of them. Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
* nonclangable: Add some tegra specific packagesKhem Raj2023-11-091-0/+9
| | | | | | They are not portable yet and assume gcc so give it to them Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 17.0.4 releaseKhem Raj2023-11-062-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings following changes/fixes * 309d55140c46 [AArch64][GlobalISel] Fix incorrect ABI when tail call not supported (#70215) * 9477268e4247 [AArch64] Add test for #70207 (NFC) * c2eab59e622c [GVN] Fix use-after-free in load PRE with select available value (#69314) * 586481468a07 [clang-tidy] Fix crash in modernize-use-trailing-return-type (#70709) * 9d0ca259eed6 [OpenMP] Fix building for 32-bit DragonFly, NetBSD, OpenBSD (#70527) * a8046f72bfb3 [OpenMP] record-replay use static-cast (#70516) * 12bbcd627f60 [flang] Add comdats to functions with linkonce linkage (#66516) * bdb1553c7639 [mlir] Add pass to add comdat to all linkonce functions (#65270) * 3347c8441588 Update release note for the fix * f6fb6a996c7f [clang][ExprConst] Fix crash on uninitialized array subobject (#67817) * 8c8abe6b93c0 [RISCV] Correct copyPhysReg for GPRPF64. (#70419) * 615beaec04f9 [SVE] Fix incorrect offset calculation when rewriting an instruction's frame index. (#70315) * bb29e1ead22f [MemCpyOpt] Combine alias metadatas when replacing byval arguments (#70580) * 2b82ec7947fe [OpenMP] Use the more appropriate function to retrieve the thread id on OpenBSD (#65553) * 8909a24d0af1 [libc++] Encode additional ODR-affecting properties in the ABI tag (#69669) * e9dcc15f514a [AArch64] Prevent argument promotion of vector with size > 128 bits (#70034) * 4b7f4152a8d1 [LoongArch] Implement COPY instruction between CFRs (#69300) * fb62a201a199 Revert "[clang-format] Fix align consecutive declarations over function pointers" * 1f6d35b36681 Fix tests for c23 <-> c2x * 030d68ef2cd7 Fix a c23 -> c2x think-o * 2a41d978b4fa [C23] Use thread_local semantics (#70107) * afbe3549af4d [clangd] Disable crashy unchecked-optional-access tidy check (#69427) * 7f790f9a39e3 [ConstraintElim] Don't decompose values wider than 64 bits (#68803) * a1c67ffd0a1f [ConstraintElim] Add test for #68751 (NFC) * ef50a367e3d5 [mlir] Avoid including <alloca.h> on DragonFly * a7101379d75e [LVI][CVP] Treat undef like a full range on abs(x, false) (#68711) * aa03fba83b17 [libcxx] [test] Add a test parameter for disabling memory intensive tests (#68214) * 71f408bc3623 workflows/release-tasks: Fix release note artifact upload (#69522) * 9ab3ce1d7a06 Bump version to 17.0.4 * 880a282a40e3 workflows/release-lit: Pass correct build directory to pypa/gh-action-pypi-publish (#69438) * 8719ee0cb39a workflows/release-lit: Fix dev suffix removal (#69397) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* vboxguestdrivers: use gcc toolchainMingli Yu2023-11-021-0/+2
| | | | Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
* clang.bbclass: fix a typoMing Liu2023-10-301-1/+1
| | | | | | A pair of '[]' is missing, add them in. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* clang.bbclass: Use llvm-strip on all architecturesKhem Raj2023-10-251-2/+1
| | | | | | It was just used for RISCV32/RISCV64 until now. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-clang: Replace RUNTIME with TC_CXX_RUNTIMEKhem Raj2023-10-257-23/+23
| | | | | | TC_CXX_RUNTIME is now defined in OE-core Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 17.0.3 releaseKhem Raj2023-10-192-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * 888437e1b600 [asan] Ensure __asan_register_elf_globals is called in COMDAT asan.module_ctor (#67745) * 2e00f4ca4e91 [clang-format][doc] Update the Linux kernel coding style URL * aeb83c3783a6 [clang-format] Fix a serious bug in git-clang-format (#65723) * 268faa377aee [LSan] Mark create_thread_leak.cpp as UNSUPPORTED: darwin. * 491a91e8eea2 [PowerPC] Use zext instead of anyext in custom and combine (#68784) * 8ce6b65c89ad [PowerPC] Add test for #68783 (NFC) * 7a23a5d43c67 [clang-format] Fix a bug in RemoveParentheses: ReturnStatement (#67911) * be4016e52779 [X86] Fix logic for optimizing movmsk(bitcast(shuffle(x))); PR67287 * 496b174053bd [X86] Add tests for incorrectly optimizing out shuffle used in `movmsk`; PR67287 * f50c6382c716 [clang] [MinGW] Explicitly always pass the -fno-use-init-array (#68571) * d10b731adcc8 [LVI][CVP] Treat undef like a full range (#68190) * 37b79e779f44 [X86] combineConcatVectorOps - only concatenate single-use subops * 5a13ce2d6020 Bump version to 17.0.3 * e7b3b94cf500 [clang] Correct behavior of `LLVM_UNREACHABLE_OPTIMIZE=OFF` for `Release` builds (#68284) * f0a687d821c1 [LLD] [COFF] Fix handling of comdat .drectve sections (#68116) * 8a8ade49ff49 workflows/release-binaries: Use more cores to avoid the 6 hour timeout (#67874) * 1090b91a2840 [AArch64] Disable loop alignment for Windows targets (#67894) * 69c8c96691c7 [Sema] Use underlying type of scoped enum for -Wformat diagnostics (#67378) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: Fix build with lld and clang on x86Khem Raj2023-10-051-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to llvmorg-17.0.2Khem Raj2023-10-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * b2417f51dbbd Fix release/export.sh to export runtimes tarball, too (#67404) * 23988a1d82d5 [libc++] Fix `std::pair`'s pair-like constructor's incorrect assumption (#66585) * 33e14ecd6aac [CodeGen] Don't treat thread local globals as large data (#67764) * 03f797b51df6 [workflow] Fix abi checker in llvm-tests. Same fix as in 99fb0af80d16b0ff886f032441392219e1cac452 (#67957) * f6cf58eed973 [clang] [MinGW] Tolerate mingw specific linker options during compilation (#67891) * b338a2830a2c [LLD] [COFF] Restore the current dir as the first entry in the search path (#67857) * 6a5be8e95b43 [LLD] [COFF] Clarify -print-search-path for the empty string element (#67856) * 71be0aafe357 [NFC] clang-format lld/COFF/Driver.cpp and lld/Common/Filesystem.cpp * 0a2d7dae6ef2 [compiler-rt] Reinstate removal of CRT choice flags from CMAKE_*_FLAGS* (#67935) * 098e653a5bed [MemCpyOpt] Merge alias metadatas when replacing arguments (#67539) * 78d201ebc3e2 [MemCpyOpt] Add test for #67539 (NFC) * e718f3240a57 [DependencyScanningFilesystem] Make sure the local/shared cache filename lookups use only absolute paths (#66122) * 45066b9fbc7b [Sema] Fix fixit cast printing inside macros (#66853) * 87ec1f460d0e Work around two more instances of __noinline__ conflicts. (#66138) * 9da5b7a93bca [lldb] Fix building LLDB standlone without framework * c056d720b534 [lldb][NFCI] Change logic to find clang resource dir in standalone builds * cb23434f9e63 [XCOFF] Do not generate the special .ref for zero-length sections (#66805) * 1b55dc9d94c3 Fix buildbot failure caused by D157623 * 28d81a2bfa0a [lld][COFF] Remove incorrect flag from EHcont table * b7eba056b93c workflows/release-tasks: Setup FileCheck and not for release-lit (#66799) * 9678f11b057c [StackColoring] Handle fixed object index * 49e9ee190080 [StackColoring] Handle SEH catch object stack slots conservatively * 17123a60b87c [X86] Add test for #66984 (NFC) * 2839aa915066 [SimpleLoopUnswitch] Fix exponential unswitch * 773f136d6faa [SimpleLoopUnswitch] Fix reversed branch during condition injection * 4362f3e4cf48 [clang] Include `expected-no-diagnostics` in newly-added test (NFC) * 5f1fcc43e592 [clang] Bail out when handling union access with virtual inheritance * 178cf5bc8732 [clang][Diagnostics] Fix wrong line number display (#65238) * 25a150b830f6 Revert "[InlineCost] Check for conflicting target attributes early" Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcgroup: Use --undefined-version with lld on sysvinitKhem Raj2023-10-021-0/+1
| | | | | | | | | | | These functions are unconditionally added to libcgroup.map Fixes aarch64-yoe-linux-musl-ld.lld: error: version script assignment of 'CGROUP_3.0' to symbol 'cgroup_create_scope' failed: symbol not defined aarch64-yoe-linux-musl-ld.lld: error: version script assignment of 'CGROUP_3.0' to symbol 'cgroup_set_default_scope_opts' failed: symbol not defined aarch64-yoe-linux-musl-ld.lld: error: version script assignment of 'CGROUP_3.0' to symbol 'cgroup_create_scope2' failed: symbol not defined aarch64-yoe-linux-musl-ld.lld: error: version script assignment of 'CGROUP_3.0' to symbol 'cgroup_write_systemd_default_cgroup' failed: symbol not defined Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 17.0.2Khem Raj2023-09-262-3/+3
| | | | | | | | | | * 481358974fb0 [GVN] Also remove phi nodes from VN table (PR65447) * 9f77e96186be [GVN] Invalidate MDA when deduplicating phi nodes * a13a89402f53 Bump version to 17.0.2 * 2c04bdb24677 [SVE] Ensure SVE call operands passed via memory are correctly initialised. (#66070) * 701620d58cdf [SVE] Precommit test to show missing initialisation of call operand. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Adjust for glibc-tests -> glibc-y2038-tests renameKhem Raj2023-09-251-1/+1
| | | | | | | This recipe got renamed in oe-core, it still is glibc based and can not be built with clang yet Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: convert CVE_CHECK_IGNORE to CVE_STATUSLee Chee Yang2023-09-251-2/+1
| | | | Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
* clang: Specify llvm-min-tblgen location during buildKhem Raj2023-09-211-2/+8
| | | | | | | | | Install and package clang-indexer and de-absolutify llvm-lit location in LLVMConfig.cmake file Package clangd-indexer tool Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Do not package tablegen built during cross-compileKhem Raj2023-09-211-17/+2
| | | | | | | | | | These tools are only needed during build and we are using them from clang-native, so they are not needed to be either built or packages in nativesdk-clang or target clang builds Fixes Issue #859 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftrace: Build tests for rv64 againKhem Raj2023-09-211-4/+0
| | | | | | The issue has been fixed upstream Signed-off-by: Khem Raj <raj.khem@gmail.com>
* go-runtime: Do not use LLD linkerKhem Raj2023-09-191-0/+2
| | | | | | | It ends up with go linker crashes later in influxdb e.g. but many other go apps get the same issue. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* pmdk: Default back to allowing undefined-version with lldKhem Raj2023-09-191-0/+1
| | | | | | | Fixes | x86_64-yoe-linux-ld.lld: error: version script assignment of 'LIBPMEM2_1.0' to symbol 'pmem2_source_from_handle' failed: symbol not defined Signed-off-by: Khem Raj <raj.khem@gmail.com>
* wtmpdb,-aufs-util,lastlog2: Use BFD linker when system linker is lldKhem Raj2023-09-191-0/+11
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* apt: Do not use libc++ runtime for nowKhem Raj2023-09-191-0/+4
| | | | | | | With clang17, it does not work with libc++ headers, until its fixed use libstdc++ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spirv-llvm-translator: Upgrade to main to compile with clang 17.0.0Khem Raj2023-09-191-4/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Rename LLDB_TABLEGEN to LLDB_TABLEGEN_EXEKhem Raj2023-09-191-2/+2
| | | | | | This is needed when using clang 17+ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 17.0.1 release branchKhem Raj2023-09-1943-557/+200
| | | | | | | | | | | | | | Drop riscv multilib patch it does not work with clang 17.0 Release Notes are below https://releases.llvm.org/17.0.1/docs/ReleaseNotes.html https://releases.llvm.org/17.0.1/tools/clang/docs/ReleaseNotes.html https://releases.llvm.org/17.0.1/tools/lld/docs/ReleaseNotes.html https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/ReleaseNotes.html https://releases.llvm.org/17.0.1/projects/libcxx/docs/ReleaseNotes.html Signed-off-by: Khem Raj <raj.khem@gmail.com>
* actions: Bump checkout for v3->v4Khem Raj2023-09-101-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer.conf: update LAYERSERIES_COMPAT for nanbieldMartin Jansa2023-09-101-1/+1
| | | | | | | * oe-core switched to nanbield in: https://git.openembedded.org/openembedded-core/commit/?id=f212cb12a0db9c9de5afd3cc89b1331d386e55f6 Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
* bcc: CMakeLists.txt: don't modify .gitconfig on build host nor try to update ↵Martin Jansa2023-09-072-0/+90
| | | | | | | | | | | | | | | | | | | | | | git submodules * bitbake fetcher will correctly handle safe.directory issues and blazesym or libbpf submodules are managed by gitsm:// fetcher we don't want to call git from CMake in do_configure * prevents many safe.directory entries in users .gitconfig when bcc was built in many different TMPDIRs added in https://github.com/iovisor/bcc/pull/4186 causing: [safe] directory = /OE/build/oe-core/tmp-glibc/work/cortexa57-oe-linux/bcc/0.28.0+git/git directory = /OE/build/oe-core/tmp-glibc/work/cortexa57-oe-linux/bcc/0.28.0+git/git/libbpf-tools/blazesym to be added for every TMPDIR where it was built Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
* bcc: move to the right dynamic-layerMartin Jansa2023-09-079-0/+2
| | | | | | | | | | | | | | | | | | | | | | | * it depends not only on meta-oe, but on meta-python as well and because meta-python depends on meta-oe, we can enable this when ever meta-python is included * fixes: NOTE: Resolving any missing task queue dependencies ERROR: Nothing RPROVIDES 'python3-pyroute2' (but /OE/build/oe-core/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb RDEPENDS on or otherwise requires it) NOTE: Runtime target 'python3-pyroute2' is unbuildable, removing... Missing or unbuildable dependency chain was: ['python3-pyroute2'] ERROR: Nothing RPROVIDES 'python3-netaddr' (but /OE/build/oe-core/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb RDEPENDS on or otherwise requires it) NOTE: Runtime target 'python3-netaddr' is unbuildable, removing... Missing or unbuildable dependency chain was: ['python3-netaddr'] ERROR: Nothing RPROVIDES 'bcc-dev' (but /OE/build/oe-core/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb RDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'bcc-dev' NOTE: Runtime target 'bcc-dev' is unbuildable, removing... Missing or unbuildable dependency chain was: ['bcc-dev'] ERROR: Nothing RPROVIDES 'bcc' (but /OE/build/oe-core/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb RDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'bcc' NOTE: Runtime target 'bcc' is unbuildable, removing... Missing or unbuildable dependency chain was: ['bcc']
* clang: try /usr/lib32/ld-linux.so.3 loader in sysroot firstMartin Jansa2023-09-072-15/+39
| | | | | | | | | | | | | * when building libclc the qemuwrapper correctly sets LD_LIBRARY_PATH to /usr/lib32 but the interpreter used by prepare_builtins has /usr/lib/ld-linux.so.3 interpreter: lib32-libclc/16.0.6 $ file build/prepare_builtins build/prepare_builtins: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /usr/lib/ld-linux.so.3, for GNU/Linux 5.4.0, with debug_info, not stripped causing qemu to fail with: cd lib32-libclc/16.0.6/build && lib32-libclc/16.0.6/qemuwrapper lib32-libclc/16.0.6/build/prepare_builtins -o clspv--.bc builtins.opt.clspv--.bc qemu-arm: Could not open '/usr/lib/ld-linux.so.3': No such file or directory Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
* clang: ToolChains/Gnu.cpp: search also in lib32Martin Jansa2023-09-072-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * in some strange multilib configs we build lib32-image where 32bit libs are in /usr/lib32 and 64bit in /usr/lib64 but in such setup the clang search for GCC candidate installation doesn't check lib32 directory in sysroot and fails to find the installation X86LibDirs was already searching in lib32 for very long time: https://github.com/llvm/llvm-project/commit/621fed5f5a051a0333415aaed75b8f2ed2350dbd but ARMLibDirs didn't include it for some reason. * if we don't add lib32 for arm in getOSLibDir(), then it will find -lgcc, crtbeginS.o, crtendS.o, but still fail to find -lgcc_s, -lc, Scrt1.o, crti.o, crtn.o * fixes lib32-compiler-rt build failure: -- Configuring incomplete, errors occurred! CMake Error at TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/recipe-sysroot-native/usr/share/cmake-3.26/Modules/CMakeTestCCompiler.cmake:67 (message): The C compiler "TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/recipe-sysroot-native/usr/bin/arm-oemllib32-linux-gnueabi/arm-oemllib32-linux-gnueabi-clang" is not able to compile a simple test program. It fails with the following output: Change Dir: TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build/CMakeFiles/CMakeScratch/TryCompile-rWXyQZ Run Build Command(s):ninja -v cmTC_84d18 && [1/2] TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/recipe-sysroot-native/usr/bin/arm-oemllib32-linux-gnueabi/arm-oemllib32-linux-gnueabi-clang --target=arm-oemllib32-linux-gnueabi --sysroot=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot -target arm-oemllib32-linux-gnueabi -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=softfp -mlittle-endian --dyld-prefix=/usr -Qunused-arguments -funwind-tables -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/recipe-sysroot-native= -fPIE -MD -MT CMakeFiles/cmTC_84d18.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_84d18.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_84d18.dir/testCCompiler.c.o -c TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build/CMakeFiles/CMakeScratch/TryCompile-rWXyQZ/testCCompiler.c [2/2] : && TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/recipe-sysroot-native/usr/bin/arm-oemllib32-linux-gnueabi/arm-oemllib32-linux-gnueabi-clang --target=arm-oemllib32-linux-gnueabi --sysroot=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot -target arm-oemllib32-linux-gnueabi -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=softfp -mlittle-endian --dyld-prefix=/usr -Qunused-arguments -funwind-tables -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/recipe-sysroot-native= -target arm-oemllib32-linux-gnueabi -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=softfp -mlittle-endian --dyld-prefix=/usr -Qunused-arguments -funwind-tables -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/recipe-sysroot-native= -Wl,-z,relro,-z,now -unwindlib=libgcc -rtlib=libgcc -stdlib=libstdc++ -fuse-ld=lld -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/recipe-sysroot-native= -Wl,-z,relro,-z,now -unwindlib=libgcc -rtlib=libgcc -stdlib=libstdc++ -fuse-ld=lld CMakeFiles/cmTC_84d18.dir/testCCompiler.c.o -o cmTC_84d18 && : FAILED: cmTC_84d18 : && TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/recipe-sysroot-native/usr/bin/arm-oemllib32-linux-gnueabi/arm-oemllib32-linux-gnueabi-clang --target=arm-oemllib32-linux-gnueabi --sysroot=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot -target arm-oemllib32-linux-gnueabi -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=softfp -mlittle-endian --dyld-prefix=/usr -Qunused-arguments -funwind-tables -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/recipe-sysroot-native= -target arm-oemllib32-linux-gnueabi -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=softfp -mlittle-endian --dyld-prefix=/usr -Qunused-arguments -funwind-tables -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/recipe-sysroot-native= -Wl,-z,relro,-z,now -unwindlib=libgcc -rtlib=libgcc -stdlib=libstdc++ -fuse-ld=lld -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work-shared/llvm-project-source-16.0.6-r0/git=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/build=/usr/src/debug/lib32-compiler-rt/16.0.6-r0 -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fmacro-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/lib32-recipe-sysroot= -fdebug-prefix-map=TOPDIR/BUILD/work/raspberrypi4_64-oemllib32-linux-gnueabi/lib32-compiler-rt/16.0.6/recipe-sysroot-native= -Wl,-z,relro,-z,now -unwindlib=libgcc -rtlib=libgcc -stdlib=libstdc++ -fuse-ld=lld CMakeFiles/cmTC_84d18.dir/testCCompiler.c.o -o cmTC_84d18 && : arm-oemllib32-linux-gnueabi-ld.lld: error: cannot open Scrt1.o: No such file or directory arm-oemllib32-linux-gnueabi-ld.lld: error: cannot open crti.o: No such file or directory arm-oemllib32-linux-gnueabi-ld.lld: error: cannot open crtbeginS.o: No such file or directory arm-oemllib32-linux-gnueabi-ld.lld: error: unable to find library -lgcc arm-oemllib32-linux-gnueabi-ld.lld: error: unable to find library -lgcc_s arm-oemllib32-linux-gnueabi-ld.lld: error: unable to find library -lc arm-oemllib32-linux-gnueabi-ld.lld: error: unable to find library -lgcc arm-oemllib32-linux-gnueabi-ld.lld: error: unable to find library -lgcc_s arm-oemllib32-linux-gnueabi-ld.lld: error: cannot open crtendS.o: No such file or directory arm-oemllib32-linux-gnueabi-ld.lld: error: cannot open crtn.o: No such file or directory clang-16: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* clang.bbclass: Simplify check when to enable lldKhem Raj2023-08-311-2/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libfaketime: Use BFD linker when LLD is system defaultKhem Raj2023-08-281-1/+3
| | | | | | | It uses symbol versioning like xyz@@ which lld does not like see https://github.com/llvm/llvm-project/issues/65017 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3: Add clang to rdeps for python3-ptestsKhem Raj2023-08-261-0/+4
| | | | | | | | cppext test needs full toolchain as it tries to build an extention with C, using clang ensures that a function compiler bits are pulled into ptest image when using TOOLCHAIN = "clang" Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libfaketime: Add -Wl,--undefined-version with lldKhem Raj2023-08-251-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* go-runtime: Use BFD linker when LLD is default system linker on aarch64Khem Raj2023-08-221-0/+5
| | | | | | | go linker is not able to link subsequent binaries e.g. gosu with lld produced libstd.so and crashes. This is just seen on arm64 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* gtk4: Disable integer conversion warning as errorKhem Raj2023-08-191-0/+3
| | | | | | | | clang 15+ has started to treated int-conversion as error and pipeline cache code added snippets[1] in gtk4 which causes this error [1] https://gitlab.gnome.org/GNOME/gtk/-/commit/684a015c9852ede9d57103852217b428546fe472 Signed-off-by: Khem Raj <raj.khem@gmail.com>