summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Drop browser-layer from dynamic layersKhem Raj2021-03-272-10/+0
| | | | | | | These changes have been proposed for meta-browser itself see https://github.com/OSSystems/meta-browser/pull/489 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Fix build on armv6Khem Raj2021-03-252-0/+75
| | | | | | Fixes Issue #445 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: allow to set CLANG_EXTRA_OE_VENDORS to support custom TARGET_VENDOR valueMartin Jansa2021-03-244-6/+65
| | | | | | | | * instead of hardcoding only yoe, poky, wrs in the patch, add just placeholder string which gets replaced with a list based on CLANG_EXTRA_OE_VENDORS variable in llvm-project-source.inc:add_more_target_vendors Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* github/workflows: Set DISPLAY variable in environmentKhem Raj2021-03-151-0/+1
| | | | | | | This is needed for weston to launch since 'runqemu nograhic' no longer specify right -vga option in OE-core after commit 9f8d049dbbe0b1760979d9f3b745124abfc54c90 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/llvm: Upgrade to 12.0.0 RC3Khem Raj2021-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | * 15d1ee36720f [CMake][compiler-rt] Use copying instead of symlinking for LSE builtins on non-Unix-likes * bff59aca162e [TargetLowering] Use HandleSDNodes to prevent nodes from being deleted by recursive calls in getNegatedExpression. * a123beacce40 [LoopVectorize] Fix VPRecipeBuilder::createEdgeMask to correctly generate the mask * f8b32989241c [clang-tidy] Deprecate readability-deleted-default check * 46a1b0655666 [AArch64] Legalize horizontal fmax/fmin reductions on f16 vectors * d24e102ba266 [OpenMP] Fixed a crash when offloading to x86_64 with target nowait * 52510d84802b [GlobalISel] Bail on G_PHI narrowing of odd types (PR48188) * 99350dcc3f5b [OpenMP] Fix clang-cl build error regarding TSX intrinsics * 4ed9f17e9390 [analyzer] Add 12.0.0 release notes * 9760b282ff03 [DAGCombiner][X86] Don't peek through ANDs on the shift amount in matchRotateSub when called from MatchFunnelPosNeg. * 344216979213 Revert "[c++20] Mark class type NTTPs as done and start defining the feature test macro." * f73ba0f3582b [SimplifyCFG] avoid illegal phi with both poison and undef * 692808e5af83 [InstCombine] avoid infinite loop in demanded bits for select * c637d4d136fd [OpenMP][NVPTX] Fixed a compilation error in deviceRTLs caused by unsupported feature in release verion of LLVM * 98f06b16a313 [AArch64][Docs] Release notes 12.x on outline atomics * e0e6b1e39e7e ReleaseNotes: add lld/ELF notes Signed-off-by: Khem Raj <raj.khem@gmail.com>
* workflows: Pin to -j32 and 16 parallel tasksKhem Raj2021-03-121-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add 'wrs' to OE-distroYi Fan Yu2021-03-111-3/+7
| | | | | | | | | | | Add 'wrs' to OE-distro so it will now also find the correct header files for WR Linux. Solve `<climits> <algorithm> ... not found` when building with clang for WR Linux. Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
* bcc: link with dynamic libbpfMatteo Croce2021-03-105-1/+542
| | | | | | | | | Link bcc dynamically against libbpf. This reduces the size of libbcc.so from 68 MB to 3 MB. Backport some patches from upstream which are needed for the actual dynamic linking. Signed-off-by: Matteo Croce <mcroce@microsoft.com>
* clang: Install lld for target buildsZoltán Böszörményi2021-03-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LLDTargets.cmake (generated and installed by the lld build) references lld this way: add_executable(lld IMPORTED) set_property(TARGET lld PROPERTY ENABLE_EXPORTS 1) This way lld can be used by plugins to get their symbols from, pretty much like PHP modules that resolve their symbols from the php executable during runtime linking. At least https://github.com/RadeonOpenCompute/ROCm-CompilerSupport uses lld's cmake files as opposed to using only llvm and previously failed with: | The imported target "lld" references the file | | ".../tmp-sicom-glibc/work/corei7-64-sicom-linux/amd-comgr/4.0.0-r0/recipe-sysroot/usr/bin/lld" | | 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 Extending SYSROOT_DIRS with ${bindir} would break crosscompiling since CMake found clang/clang++ from recipe-sysroot in this case. Install lld into sysroot-destdir but nothing else. Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* spirv-llvm-translator: disable ccacheNaveen Saini2021-03-052-0/+34
| | | | | | | | Native build is failing, error log: ~/build/tmp/work/x86_64-linux/spirv-llvm-translator-native/12.0.0-r0/git/lib/SPIRV/SPIRVLowerSPIRBlocks.cpp | /bin/sh: 1: ccache: not found Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* musl: Use clang for riscv64Khem Raj2021-03-011-1/+0
| | | | | | | clang12 can successfully compile and boot musl so remove the workaround to use gcc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* musl: Remove workaround to disable -frounding-mathKhem Raj2021-03-011-6/+1
| | | | | | | The hang in clang seems to gone with clang12 remove dependecy on gcc-cross if using clang to compile musl Signed-off-by: Khem Raj <raj.khem@gmail.com>
* README.md: Fix location of github actions workflowsKhem Raj2021-03-011-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: Disable luaJIT on ppc64Khem Raj2021-03-011-1/+5
| | | | | | | ppc64 port is not yet available, its proposed here https://github.com/LuaJIT/LuaJIT/pull/54 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nettle: Disable internal asm on ppc64Khem Raj2021-03-011-0/+7
| | | | | | | generated asm files use .0: label which is not understood with internal asm, gnu as does fine job Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use shared-libs when building native clang as wellKhem Raj2021-03-011-1/+1
| | | | | | | | | This ensures that llvm-config works properly, since target clang is building shared libs, we should match it on clang native and nativesdk as well, this helps in cross compiling packages which depend on llvm-config to get llvm libs list during build/link Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libclc: Add dependency on spirv-llvm-translatorKhem Raj2021-03-011-3/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spirv-llvm-translator: Add recipeKhem Raj2021-03-012-0/+66
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm: Recognise yoe and poky vendors as OE based distroKhem Raj2021-03-012-0/+26
| | | | | | 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-0135-412/+271
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* busybox: Port patch to 1.33 releaseKhem Raj2021-02-262-7/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 11.1.0Khem Raj2021-02-201-1/+1
| | | | | | | | | * 1fdec59bffc1 [lldb] Fix fallout caused by D89156 on 11.0.1 for MacOS * 85fcd4655947 workflows: Re-enable lldb test on Mac OS X * 17e842f3785f workflows: Update action branch names * e18e509bdb45 workflows: Add job to check for ABI changes in libclang.so and libclang-cpp.so Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libclc: Remove C++ language level overrideZoltán Böszörményi2021-02-181-2/+0
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* clang: Merge llvm-common into clangZoltán Böszörményi2021-02-184-22/+9
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* libclc: Depend on spirv-tools if LLVM version is 12 or newerZoltán Böszörményi2021-02-141-1/+3
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* libclc: Add BBCLASSEXTEND = "native nativesdk"Zoltán Böszörményi2021-02-141-0/+2
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* libclc: Don't override cmake specific compiler and linker optionsZoltán Böszörményi2021-02-141-3/+2
| | | | Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
* bcc: Fix build with clang-12Khem Raj2021-02-143-0/+151
| | | | | | bring-in needed patches from upstream Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Disable building memprofKhem Raj2021-02-141-0/+1
| | | | | | | | | memprof/sanitizers need libcrypt to build, therefore remove it from building compiler-rt so we do not need libcrypt dependency, perhaps a new recipe to build sanitizers separately should be added which should also build memprof. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* packagegroup-core-buildessential: Append clang instead of overwriteKhem Raj2021-02-141-1/+1
| | | | | | | This ensures that all buildessentials are also installed into images which are needed when building on device Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libclc: Add recipeZoltán Böszörményi2021-02-131-0/+38
| | | | | | This is a pre-requisite to enable OpenCL in Mesa. 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-132-0/+30
| | | | 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-132-0/+86
| | | | | | | | | | 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>
* layer.conf: remove bcc and bpftrace from NON_MULTILIB_RECIPESKai Kang2021-02-051-2/+0
| | | | | | | | | | | | | | | | Because bcc and bpftrace have been set in NON_MULTILIB_RECIPES, 'bcc' rprovides 'lib32-bcc'. So when multilib is enabled, it is 'bcc' rather than 'lib32-bcc' installed to lib32 image such as lib32-core-image-minimal. Then the runtime dependency 64-bit package python3-core is installed accordingly. It causes 32-bit python modules which contains .so library do not work any more. For example, it fails to run command 'dnf': | ImportError: /usr/lib/python3.9/site-packages/libdnf/_error.so: wrong ELF class: ELFCLASS32 Remove bcc and bpftrace from NON_MULTILIB_RECIPES to make sure they are not installed to lib32 images and mess images up. Signed-off-by: Kai Kang <kai.kang@windriver.com>
* compiler-rt: Disable sanitizer buildsKhem Raj2021-02-011-3/+2
| | | | | | | | | | | Sanitizers include crypt.h from libcrypt to build, so when using llvm runtime this becomes important to break the cyclic dependency compiler-rt->libxcrypt->compiler-rt Fixes #425 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/llvm: Upgrade to 11.1.0-rc2Khem Raj2021-01-262-4/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Replace mtune with mcpu to match oe-coreKhem Raj2021-01-261-5/+5
| | | | | | Fixes Issue #415 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Set CCACHE_COMPILERCHECK as default valueMike Crowe2021-01-251-1/+1
| | | | | | | | | | | | | oe-core's ccache.bbclass contains: export CCACHE_COMPILERCHECK ?= "%compiler% -dumpspecs" which sets a default value and allows others to easily override the value of CCACHE_COMPILERCHECK if they wish to. Let's update clang.bbclass to also set only the default value of CCACHE_COMPILERCHECK too. Signed-off-by: Mike Crowe <mac@mcrowe.com>
* clang: for x86_64, set Yocto GCC install search pathHongxu Jia2021-01-252-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Add the target option to the CLANG environment variables.Tobias Bayer2021-01-251-3/+3
| | | | | | This commit fixes an issue when building a cmake based project where clang-tidy is configured as co-compiler. Without this option clang-tidy will fail as it cannot determinate the target architecture. Signed-off-by: Tobias Bayer <tobiasbayer@outlook.de>
* qemu: Link with latomic on clang/x86Khem Raj2021-01-091-0/+1
| | | | | | | clang delegates atomics to runtime library instead of builtins so link in libatomic on x86/gnu Signed-off-by: Khem Raj <raj.khem@gmail.com>
* ppp: Mark non-clangableKhem Raj2021-01-091-0/+4
| | | | | | | New version of ppp uses gcc specific options and nested functions which clang does not support Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Remove -mcpu option for the octeontx2 coreKevin Hao2021-01-041-0/+3
| | | | | | | | | | The tune file for octeontx2 has been added into oe-core by commit ad4f82742c6f ("tune-octeontx2.inc: Add tune for Marvell OCTEON TX2 core"). But the clang doesn't support this core yet. So remove the -mcpu from the TUNE_CCARGS to fix the build failure for the octeontx2 core. Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
* clang: Update to 11.0.1 rc2Khem Raj2020-12-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Changes in this bump * 43ff75f2c3fe [AArch64][GlobalISel] Promote scalar G_SHL constant shift amounts to s64. * 9caca7241d44 [AArch64][GlobalISel] Use the look-through constant helper for the shift s32->s64 custom legalization. * d104e582838f [CMake] Avoid __FakeVCSRevision.h with no git repository * f5f8d86dc4c9 Don't error for zero-length arange entries * 280e47ea0e83 [AArch64][GlobalISel] Narrow 128-bit regs to 64-bit regs in emitTestBit * 9e16c5bfae6e [AArch64][GlobalISel] Look through a G_ZEXT when trying to match shift-extended register offsets. * 6ec777c2f649 [Support] PR42623: Avoid setting the delete-on-close bit if a TempFile doesn't reside on a local drive * f684355e0292 [Support][Windows] Fix incorrect GetFinalPathNameByHandleW() return value check in realPathFromHandle() * 98f575ff55bf Don't reject calls to MinGW's unusual _setjmp declaration. * 0312bec0d757 Recognize setjmp and friends as builtins even if jmp_buf is not declared yet. * fdab756331f3 [Sema] Handle objc_super special lookup when checking builtin compatibility * adf845300c9c [Sema] Introduce BuiltinAttr, per-declaration builtin-ness * 200eb1abe2a1 Stop ExtractTypeForDeductionGuide from recursing on TypeSourceInfo * 700baa009dc6 [MC][ELF] Accept abbreviated form with sh_flags and sh_entsize * 861b2a24bc49 [KernelAddressSanitizer] Fix globals exclusion for indirect aliases * 8511a8df838f [InstCombine] canonicalizeSaturatedAdd(): last fold is only valid for strict comparison (PR48390) * 934376da5851 [NFC][InstCombine] Add test coverage for @llvm.uadd.sat canonicalization * fc23bc9b30bf [SemaTemplate] Stop passing insertion position around during VarTemplate instantiation * ca8de9ad8895 [X86] Fix crash with i64 bitreverse on 32-bit targets with XOP. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* pulseaudio: Remove -Qunused-arguments with clangKhem Raj2020-12-231-2/+2
| | | | | | | | -Qunused-arguments means its silencing warning about compiling arm/neon check code on x86 and tricking the build system to assume that compiler can support neon on x86 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* yoe.yml: Use actions/checkout at v2Khem Raj2020-12-141-3/+1
| | | | | | This ensures it picks latest v2 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* redis: Mark non-clangable as of nowKhem Raj2020-12-141-0/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rpm: Use gcc for building rpm on all mips archesKhem Raj2020-12-141-2/+2
| | | | | | llvm openmp implementation is not yet ported to mips Signed-off-by: Khem Raj <raj.khem@gmail.com>
* luajit: Add -no-integrated-asKhem Raj2020-12-141-0/+8
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bpftrace: Update to 0.11.4 releaseKhem Raj2020-12-122-279/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>