summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* drone: Do not expect same branches between meta-clang and yoeKhem Raj2020-08-041-2/+2
| | | | | | | | It could be that we use master branch of yoe to test a different feature branch on meta-clang, therefore just checkout whatever is default and then switch to master branch explicitly Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Default to compiler-rt when it is in PACKAGECONFIGKhem Raj2020-08-041-1/+1
| | | | | | This ensures right C runtime is used as desired by user Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add packageconfig to select default unwinderKhem Raj2020-08-011-0/+1
| | | | | | | | | | a choice is needed to be made for selecting unwinder library defaults ( --unwindlib ), by default we choose libgcc unwinder when packageconfig is disabled and only use llvm unwinder when this option is enabled Fixes Issue #332 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Fix linking based upon chosen compiler runtimeKhem Raj2020-08-011-5/+6
| | | | | | | | | | | | | | | | | | | | | | libcxx can use either libgcc_s or llvm libunwind for unwinder functionality, the defaults are platform dependent, therefore with this patch we make intentional choice based on RUNTIME settings chosen, e.g. when using GNU runtime we use libgcc and also ensure that it add right compiler options to build as well, since libcxx build looks C runtime by calling $($CC --print-libgcc-file-name) to build libc++abi.so unless we use right -rtlib option it will result in linking wrong library Enable RTTI as well do not enable llvm unwinder unless we chose llvm runtime, even that might not work since libpthread from glibc explicitly dlopens libgcc_s.so to enable unwinding https://github.com/bminor/glibc/blob/5f72f9800b250410cad3abfeeb09469ef12b2438/sysdeps/nptl/unwind-forcedunwind.c#L53...L58 Fixes Issue #332 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* busybox: Forward port the clang patch to 1.32 releaseKhem Raj2020-07-122-17/+6
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 10.0.1-rc4Khem Raj2020-07-101-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* busybox: Rename bbappend to apply for 1.31 version aloneKhem Raj2020-07-031-0/+0
| | | | | | This patch is alrady upstream for 1.32 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: usrmerge workaroundOleksandr Ocheretnyi2020-07-021-0/+2
| | | | | | | | | | | | | | | |  * issue:     the openembedded-core build procedure relies on changed default dynamic loader path when the usrmerge distro feature turned on. As we can find the GCC which is used as default toolchain uses SYSTEMLIBS_DIR macro variable set to /usr/(lib|lib64) at build time and hardcodes the binaries with that default loader path.  * solution:     change the default dynamic loader location with --dyld-prefix clang option to conform the loader location (as GCC does) to openembedded-core build procedure. Signed-off-by: Oleksandr Ocheretnyi <oocheret@cisco.com>
* 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>
* bcc: Fix KBUILD_MODNAME errors for kernel 5.7 and latterHe Zhe2020-06-303-0/+205
| | | | | | | | | Backport two patches to fix the following runtime failures. Networking tools fail with include/net/flow_offload.h:304:4: error: use of undeclared identifier 'KBUILD_MODNAME'. Signed-off-by: He Zhe <zhe.he@windriver.com>
* clang: Update to 10.0.1-rc2Khem Raj2020-06-281-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-environment: Conditionally add clang specific environment variablesKhem Raj2020-06-281-4/+6
| | | | | | | | Only when CLANGSDK = 1 Fixes Issue #338 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3: Cant run profile binaries in qemu when built with clangKhem Raj2020-06-281-0/+5
| | | | | | mark it gcc only for now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: Make opensnoop compatible with kernel v5.6 and laterHe Zhe2020-06-162-1/+53
| | | | | | | Since kernel v5.6, fddb5d430ad9 ("open: introduce openat2(2) syscall"), do_sys_openat2 instead of do_sys_open has been used as entry function for open. Signed-off-by: He Zhe <zhe.he@windriver.com>
* clang: Update to latest after 10.0.1-rc1Khem Raj2020-06-091-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* apt: Disable c++11-narrowing and fortifyKhem Raj2020-06-091-0/+10
| | | | | | | | | apt 1.8.2+ does not compile with clang, clang is finding narrowing warnings and printf function is redefined in tests which confuses the function signatures from libc when fortify is enabled, its therefore disabled for now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* drone: Use $DRONE_SOURCE_BRANCH instead of hardcoding branchKhem Raj2020-06-051-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Add PULL_REQUEST_TEMPLATE and CODEOWNERS filesKhem Raj2020-05-262-0/+13
| | | | | | | This should help notification and submitters to do right things for a pull request Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 10.0.1-rc1Khem Raj2020-05-262-3/+3
| | | | | | | | Update version number accordingly Signed-off-by: Khem Raj <raj.khem@gmail.com> s
* clang.bbclass: Define -target in HOST_CC_ARCHKhem Raj2020-05-161-0/+1
| | | | | | | This helps extra tools like clang-tidy to find arch-specific macros, headers in a cross compile environment. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Define CLANG_TIDY and extend it to cmake as wellKhem Raj2020-05-161-1/+8
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* cmake-native.bbclass: remove reset of CCACHEKai Kang2020-05-151-3/+0
| | | | | | | | | | It reset variable CCACHE to disable ccache. But that doesn't effect that CCACHE is set in an anonymous function from ccache.bbclass at last and ccache is always not disabled with cmake. Remove these useless piece of code. Signed-off-by: Kai Kang <kai.kang@windriver.com>
* clang.bbclass: override CCACHE_COMPILERCHECKKai Kang2020-05-151-0/+1
| | | | | | | | | | | | It fails to build compiler-rt when ccache is enabled: | ccache: error: Failure running compiler check command: %compiler% -dumpspecs Because clang doesn't recognize option '-dumpspecs' from default value of CCACHE_COMPILERCHECK, override CCACHE_COMPILERCHECK for toolchain clang in clang.bbclass. Signed-off-by: Kai Kang <kai.kang@windriver.com>
* 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>
* wpewebkit: Enable clangKhem Raj2020-05-031-3/+1
| | | | | | It can build with clang now a days Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rpm: Depend on openmp when using clangKhem Raj2020-04-291-0/+3
| | | | | | | This ensures that clang compiler has proper omp runtime to link rpm which now required omp 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>
* bcc bpftrace: Add xz to RDEPENDSHe Zhe2020-04-282-2/+2
| | | | | | | | | | | | bcc and bpftrace require xz to extract /sys/kernel/kheaders.tar.xz, otherwise the tools would fail as below. tar (child): xz: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now Signed-off-by: He Zhe <zhe.he@windriver.com>
* layer.conf: Add bpftrace to non-multilib listHe Zhe2020-04-281-1/+1
| | | | | | | bpftrace is only compatible with x86_64, aarch64 and powerpc64. So it's not able to built as 32 bit binary. Signed-off-by: He Zhe <zhe.he@windriver.com>
* layer.conf: Add bcc to non-multilib listHe Zhe2020-04-271-0/+2
| | | | | | | bcc is only compatible with x86_64, aarch64 and powerpc64. So it's not able to built as 32 bit binary. Signed-off-by: He Zhe <zhe.he@windriver.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.
* clang.bbclass: Handle big.LITTLE mtune options on arm/aarch64Khem Raj2020-04-231-0/+7
| | | | | | | | | | | Clang does not yet support big.LITTLE performance tunes, so use the LITTLE for tunes see [1] Fixes Issue #313 [1] https://reviews.llvm.org/D32076 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* 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>
* layer.conf: Mark CLANGSDK 0 by defaultKhem Raj2020-04-032-2/+3
| | | | | | | | This ensures that clangsdk does not inserts itself unless user asks for Fixes #234 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libsdl2: Do not use internal asmKhem Raj2020-04-021-0/+6
| | | | | | it seems to not use unified syntax Signed-off-by: Khem Raj <raj.khem@gmail.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>
* layer.conf: Mark it dunfell (3.1) compatibleKhem Raj2020-03-241-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftrace: include only when oe layer is includedAnuj Mittal2020-03-191-0/+0
| | | | | | | This depends on bcc which has also been moved to dynamic-layers/openembedded-layer. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* bcc: include only when oe layer is availableAnuj Mittal2020-03-192-0/+0
| | | | | | | Move bcc to dynamic-layers/openembedded-layer since it depends on luajit. Signed-off-by: Anuj Mittal <anuj.mittal@intel.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>
* recipes: Do not Add -Wno-error=unused-command-line-argument globallyKhem Raj2020-03-162-4/+3
| | | | | | | This option can turn Valid options into warnings and cause unintended behaviour Signed-off-by: Khem Raj <raj.khem@gmail.com>
* pipewire: Do no mis-detect SSE supportKhem Raj2020-03-151-0/+3
| | | | | | | | | meson logic in pipewire uses compiler cmdline to find if SSE is supported or not but if we use -Wno-error=unused-command-line-argument then the error is turned into warning and tests pass even on non-x86 machines which is not correct Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftrace: Add dependency on gzip-nativeOvidiu Panait2020-03-151-0/+1
| | | | | | | | | | Fix the following do_compile error: ... GZIP-NOTFOUND -c /bpftrace/0.9.4-r0/git/man/man8/bashreadline.8 > bpftrace/0.9.4-r0/build/man/man8/bashreadline.8.gz 16 /bin/sh: 1: GZIP-NOTFOUND: not found ... Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
* bpftrace: Disable building unit testsOvidiu Panait2020-03-151-2/+1
| | | | | | | | | | Disable building unit tests as they involve pulling gtest from git during do_configure. Reference: https://github.com/iovisor/bpftrace/commit/a56ab12d9f5b1970932c28dc66173b6c12daa7f7 Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
* bcc: Fix QA errors when baselib=lib64Ovidiu Panait2020-03-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the following errors when baselib=lib64: QA Issue: bcc: Files/directories were installed but not shipped in any package: /usr/lib /usr/lib/python3.7 /usr/lib/python3.7/site-packages /usr/lib/python3.7/site-packages/bcc-IT_NOTFOUND_94222748-py3.7.egg-info /usr/lib/python3.7/site-packages/bcc /usr/lib/python3.7/site-packages/bcc/tcp.py /usr/lib/python3.7/site-packages/bcc/version.py /usr/lib/python3.7/site-packages/bcc/disassembler.py /usr/lib/python3.7/site-packages/bcc/syscall.py /usr/lib/python3.7/site-packages/bcc/perf.py /usr/lib/python3.7/site-packages/bcc/__init__.py /usr/lib/python3.7/site-packages/bcc/libbcc.py /usr/lib/python3.7/site-packages/bcc/usdt.py /usr/lib/python3.7/site-packages/bcc/utils.py /usr/lib/python3.7/site-packages/bcc/table.py /usr/lib/python3.7/site-packages/bcc/__pycache__ /usr/lib/python3.7/site-packages/bcc/__pycache__/usdt.cpython-37.pyc /usr/lib/python3.7/site-packages/bcc/__pycache__/version.cpython-37.pyc /usr/lib/python3.7/site-packages/bcc/__pycache__/disassembler.cpython-37.pyc /usr/lib/python3.7/site-packages/bcc/__pycache__/syscall.cpython-37.pyc /usr/lib/python3.7/site-packages/bcc/__pycache__/perf.cpython-37.pyc /usr/lib/python3.7/site-packages/bcc/__pycache__/table.cpython-37.pyc /usr/lib/python3.7/site-packages/bcc/__pycache__/__init__.cpython-37.pyc /usr/lib/python3.7/site-packages/bcc/__pycache__/tcp.cpython-37.pyc /usr/lib/python3.7/site-packages/bcc/__pycache__/utils.cpython-37.pyc /usr/lib/python3.7/site-packages/bcc/__pycache__/libbcc.cpython-37.pyc Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
* bcc: Use gitsm fetcher to pull src/cc/libbpf submoduleOvidiu Panait2020-03-151-1/+1
| | | | | | | | | | Otherwise, the git submodule clone will be performed during the do_configure step, which is not desirable: Submodule 'src/cc/libbpf' (https://github.com/libbpf/libbpf.git) registered for path 'src/cc/libbpf' Cloning into 'build-clang/tmp-glibc/work/core2-64-oe-linux/bcc/0.13.0-r0/git/src/cc/libbpf'... Submodule path 'src/cc/libbpf': checked out '583bddce6b93bafa31471212a9811fd7d38b5f9a' Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
* clang: Update to 10.x rc4 releaseKhem Raj2020-03-151-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>