summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* llvm-project-source: Remove "MULTILIBS" from do_patch dependeciesKhem Raj2023-08-191-1/+1
| | | | | | | MULTILIBS maybe defined by distros/projects and in some cases not, this would result in rebuilding clang-native for no reason. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* scan-build: Add --no-browser option to scan-viewKhem Raj2023-08-141-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* scan-build.bbclass: Use 0.0.0.0 for CLANG_SCAN_SERVER_IPKhem Raj2023-08-141-2/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipe_sysroot_check_ld_is_lld: Do not create symlink for allarch recipesKhem Raj2023-08-121-0/+1
| | | | | | | | | | | allarch recipes do not really need compiler toolchains, otherwise they are not allarch Fixes issues like | ln: failed to create symbolic link 'TOPDIR/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/ca-certificates/20211016-r0/recipe-sysroot-native/usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-ld': No such file or directory Reported-by: Cliff Brake <cbrake@bec-systems.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable.conf: fix systemd efi buildJose Quaresma2023-08-121-0/+5
| | | | | | | | | - systemd-boot have it fixed on recipe but as it a clang issue it's better to move it here - systemd needs it when build with efi package config enabled since v254 Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
* qtbase: Do not use internal assembler with clangKhem Raj2023-08-071-0/+7
| | | | | | | This ends up with compile errors when using clang compiler, therefore internal assembler is disabled with qt6 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* gnu-efi: Always use BFD ld and gnu objcopyKhem Raj2023-08-051-1/+3
| | | | | | Doesnt build with lld and llvm objcopy Signed-off-by: Khem Raj <raj.khem@gmail.com>
* elfutils: Use --undefined-version when using lldKhem Raj2023-08-051-0/+1
| | | | | | | Fixes | x86_64-yoe-linux-musl-ld.lld: error: version script assignment of 'ELFUTILS_1.0' to symbol 'elf_scncnt' failed: symbol not defined Signed-off-by: Khem Raj <raj.khem@gmail.com>
* CI: Use yoe-kiosk-image instead of yoe-qt5-imageKhem Raj2023-08-051-1/+1
| | | | | | We are removing QT5 from defaults and switching to QT6 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libffi: Add --undefined-version to lld on armKhem Raj2023-08-011-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt,compiler-rt-sanitizers: Correct target tuple for armhfKhem Raj2023-08-012-2/+2
| | | | | | | | It will fails on clang-17+ | CMake Error at /mnt/b/yoe/master/build/tmp/work-shared/llvm-project-source-17.0.0-r0/git/compiler-rt/cmake/Modules/CheckSectionExists.cmake:72 (message): | error: unknown target triple 'armhf' Signed-off-by: Khem Raj <raj.khem@gmail.com>
* gnu-efi: Do not use clang internal assemblerKhem Raj2023-08-011-0/+9
| | | | | | New .s files can not be compiled with it, it has gnu flavors Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libffi: Use --undefined-version with lldKhem Raj2023-07-271-0/+1
| | | | | | | | | i686-yoe-linux-ld.lld: error: version script assignment of 'LIBFFI_BASE_8.0' to symbol 'ffi_java_raw_call' failed: symbol not defined i686-yoe-linux-ld.lld: error: version script assignment of 'LIBFFI_CLOSURE_8.0' to symbol 'ffi_prep_java_raw_closure' failed: symbol not defined i686-yoe-linux-ld.lld: error: version script assignment of 'LIBFFI_CLOSURE_8.0' to symbol 'ffi_prep_java_raw_closure_loc' failed: symbol not defined libtool: link: ( cd ".libs" && rm -f "libffi_convenience.la" && ln -s "../libffi_convenience.la" "libffi_convenience.la" ) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* systemd,cairo,ruby: Do not use --no-warn-rwx-segment with lldKhem Raj2023-07-271-3/+3
| | | | | | | This option is GNU linker specific and lld is not emitting this warning anyway Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nvme: Use -Wl,--undefined-version with lldKhem Raj2023-07-271-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Add -Wl,--undefined-version when using lldKhem Raj2023-07-251-0/+100
| | | | | | | | lld does not default to --undefined-version anymore starting with 17.x specifically, this just means we turn on bfd linker compatible link mode for these recipes, which should otherwise be fixed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftrace: Fix v0.18.0 build with PTEST_ENABLEDMichal Wojcik2023-07-201-0/+1
| | | | | | Building bpftrace tests after upgrade requires pahole and llvm-objcopy. Signed-off-by: Michal Wojcik <michal.wojcik@linaro.org>
* babeltrace2: Ignore textrels with lldKhem Raj2023-07-141-0/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: fix some of python script with wrong shebangXiangyu Chen2023-07-121-1/+1
| | | | | | | | | examples/tracing/nflatency.py has already upgraded the shebang to python3 on upstream, so when we apply the do_install:append function, the shebang of nflatency.py become /usr/bin/env python33 Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftrace: Fix build with llvm 17Khem Raj2023-07-102-0/+59
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftrace: Upgrade to 0.18.0Khem Raj2023-07-102-3/+3
| | | | | | Allow clang/llvm 17 to build it Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: Upgrade to 0.28.0Khem Raj2023-07-062-9/+5
| | | | | | Add python3-setuptools-native to depends Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-config: fix script for multilib buildNaveen Saini2023-06-221-1/+5
| | | | | | | | | | | | | | | | | | | | | | From multilib build: | CMake Error at cmake/FindLLVM.cmake:79 (message): | Failed running | tmp-glibc/work/x86-64-v3-oe-linux/ispc/1.20.0-r0/recipe-sysroot/usr/bin/crossscripts/llvm-config;--libfiles;engine;ipo;bitreader;bitwriter;instrumentation;linker;option;frontendopenmp;windowsdriver;x86 | Call Stack (most recent call first): | cmake/FindLLVM.cmake:116 (run_llvm_config) | CMakeLists.txt:377 (get_llvm_libfiles) Currently hardcoded to /lib, which causing multilib build failure. An easy solution could be set and export YOCTO_ALTERNATE_LIBDIR to $baselib in recipe, but it would require to add this in all affected recipes. Other approach is to handle in llvm-config script itself. Unfortunately $baselib is not available in env for the llvm-config script, so extracting baselib value from $base_libdir as its being exported and available in env and then set YOCTO_ALTERNATE_LIBDIR accordingly. Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* clang: Add missing SOBKhem Raj2023-06-211-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nmap: Use -N option to link when using lld on rv64Khem Raj2023-06-181-1/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Backport patch to fix lld link failures on riscv64Khem Raj2023-06-1840-58/+135
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Apply upstream D152570Dan McGregor2023-06-162-0/+87
| | | | | | | This fixes real file names appearing in lambda names that are used as arguments to function templates. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
* clang.bbclass: Use llvm-strip for rv32/rv64Khem Raj2023-06-161-1/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Bump version to 16.0.6Khem Raj2023-06-162-3/+3
| | | | | | | * 7cbf1a259152 [lld][WebAssembly] Fix stub library parsing with windows line endings * 10c3bdc04183 Bump version to 16.0.6 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipe_sysroot_check_ld_is_lld: Use STAGING_BINDIR_TOOLCHAIN to find ↵Khem Raj2023-06-111-1/+1
| | | | | | | | compiler installation This ensures correct directory is used to create linker symlink Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to llvmorg-16.0.5 tagKhem Raj2023-06-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * 185b81e034ba [clang] Fix crash when passing a braced-init list to a parentehsized aggregate init expression * 42f2e6efd844 [AA] Fix comparison of AliasResults (PR63019) * 57c54b25929c [GVN] Add test for PR63019 (NFC) * 726af32b5cee [X86][BF16] Fix 2 crashes with vector broadcast * 4fd1b8691da0 [Analysis][LoongArch] Add sign extension for i32 parameters and returns * 74b5a0af52eb [lld][WebAssembly] Initial support for stub libraries * 9c865c230791 [lld][WebAssembly] Implement --why-extract flag from the ELF backend * ad815b672d22 [Clang][Sema] Fix invalid cast when validating SVE types within CheckVariableDeclarationType. * cf85b3e5662d [clang] Fix crash when handling nested immediate invocations * e32cbe930f5b [CMake][AIX] Fixing AIX rpath * b98da4c71edd [CMake] Don't set absolute paths as install runpaths on ELF platforms in llvm_setup_rpath() * 87e99dec85b6 Revert DSE workarounds, this was causing some problems in main. * 84078877549b [clang] Fix overly aggressive lifetime checks for parenthesized aggregate initialization * 3a69d8111157 [CMake] Set compatibility policy for lists in LLVM-Config.cmake. * 35bd94a4b791 [clang-format] Handle <chrono> ud suffixes in IntegerLiteralSeparator * 9d0a2a41081b [BOLT][CMake] Use correct output paths and passthrough necessary options * 094f77145b95 [Hexagon] Add patterns for bspap/bitreverse for scalar vectors * 07808f6947a9 [llvm-mca] Fix duplicate symbols error * 17ceb9512a52 Reland "[Driver] Support multi /guard: options" * cd932165e595 Revert "[Driver] Support multi /guard: options" * 8c6c56dca37b [X86] Don't crash on instruction prefetch intrinsics without PREFETCHI support. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Check for INHIBIT_DEFAULT_DEPS in creating ld->lld symlinkKhem Raj2023-06-091-1/+2
| | | | | | | | | | | When INHIBIT_DEFAULT_DEPS = "1" then the toolchain is not staged in Recipe specific native sysroot at all, therefore there is no point of creating the symlink Moreover it also fixes build of such recipes when ld-is-lld is set at distro level Signed-off-by: Khem Raj <raj.khem@gmail.com>
* qt6/qttools: Fix build with clangKhem Raj2023-06-092-0/+3
| | | | | | | | See [1] [1] https://codereview.qt-project.org/c/yocto/meta-qt6/+/476890 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Update README.mdPatrick Little2023-05-301-7/+7
| | | Updating to latest URIs used by GitHub.com
* bcc: updating the shebang of python scripts in tools to python3Xiangyu Chen2023-05-301-0/+2
| | | | | | | | | the upstream changed the shebang of python scripts in tools folder[1], this would cause do_install:append cannot conver all scripts. [1] https://github.com/iovisor/bcc/commit/3f5e402bcadf44ce0250864db52673bf7317797b Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
* clang: Do not provide llvm-native implicitlyKhem Raj2023-05-263-6/+14
| | | | | | | Document a way to let clang provide llvm as well. This helps this layer pass the yocto check layer test Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 16.0.4+Khem Raj2023-05-212-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings in * 5729e63ac7b4 Fix ArgsAsWritten being null for ConceptSpecializationExpr in certain circumstances when parsing ASTs * 2eb26b66c639 workflows/release-tasks: Remove stray backslash * 812ea0780cfa Bump version to 16.0.5 * ae42196bc493 clangd] Fix builds after 4ddae8b941398a6579d3 * 21f3dfbc2673 [clangd] Fix test failure when it's built with compiler flags unknown by clang * 82b4446f25d4 [Clang][BPF] Type print btf_type_tag properly * e24a8596a81b [SelectionDAG][RISCV] Remove code for handling too small shift type from SimplifyDemandedBits. * 46e68a277715 [Driver] Support multi /guard: options * d5cce0a7781b [cmake] Disable GCC lifetime DSE * 57262bbd32c3 [clang-tidy][test] Add trailing -- to suppress compile_commands.json read * df309b120853 fix stack probe lowering for x86_intrcc * 1a04a5f1cf15 [flang] Fix optional assertion in PFTBuilder * bef3459fcde7 [clang] Fix default initializers being ignored when initializing templated aggregate types * 83c2387c87e6 Reapply "[SystemZ] Bugfix in expansion of memmem operations." * 3c1576cc0c54 Bump version to 16.0.4 * da3cd333bea5 compiler-rt] [test] Mark dfsan tests XFAIL on glibc-2.37 * 0c7669bc2bbf [clang][driver] Pass `-femulated-tls` through to the linker in LTO mode * 753307debc04 [RuntimeDyld] Disable some ppc64 tests on 32-bit architectures. * 93e555fbd794 [InstCombine] Fix buggy `(mul X, Y)` -> `(shl X, Log2(Y))` transform PR62175 * ff9dc9c4fb11 [clang] Fix 2 bugs with parenthesized aggregate initialization * 3cc0a562969b Clear read_fd_set if EINTR received * 5db6c9daf033 [SimplifyCFG] Don't merge invoke if this makes immarg non-constant (PR61265) * 33b41a6564f9 [clang] Fix a crash with parenthesized aggregate initialization and base classes * 7a26555f8d48 [LLD][COFF] Add /inferasanlibs to lld-link as ignored flag * 4676274c9eb2 [LLD][COFF] Print object file name for unsupported directives * e86119670799 [CodeGen][MachineLastInstrsCleanup] fix INLINEASM_BR hazard * ec79a4730428 [CodeGen] precommit machine-latecleanup test Signed-off-by: Khem Raj <raj.khem@gmail.com>
* ffmpeg: Enable zbb manip extensions for rv32/rv64Khem Raj2023-05-211-0/+3
| | | | | | | | | | | | | | | | | | This is required with clang after the assembly file is added which uses these instructions. it works with gcc because it uses .option directive to enable zbb extentions in toolchain on the fly clang does not have similar option | <instantiation>:6:21: warning: unknown option, expected 'push', 'pop', 'rvc', 'norvc', 'relax' or 'norelax' | .option arch, +zbb This fixes | src/libavcodec/riscv/bswapdsp_rvb.S:61:9: error: instruction requires the following: 'Zbb' (Basic Bit-Manipulation) or 'Zbkb' (Bitmanip instructions for Cryptography) | rev8 t0, t0 | ^ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: create lld symbolic link in sysroot when ld-is-lld is setMing Liu2023-05-161-0/+10
| | | | | | | | | Create a symbolic link lld -> ld in recipe sysroot to choose the default linker lld when ld-is-lld is set in DISTRO_FEATURES. othereise, we can get linking issues when '-fuse-ld=lld' is in LDFLAGS but the actual ld is not lld. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* clang: Fix upstream status of ↵Khem Raj2023-05-121-1/+1
| | | | | | 0037-clang-Call-printName-to-get-name-of-Decl.patch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mesa: remove bbappendRoss Burton2023-05-121-2/+0
| | | | | | | | | | | | | | | | | | | | | This bbappend is now just: YOCTO_ALTERNATE_EXE_PATH:toolchain-clang = "${STAGING_LIBDIR}/llvm-config" YOCTO_ALTERNATE_EXE_PATH:toolchain-clang = "1" This results in YOCTO_ALTERNATE_EXE_PATH being "1". The second line is clearly a typo, so if we remove this then it changes the path from STAGING_BINDIR (as set in clang.bbclass) to STAGING_LIBDIR. If this is the correct change to make then it should be done in clang.bbclass instead. Also, the only place that YOCTO_ALTERNATE_EXE_PATH is respected is as an environment variable, and this is never exported. It is likely that the second line was meant to end [export] = "1". This parameter appears to be no longer needed, so remove the append. Signed-off-by: Ross Burton <ross.burton@arm.com>
* llvm-config: add --libfiles optionNaveen Saini2023-05-121-0/+5
| | | | | | | | | --libfiles Fully qualified library filenames for makefile depends. This option is being used by ispc cmake. https://github.com/ispc/ispc/blob/main/cmake/FindLLVM.cmake#L116 Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* btrfs-tools: Error out on x86 options on non-x86 archesKhem Raj2023-05-111-0/+2
| | | | | | | | e.g. -msha will otherwise be deemed available when using clang which is not correct, therefore treat unused-command-line-argument as error which will be flagged on non-x86 arches Signed-off-by: Khem Raj <raj.khem@gmail.com>
* LLVM officially supports LoongArch starting from 16.0.0zqz2023-05-101-1/+2
|
* rename add_more_target_vendors to add_distro_vendorEtienne Cordonnier2023-05-103-5/+5
| | | | | | The function was renamed in 9d190cb3b3 Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>