summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix installation of clang-tblgen and lldb-tblgenDamian Wrobel2019-09-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Fixes: | install: cannot stat ‘/data/dwrobel1/onemw/onemw/oe-builds/chromium-3/onemw/build-brcm97449svms-refboard/tmp/work/x86_64-linux/clang-native/9.0.0-r0/build/bin/clang-tblgen’: No such file or directory | WARNING: /data/dwrobel1/onemw/onemw/oe-builds/chromium-3/onemw/build-brcm97449svms-refboard/tmp/work/x86_64-linux/clang-native/9.0.0-r0/temp/run.do_install.25108:1 exit 1 from 'install -Dm 0755 /data/dwrobel1/onemw/onemw/oe-builds/chromium-3/onemw/build-brcm97449svms-refboard/tmp/work/x86_64-linux/clang-native/9.0.0-r0/build/bin/clang-tblgen /data/dwrobel1/onemw/onemw/oe-builds/chromium-3/onemw/build-brcm97449svms-refboard/tmp/work/x86_64-linux/clang-native/9.0.0-r0/image/data/dwrobel1/onemw/onemw/oe-builds/chromium-3/onemw/build-brcm97449svms-refboard/tmp/sysroots/x86_64-linux/usr/bin/clang-tblgen' $ cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) The location of the tools is as following: $ pwd /data/dwrobel1/onemw/onemw/oe-builds/chromium-3/onemw/build-brcm97449svms-refboard/tmp/work/x86_64-linux/clang-native/9.0.0-r0/build $ find . -name clang-tblgen ./tools/clang/stage2-bins/bin/clang-tblgen ./tools/clang/stage2-bins/NATIVE/bin/clang-tblgen ./NATIVE/bin/clang-tblgen $ find . -name lldb-tblgen ./tools/clang/stage2-bins/bin/lldb-tblgen ./tools/clang/stage2-bins/NATIVE/bin/lldb-tblgen Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Let cmake figure out python version for nativeKhem Raj2019-09-123-33/+9
| | | | | | 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-122-0/+104
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Disable target clang for riscvKhem Raj2019-09-121-0/+3
| | | | | | | | | Its not supported as native host _yet_ CMake Error at cmake/config-ix.cmake:438 (message): Unknown architecture riscv Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to llvmorg-9.0.0-rc4Khem Raj2019-09-111-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: correct typo errorNaveen Saini2019-09-101-1/+1
| | | | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* clang: Update to latest on 9.xKhem Raj2019-09-101-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Pass PYTHON_LIBRARY and PYTHON_INCLUDE_DIR to second stageKhem Raj2019-09-101-1/+1
| | | | | | This should ensure that right native python infra is used all along Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Explictly define PYTHON_LIBRARY and PYTHON_INCLUDE_DIRKhem Raj2019-09-091-2/+2
| | | | | | oe-core doesnt yet define these variables Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Backport a fix to re-arrange header include order on muslKhem Raj2019-09-092-0/+116
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Facilitate building without llvm libunwindKhem Raj2019-09-091-10/+15
| | | | | | | | | | | | | | | | | | | | | | | when llvm unwind library is disabled, build was not picking up libgcc automatically since we still use, compiler-rt for C runtime, therefore introduce it via special CMAKE_SHARED_LINKER_FLAGS in packageconfig Bundle static unwind library into libcxx-abi library and bundle libcxx-abi.a into libc++.a this helps in just specifying lc++ and no other flags are needed. Also bundle static libunwind and cxx-abi but not into shared libc++, this would avoid adding them explicitly on linker cmdline in packages when doing static linking Use PREFERRED_PROVIDER_libunwind to determine if unwind packageconfig should be enabled or not Pass -fno-exceptions on arm, otherwise it links in unwinding routines which it expects to link from libgcc_s, we really don't need this when doing cmake checks so disable exceptions during cmake checks Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 9.x branchKhem Raj2019-09-091-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Add ^libunwind-locale-.* to PACKAGES_DYNAMICKhem Raj2019-09-091-0/+2
| | | | | | | this should help when libcxx is preferred to provide libunwind and help masking the packages coming from libunwind recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Rename lldb-python to have PN in nameKhem Raj2019-09-071-3/+3
| | | | | | | | | This helps in extending rules to native/nativesdk recipes fixes ERROR: nativesdk-clang-9.0.0-r0 do_package_qa: QA Issue: nativesdk-python-lldb rdepends on nativesdk-clang-dev [dev-deps] Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Define PYTHON_LIBRARY and PYTHON_INCLUDE_DIRKhem Raj2019-09-0724-110/+76
| | | | | | | | - 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>
* compiler-rt: Package into /usr/lib alwaysKhem Raj2019-09-021-13/+14
| | | | | | | Clang differentiates on compiler-rt name and not dirs so installing all of them into /usr/lib/clang is fine and expected Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Fix build on ppcKhem Raj2019-09-021-0/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 9.0-rc3Khem Raj2019-09-022-2/+2
| | | | | | | 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-273-33/+1
| | | | | | Drop upstreamed patch to fix libcxx build on mips Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nativesdk-clang-glue: fix LIC_FILES_CHKSUMMartin Jansa2019-08-261-1/+1
| | | | | | | * use the filename with dashes like other recipes do * fixes: ERROR: nativesdk-clang-glue-1.0-r0: LIC_FILES_CHKSUM contains an invalid URL: WITH Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* clang: Pass PYTHON_EXECUTABLE to stage2Khem Raj2019-08-261-1/+1
| | | | | | This should fix issues where its looking for python in users build host Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 9.x releaseKhem Raj2019-08-263-1/+33
| | | | | | Fix libcxx build on mips Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Always use clang to compile libcxxKhem Raj2019-08-261-0/+2
| | | | | | It really does not build with gcc dont force it Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Do not hardcode llvm ar/ranlib/nmKhem Raj2019-08-261-3/+3
| | | | | | This helps in building with gcc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Link with libgcc when using gcc to buildKhem Raj2019-08-241-0/+2
| | | | | | Fixes build errors due to missing unwind symbols Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update past 9.0-rc2Khem Raj2019-08-241-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Disable llvm libunwind when using gcc as system compilerKhem Raj2019-08-201-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: RProvide rest of libunwind packagesKhem Raj2019-08-191-2/+3
| | | | | | | This ensures that llvm libunwind is used always, even for sdks Move depends above as per recipe styleguides Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Add libunwind to PROVIDES not only RPROVIDES.Piotr Tworek2019-08-171-1/+1
| | | | | | | | | | | | Without this bitbake will still pull standard libunwind package when building recipes depending on libunwind. If such recipe also happens to pull libcxx the build will fail when assembling the sysroot because both libcxx and libunwind provide libunwind.so. This problem has been observed when building libstd-rs from meta-rust layer agains musl libc. Signed-off-by: Piotr Tworek <tworaz@tworaz.net>
* clang: Update to latest release/9.x branchKhem Raj2019-08-161-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Pass LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN to stage2 as wellKhem Raj2019-08-151-0/+1
| | | | | | | | | | | Fixes CMake Error at cmake/modules/CheckCompilerVersion.cmake:105 (message): libstdc++ version should be at least 5.1 because LLVM will soon use new C++ features which your toolchain version doesn't support. You can temporarily opt out using LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN, but very soon your toolchain won't be supported. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Update clang_git.bbdburnsii2019-08-151-0/+1
|
* clang: Inherit python3native.Piotr Tworek2019-08-131-1/+1
| | | | | | | | | | | | | | | | | Without this for some reason lldb configure process manages to mix host system provided python3 interpreter with libpython provided in recipe-sysroot-native. As result the build fails with the following error message: | -- Found PythonInterp: /usr/bin/python3.6 (found version "3.6.5") ... | -- Found PythonLibs: /mnt/storage/build-purple/tmp-musl/work/x86_64-linux/clang-native/9.0.0-r0/recipe-sysroot-native/usr/lib/libpython3.7m.so (found version "3.7.4") | CMake Error at /mnt/storage/build-purple/tmp-musl/work-shared/llvm-project-source-9.0.0-r0/git/lldb/cmake/modules/LLDBConfig.cmake:204 (message): | Found incompatible Python interpreter (3.6.5) and Python libraries (3.7.4) | Call Stack (most recent call first): | /mnt/storage/build-purple/tmp-musl/work-shared/llvm-project-source-9.0.0-r0/git/lldb/CMakeLists.txt:20 (include) Signed-off-by: Piotr Tworek <tworaz@tworaz.net>
* libcxx: Provide libunwind and fix risv supportKhem Raj2019-08-121-3/+17
| | | | | | Use llvm libunwind as default for clang toolchain Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx,compiler-rt: Add --unwindlib=libunwind to COMPILER_RTKhem Raj2019-08-122-4/+3
| | | | | | | This is new way of enabling llvm unwinder as default unwinder now build shared libunwind which is needed for new option Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Build lldb as part of clang unified packageKhem Raj2019-08-122-73/+15
| | | | | | | | | | | | | This helps in building lldb which now needs build tree of llvm/clang to build itself (lldb-tblgen needs the build tree) Promote RISCV to first class citizen Package additional files and depend on libedit for lldb put python lldb files into own package Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 9.x-rcXKhem Raj2019-08-1234-296/+288
| | | | | | | 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>
* use native-clang compiler when building nativesdk-clangDaniel Dittmann2019-08-041-0/+2
| | | | | | | | | Some cmake based steps when building clang uses BUILD_CC, BUILD_CXX variables, which points to gcc even if TOOLCHAIN_class-nativesdk = "clang". This patch sets it to clang if TOOLCHAIN_class-nativesdk = "clang" is set. Signed-off-by: Daniel Dittmann <daniel.dittmann@rohde-schwarz.com>
* clang: Move libclang into its own dedicated package.yoe/mutPiotr Tworek2019-07-261-1/+5
| | | | | | | | | This library has a few potential consimers (ex, qttools) which don't need whole clang install. Distributions like debian already package lbiclang separately as libclang1. This makes even more sense for embedded systems. Do the same for OE/Yocto. Signed-off-by: Piotr Tworek <tworaz@tworaz.net>
* clang: Update to latest on 8.x branchKhem Raj2019-07-221-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 8.x releaseKhem Raj2019-07-111-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 8.0 releaseKhem Raj2019-06-241-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lldb: ignore format-security warningsAnuj Mittal2019-06-181-0/+2
| | | | | | | | | | | | | | | | lldb doesn't build when -Wformat-security -Werror=format-security is added/enabled and results in errors with gcc9: | BUILD/build/tmp/work-shared/llvm-project-source-8.0.1-r0/git/lldb/source/Core/Module.cpp: In member function 'size_t lldb_private::Module::FindTypes_Impl(const lldb_private::ConstString&, const lldb_private::CompilerDeclContext*, bool, size_t, llvm::DenseSet<lldb_private::SymbolFile*>&, lldb_private::TypeMap&)': | BUILD/build/tmp/work-shared/llvm-project-source-8.0.1-r0/git/lldb/source/Core/Module.cpp:951:52: error: format not a string literal and no format arguments [-Werror=format-security] | 951 | Timer scoped_timer(func_cat, LLVM_PRETTY_FUNCTION); | | ^ | BUILD/build/tmp/work-shared/llvm-project-source-8.0.1-r0/git/lldb/source/Core/Module.cpp: In member function 'virtual lldb_private::SymbolVendor* lldb_private::Module::GetSymbolVendor(bool, lldb_private::Stream*)': | BUILD/build/tmp/work-shared/llvm-project-source-8.0.1-r0/git/lldb/source/Core/Module.cpp:1052:58: error: format not a string literal and no format arguments [-Werror=format-security] | 1052 | Timer scoped_timer(func_cat, LLVM_PRETTY_FUNCTION); | | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* libcxx: Enable libunwind on mipsKhem Raj2019-05-261-1/+0
| | | | | | This now builds for mips so lets enable it Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 8.xKhem Raj2019-05-261-1/+1
| | | | | | | | Changes https://github.com/llvm/llvm-project/compare/9124fda0adfec205856a1ecca76d2cead11a0e2c...11c3a5c0f988cc3f412daf13ef8e47d813cc77f1 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: On x86_64 Modify ldso libdir only for target/cross recipesKhem Raj2019-05-191-11/+18
| | | | | | | | This should ensure that builds without uninative work ok Fixes Issue #106 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 8.0 releaseKhem Raj2019-05-191-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: upgrade to latest on 8.x releaseKhem Raj2019-05-101-2/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add hf to target tuple if hard float calling convention is usedKhem Raj2019-04-091-1/+4
| | | | | | | | This ensures that right default target is used and one does not need to specify it manually using -target option or -mfloat-abi when using on target Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: support old toolchainsAnuj Mittal2019-04-041-0/+1
| | | | | | | Allows building llvm/clang on Centos7 (gcc4.8) which still is one of the suported distros in YP. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>