summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* clang.bbclass: compiler-rt does not compile for ppc32Khem Raj2019-09-021-0/+1
| | | | | | Use libgcc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Use -mlong-double-64 on ppc64/muslKhem Raj2019-09-021-0/+1
| | | | 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>
* musl: Do not use clang for musl package on ppc64Khem Raj2019-09-021-0/+1
| | | | | | | Fails to build with builtins which are only in compiler-rt but compiler-rt needs C library to build. Catch-22 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>
* kernel-selftest.bbappend: Remove llvm-native from dependencyKhem Raj2019-08-281-0/+1
| | | | | | | clang-native is sufficient to provide needed tools for kernel-selftest including the ones from llvm-native 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>
* drone: Dont set TMPDIRKhem Raj2019-08-241-1/+0
| | | | | | | We have changed runner to create workspace in disk instead of defauly TMPDIR 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>
* layer: drop sumo supportMaxime Roussin-Bélanger2019-08-231-1/+1
| | | | can't build with sumo because of the dependency on libedit which require native. libedit doesn't provide BBCLASSEXTEND on sumo.
* nonclangable: Link harfbuzz with latomic on riscv64Khem Raj2019-08-201-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* gdb: Fix build with clang on riscv64Khem Raj2019-08-202-0/+29
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Disable llvm libunwind when using gcc as system compilerKhem Raj2019-08-202-2/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Mark mesa/lttng-ust/gnutls as gcc only for riscv64Khem Raj2019-08-201-0/+6
| | | | | | | clang/riscv64 is new and currently fails to build them linking with libatomic is needed for clang/riscv64 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-clang: Enable CI on Yoe Distro's DroneKhem Raj2019-08-192-0/+79
| | | | 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
|
* Do not use internal assembler for ne10 on armKhem Raj2019-08-141-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* musl: Use gcc for riscv64 for nowKhem Raj2019-08-141-0/+1
| | | | | | | system boot but not all the way to command prompt so we need to debug it eventually Signed-off-by: Khem Raj <raj.khem@gmail.com>
* 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>
* nonclangable: Remove aspell from the listPiotr Tworek2019-08-131-1/+0
| | | | | | | The package was recently updated to version 0.60.7 which builds fine with both clang 8.x and 9.x. Signed-off-by: Piotr Tworek <tworaz@tworaz.net>
* busybox: Use gcc for riscv64 for nowKhem Raj2019-08-121-0/+1
| | | | | | It crashes when compiled with clang Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openssl: Link with libatomic for riscv platformKhem Raj2019-08-121-0/+8
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* db,libffi,opnenssl: Use internal assemblerKhem Raj2019-08-121-6/+3
| | | | | | delete settings for openssl10, the recipe is gone from core layer Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openssl10: Disable internal llvm assembler for riscvKhem Raj2019-08-121-0/+2
| | | | | | | Fails to compile certain opcodes | /tmp/heap-175496.s:5016: Error: illegal operands `auipc a4,%got_pcrel_hi(__heap_pg_alloc_desc)' Signed-off-by: Khem Raj <raj.khem@gmail.com>
* opensbi: Mark nonclangableKhem Raj2019-08-121-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Add u-boot to listKhem Raj2019-08-121-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libunwind: Delete bbappendKhem Raj2019-08-121-4/+0
| | | | | | | This is not needed anymore since we do not install llvm libunwind and together with this in same recipe rootfs Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Provide libunwind and fix risv supportKhem Raj2019-08-122-5/+27
| | | | | | Use llvm libunwind as default for clang toolchain Signed-off-by: Khem Raj <raj.khem@gmail.com>
* README: Add new info about selecting unwind libraryKhem Raj2019-08-121-5/+5
| | | | | | Fix the runtime documentation which was reverse Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx,compiler-rt: Add --unwindlib=libunwind to COMPILER_RTKhem Raj2019-08-123-5/+4
| | | | | | | 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>
* busybox: Update the clang compatibility patch to work with clang 9.xKhem Raj2019-08-103-28/+141
| | | | 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>