summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang
Commit message (Collapse)AuthorAgeFilesLines
* clang: honor --dyld-prefix when searching for dynamic linkerOleksandr Ocheretnyi2020-07-022-0/+70
| | | | | | | | | | * 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>
* clang: Update to 10.0.1-rc2Khem Raj2020-06-281-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest after 10.0.1-rc1Khem Raj2020-06-091-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 10.0.1-rc1Khem Raj2020-05-261-2/+2
| | | | | | | | Update version number accordingly Signed-off-by: Khem Raj <raj.khem@gmail.com> s
* openmp: Make offloading-plugin as packageconfigKhem Raj2020-05-131-6/+8
| | | | | | | Needs libffi and libelf as dependencies, and is available only for aarch64/x86_64/ppc64 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Do not insttall libgomp.so aliasesKhem Raj2020-04-291-3/+1
| | | | | | | | | libgomp is coming from gcc-runtime and clang does not find it anyway so its better to not synlink it here, so it can avoid clashes with gcc-runtime, anyway clang will use this openmp runtime when using -fopenmp and wont depend on gomp from gcc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Extend to native and nativesdkKhem Raj2020-04-291-0/+2
| | | | | | Needed for rpm-native and friends Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: add lldb, lldb-server, liblldb packagesMaxime Roussin-BĂ©langer2020-04-271-1/+17
| | | | | | With lldb split in multiple packages it reduces the size of the `clang` package and you can now install lldb, lldb-server and liblldb without h having the whole clang fat package.
* fix build errors when using libLLVMInterpreterAnuj Mittal2020-04-032-0/+29
| | | | | | | | | | | | | | | | | 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-282-0/+42
| | | | | | | | | | | | 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 llvmorg-10.0.0 final releaseKhem Raj2020-03-2423-23/+23
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 10.0.0-rc5Khem Raj2020-03-191-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Fix build packaging with multilib suffixKhem Raj2020-03-181-0/+4
| | | | | | Add missing rdeps on libelf and libffi Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 10.x rc4 releaseKhem Raj2020-03-151-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 10.x releaseKhem Raj2020-03-111-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 10.x branchKhem Raj2020-03-091-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 10.xKhem Raj2020-03-0525-52/+23
| | | | | | Drop -lz patch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 10.x releaseKhem Raj2020-03-0425-34/+34
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to latest on 10.x releaseKhem Raj2020-02-271-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix libedit packageconfig flagPhilip Lorenz2020-02-241-2/+2
| | | | | | | LLDB_DISABLE_LIBEDIT was renamed to LLDB_ENABLE_LIBEDIT in 62456e579eebe012e5a6ebcf9960aef9d7babf87. Signed-off-by: Philip Lorenz <philip@bithub.de>
* clang: Upgrade clang to 10.x release (RC2)Khem Raj2020-02-2134-1164/+491
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang,llvm: cmake: Fix configure for packages using find_package()Ovidiu Panait2020-02-022-0/+139
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* Use simplier libdir suffix computationDaniel McGregor2020-01-241-17/+1
| | | | | | | | | | An earlier commit added a suffix table to determine the libdir suffix for multilib targets. This table failed at least in the lib32 case for x86, where the suffix should have been '', but was instead '32'. Use the same method as the cmake bbclass instead. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* libcxx,compiler-rt: Use python3 during buildKhem Raj2020-01-202-2/+2
| | | | | | py2 is gone from oe-core Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Make llvm CRT components optionalDaniel McGregor2020-01-201-0/+3
| | | | | | | LLVM 9+ provides the crt startup components crtbegin.o and crtend.o, enabled by default. Make using these with the clang runtime optional. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* clang: package the multilib symlinkDaniel McGregor2020-01-201-1/+9
| | | | | | | | | We need to muck with the default packaging a bit to prevent libdir/clang subdirectories from being packaged, and instead use nonarch_libdir. Otherwise the packager complains about directories being beneath a symlink. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* clang: stay closer to cmake.bbclassDaniel McGregor2020-01-204-87/+50
| | | | | | | | | | | Allow more of the cmake variables coming from the OE environment through, otherwise the release C flags and CXX flags get reset to LLVM's default, which greatly extend build times. Also switch to using cmake.bbclass's do_compile and do_install commands. There's no need to call ninja directly anymore. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* clang: use nonarch_libdir/clang for all runtime filesDaniel McGregor2020-01-201-10/+16
| | | | | | | | This allows the cross compiler to always find the runtime libraries in the same place, no matter the value of libdir. This is required for multilib to work correctly. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* clang: Search for dynamic linker.Daniel McGregor2020-01-203-61/+61
| | | | | | | 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-162-0/+31
| | | | | | Add libgcc as defined by $CC to link of libc++. Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
* clang: Use git suffix instead of svnKhem Raj2020-01-051-2/+3
| | | | | | | | | | src uri has long moved to git, and that is also being used as solib suffix Fixes packaging errors ERROR: clang-10.0.0-r0 do_package_qa: QA Issue: libclang rdepends on clang-dev [dev-deps] ERROR: clang-10.0.0-r0 do_package_qa: QA Issue: clang rdepends on clang-dev [dev-deps] Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Disable ompt tools on targets where ompt is not supportedKhem Raj2020-01-021-0/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Depend on libcrypt for sanitizersKhem Raj2019-12-261-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Turn split-dwarf setting into a packageconfig knobKhem Raj2019-12-261-1/+1
| | | | | | | Disable it by default, since centos7/gcc4.8 can't handle it Fixes Issue #262 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Fix build with glibc 2.31Khem Raj2019-12-232-0/+82
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Fix build on architectures with baselib != libKhem Raj2019-12-201-1/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 9.0.1 RC3Khem Raj2019-12-191-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use LLVM_USE_SPLIT_DWARF=ONKhem Raj2019-12-181-2/+1
| | | | | | | | | | | This helps in consuming less memory during link stage and also fixed link failures on mips64 Using clang cross itself ends up crashing | clang-9: error: unable to execute command: Killed | clang-9: error: linker command failed due to signal (use -v to see invocation) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix cmake exports sed variable using incorrect nameMichael Davis2019-12-171-1/+1
| | | | Signed-off-by: Michael Davis <michael.davis@essvote.com>
* openmp: Mark mips64 unsupported hostKhem Raj2019-12-171-0/+1
| | | | | | | Fixes error Unknown or unsupported architecture Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Package compiler-rt correctly with non-empty LLVM_LIBDIR_SUFFIXHiroshi Hatake2019-12-161-6/+6
|
* Compute LLVM_LIBDIR_SUFFIX correctly on multiarch environmentHiroshi Hatake2019-12-163-1/+20
| | | | Co-authored-by: INAJIMA Daisuke <inajima@soum.co.jp>
* clang: Use cmake variable for libdlKhem Raj2019-12-112-0/+34
| | | | | | | | 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: Update tool rename patch to match upstream oneKhem Raj2019-12-111-15/+121
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable lto when asked for via DISTRO_FEATURESKhem Raj2019-12-071-1/+1
| | | | | | | | | add 'thin-lto' or 'full-lto' to DISTRO_FEATURES to enable it instead of making it unconditional Should fix Issue #236 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: ensure correct python for nativesdk buildsrchard2scout2019-12-071-0/+1
| | | This fixes #162 for nativesdk-clang.
* clang: Update to 9.0.1-rc2Khem Raj2019-12-071-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix cmake exports not finding native binaries Issue #230Michael Davis2019-12-052-0/+18
| | | | | Signed-off-by: Michael Davis <michael.davis@essvote.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix multilib clang compile failing if lib is in the toolchain pathMichael Davis2019-12-052-0/+45
| | | | | Signed-off-by: Michael Davis <michael.davis@essvote.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: enable AMDGPU for all targetsJustin Bronder2019-11-261-2/+2
| | | | | | | | | | In 003dd05e4c168f7c3cccb9cbfad3fd8f38fe8741, clang replaced the oe-core provided llvm for building mesa. However, mesa needs AMDGPU to be enabled on the native target in order to build. Following the example of oe-core's recipe, just enable AMDGPU for all targets. Signed-off-by: Justin Bronder <jsbronder@cold-front.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>