summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/common.inc
Commit message (Collapse)AuthorAgeFilesLines
...
* clang: Enable dwarf-5 default debug infoKhem Raj2021-05-041-2/+4
| | | | | | This matches with GCC 11 which is also defaulting to DWARF-5 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Fix build on armv6Khem Raj2021-03-251-0/+1
| | | | | | Fixes Issue #445 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm: Recognise yoe and poky vendors as OE based distroKhem Raj2021-03-011-0/+1
| | | | | | This helps llvm decide correctly on gcc installation structure Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 12.0.0 RC2Khem Raj2021-03-011-6/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Merge llvm-common into clangZoltán Böszörményi2021-02-181-0/+1
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* llvm-project-source: Add patch to make libclc explicitly use python3Zoltán Böszörményi2021-02-131-0/+1
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* llvm-project-source: Add a patch to fix LLVM bug 48921Zoltán Böszörményi2021-02-131-0/+1
| | | | | | | | | | The patch was taken from https://bugs.llvm.org/show_bug.cgi?id=48921 Unfortunately, LLVM 11 is already closed so the patch was only accepted into LLVM 12. Also reported at https://gitlab.freedesktop.org/mesa/mesa/-/issues/4107 Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* clang: for x86_64, set Yocto GCC install search pathHongxu Jia2021-01-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under Yocto host, while using clang-native to build, it searches install host gcc failed which causing include file not found [snip] |clang++ -target x86_64-linux -MMD -MF src/base/files/file_path_constants.o.d -I../../../tools/gn/src -I. \ -isystem/tmp-glibc/work/x86_64-linux/gn-native/87.0.4280.141-r0/recipe-sysroot-native/usr/include -O2 -pipe \ -std=c++17 -c ../../../tools/gn/src/base/files/file_path_constants.cc -o src/base/files/file_path_constants.o |../../../tools/gn/src/base/files/file_path_constants.cc:7:10: fatal error: 'iterator' file not found |#include <iterator> | ^~~~~~~~ [snip] Set three Yocto based GCC triple: poky, oe-core and wind river Before aplly the patch [snip] $ ../recipe-sysroot-native/usr/bin/clang++ -v clang version 11.0.1 (https://github.com/llvm/llvm-project 43ff75f2c3feef64f9d73328230d34dac8832a91) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /buildarea/raid5/hjia/wrlinux-20/build_master-wr_browser_2021012017/build-gn-native/tmp-glibc/work/x86_64-linux/gn-native/87.0.4280.141-r0/chromium-87.0.4280.141/../recipe-sysroot-native/usr/bin [snip] After aplly the patch: [snip] $ clang-11 -v clang version 11.0.1 (https://github.com/llvm/llvm-project 22c3241ff9a6224261df48d0258957fd8acc3d64) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /buildarea/raid5/hjia/wrlinux-20/build_master-wr_browser_2021012017/build/tmp-glibc/work/x86_64-linux/clang-native/11.0.1-r0/build/bin Found candidate GCC installation: /usr/lib//x86_64-wrs-linux/10.1.0 Found candidate GCC installation: /usr/lib/gcc/x86_64-wrs-linux/10.1.0 Selected GCC installation: /usr/lib//x86_64-wrs-linux/10.1.0 Candidate multilib: .;@m64 Selected multilib: .;@m64 [snip] BTW, it is hardly to insert a triple by the replacement of TARGET_SYS (=${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}), since TARGET_VENDOR is different between clang and clang-native Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
* clang: Use python3 explicitly in scriptsKhem Raj2020-10-151-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 11.x release branchKhem Raj2020-08-211-9/+9
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: honor --dyld-prefix when searching for dynamic linkerOleksandr Ocheretnyi2020-07-021-0/+1
| | | | | | | | | | * Commit 1ce5b0090e18 ("clang: Search for dynamic linker.") does not honor --dyld-prefix option, so it fails to find the linker when --dyld- prefix is used for usrmerge. Add DyldPrefix when searching for dynamic linker. Fixes: 1ce5b0090e18 ("clang: Search for dynamic linker.") Signed-off-by: Oleksandr Ocheretnyi <oocheret@cisco.com>
* fix build errors when using libLLVMInterpreterAnuj Mittal2020-04-031-0/+1
| | | | | | | | | | | | | | | | | Don't use the full path to libffi and avoid linking to the one from clang's sysroot. Prevents errors like: Log data follows: | DEBUG: Executing shell function do_compile | NOTE: VERBOSE=1 cmake --build /build/build/tmp/work/corei7-64-poky-linux/opencl-clang/10.0.0-r0/build --target all -- | ninja: error: '/build/build/tmp/work/corei7-64-poky-linux/clang/10.0.0-r0/recipe-sysroot/usr/lib/libffi.so', needed by 'libopencl-clang.so.10', missing and no known rule to make it | WARNING: exit code 1 from a shell command. | ERROR: Execution of '/build/build/tmp/work/corei7-64-poky-linux/opencl-clang/10.0.0-r0/temp/run.do_compile.72389' failed with exit code 1: | ninja: error: '/build/build/tmp/work/corei7-64-poky-linux/clang/10.0.0-r0/recipe-sysroot/usr/lib/libffi.so', needed by 'libopencl-clang.so.10', missing and no known rule to make it | WARNING: exit code 1 from a shell command. | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* clang: Fix default resources directory when cross compilingJim Broadus2020-03-281-0/+1
| | | | | | | | | | | | By default, clang looks for resourses relative to the binary location: ${location}/../lib/clang/${version}/ However, the default bindir defined in cross.bbclass is a subdirectory of bin, so clang forms a directory that looks like /usr/bin/lib/clang/10.0.0/ Apply a patch to use ${location}/../../lib/clang/${version} if the directory name of ${location}/.. is "bin". Signed-off-by: Jim Broadus <jbroadus@xevo.com>
* clang: Update to latest 10.xKhem Raj2020-03-051-1/+0
| | | | | | Drop -lz patch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 10.x releaseKhem Raj2020-03-041-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade clang to 10.x release (RC2)Khem Raj2020-02-211-22/+16
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang,llvm: cmake: Fix configure for packages using find_package()Ovidiu Panait2020-02-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Currently, when a package (i.e. bcc [https://github.com/iovisor/bcc.git]) that depends on LLVM/Clang tries to run cmake find_package() during do_configure, it will fail with a similar error: | The imported target "llvm-tblgen" references the file | ".../recipe-sysroot/usr/bin/llvm-tblgen" | | but this file does not exist. Possible reasons include: | * The file was deleted, renamed, or moved to another location. | * An install or uninstall procedure did not complete successfully. | * The installation package was faulty and contained | ".../recipe-sysroot/usr/lib/cmake/LLVMExports.cmake" | but not all the files it references. This is due to the fact that currently the exported cmake scripts look for target binaries in sysroot. Work around this by not exporting the target binaries in Exports-* cmake files. Upstream-Status: Innapropriate [oe-specific] Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
* clang: Search for dynamic linker.Daniel McGregor2020-01-201-1/+1
| | | | | | | Use the sysroot for a hint as to where to find the dynamic linker. This allows multilib distros to use the appropriate runtime linker path. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* libcxx: Correct link failure due to missing __divti3Jeremy Puhlman2020-01-161-0/+1
| | | | | | Add libgcc as defined by $CC to link of libc++. Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
* compiler-rt: Fix build with glibc 2.31Khem Raj2019-12-231-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use cmake variable for libdlKhem Raj2019-12-111-0/+1
| | | | | | | | This ensures that clang can link with libdl on platforms where needed Fixes issue #241 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix multilib clang compile failing if lib is in the toolchain pathMichael Davis2019-12-051-0/+1
| | | | | Signed-off-by: Michael Davis <michael.davis@essvote.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Uodate to 9.0.1-rc1Khem Raj2019-11-231-5/+4
| | | | | | | Drop 0021-Driver-Prioritize-SYSROOT-usr-include-over-RESOURCE_.patch as its already applied upstream Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm: Check for built-in atomic<double> during configureKhem Raj2019-11-181-0/+1
| | | | | | | | | This helps in deciding on linking libatomic, therefore its important to check for atomic<double> because on x86, clang decides to not use built-in whereas gcc does, so clangd e.g. links ok when using gcc but fails when using clang with gcc-runtime on x86 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Revert "clangd: Always link with libatomic"Khem Raj2019-11-181-1/+0
| | | | | | This reverts commit 2fdb19c4f8b025d4465d78cdf1bc05d786f5e087. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clangd: Always link with libatomicKhem Raj2019-11-181-0/+1
| | | | | | Since it uses double atomics which are not available yet as intrinsics Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix openmp build on armv7veKhem Raj2019-10-061-3/+4
| | | | | | Refresh patches on latest release/9.x branch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: pass PYTHON_EXECUTABLE to target as wellAnuj Mittal2019-09-181-0/+1
| | | | | | | Also make sure that we pass this value on to an internal native build that tries to detect python while cross-compiling. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* clang: Let cmake figure out python version for nativeKhem Raj2019-09-121-1/+0
| | | | | | supply python3 for nativesdk and target recipes Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add support for RISCV floating point registers in inlineasmKhem Raj2019-09-121-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Backport a fix to re-arrange header include order on muslKhem Raj2019-09-091-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Define PYTHON_LIBRARY and PYTHON_INCLUDE_DIRKhem Raj2019-09-071-0/+1
| | | | | | | | - Update at the same time to latest on 9.x - Update patches to drop patch numbers - Drop lldb from search python interpreter Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 9.0-rc3Khem Raj2019-09-021-1/+1
| | | | | | | Default to ssp and pie irrespective of GCCPIE this lets us build one clang for all Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 9.xKhem Raj2019-08-271-1/+0
| | | | | | Drop upstreamed patch to fix libcxx build on mips Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 9.x releaseKhem Raj2019-08-261-0/+1
| | | | | | Fix libcxx build on mips Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 9.x-rcXKhem Raj2019-08-121-21/+21
| | | | | | | dont package six.py, its provided by python3-six package default to lp64d ABI and rv64gc ISA. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Implement -fmacro-prefix-mapKhem Raj2019-02-151-0/+2
| | | | | | | OE-core now uses it so, we have to take the patch from review system, until it is in master Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Refresh patches and use static libunwind.a during default linkKhem Raj2019-02-071-18/+18
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm: Add .dword support for aarch64 MCKhem Raj2019-01-311-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add libunwind automatically to link cmdline when using compiler-rtKhem Raj2019-01-261-0/+1
| | | | | | | This makes compile-rt equal to libgcc which has both builtins+unwind as well Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Switch to upcoming 8.0 release branchKhem Raj2019-01-191-48/+16
| | | | | | | | | | | | | | | Clang 8.0 is going to be released in Feb-March 2019 so here we switch to release/8.x branch a bit early so we can provide some feedback for release to be good on OE If one needs to use stable 7.0.1 release please use thud branch clang 8.0 does have RISC-V backend, enable it clang: Add building experimental targets e.g. riscv Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-project: Switch to canonical git mirrorDan McGregor2019-01-161-1/+1
| | | | | | | LLVM now has an official git monorepo mirror. It will likely become the canonical upstream in the near future. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
* recipes: Rework llvm/clang/compiler-rt/libcxx/lldb recipesKhem Raj2018-12-271-13/+50
| | | | | | | | | | | | | | This is an overhaul of clang/llvm project related recipes * switch to using a flat mono repo for all clang/llvm projects * Add llvm-project-source recipe which will prepare source tree in work-shared for all recipes much like kernel and gcc * build lld as part of clang recipes, its much easier and saves build time and hopefully nativesdk version will be built now for free * switch to official git repos at git://github.com/llvm-project * Adjust all recipes to use shared sources Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Default to ssp and pie codegen when GCCPIE is setKhem Raj2018-12-091-1/+1
| | | | | | | | | This ensures that clang generates PIE+SSP code by default, this makes sure that packages which do not make this distinction compile properly as passing -fPIE and -pie could be not working well for their build systems Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Upgrade to clang 7.0.0 Release (rc2)Khem Raj2018-09-091-1/+1
| | | | | | | | | | | | | | | | | - Update compiler-rt/llvm/clang/lld licence checksums Triggerred due to copyright year update to 2018 Add libunwind and libcxxabi license to checksum list too - Switch to https protocol for fetching from github - Fix _finite functions on musl - Package new .so files built with clang - package libLLVM-${MAJOR_VER}.so as well since llvm-7 generates it without MINOR_VERSION Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix driver segfault with very long commandlineKhem Raj2018-05-201-0/+1
| | | | | | This is triggerred with webkit linking commands Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use python2 for scan-viewKhem Raj2018-05-151-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Do not link with -lssp when using -fstack-protectorKhem Raj2018-04-211-1/+1
| | | | | | This is provided by libc both (musl and glibc) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to upcoming 6.0 release branchesKhem Raj2018-01-271-5/+2
| | | | | | | clang 6.0 is upcoming release, its already in RC phases Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang,llvm,lld: Update to latest on release_50Khem Raj2017-10-051-1/+0
| | | | | | Drop upstreamed patches Signed-off-by: Khem Raj <raj.khem@gmail.com>