summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bcc: Upgrade 0.15.0 -> 0.17.0He Zhe2020-11-041-3/+1
| | | | | | To support kernel v5.9 and remove patches that have been merged upstream. Signed-off-by: He Zhe <zhe.he@windriver.com>
* mesa: Depend on elfutils regardless of llvm checkKhem Raj2020-10-281-2/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Disable for riscv32Khem Raj2020-10-271-0/+1
| | | | | | Port is not available yet Signed-off-by: Khem Raj <raj.khem@gmail.com>
* build shared nativesdk clangDaniel Dittmann2020-10-211-1/+1
| | | | Signed-off-by: Daniel Dittmann <daniel.dittmann@rohde-schwarz.com>
* Remove compiler arguments from CLANG_TIDY_EXEMQueiros2020-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | cclang-tidy doesn't process compilation flags like "-mlittle-endian" and "sysroot". The current export tries to use those flags, which makes clang-tidy fail like in the following example: > $ aarch64-poky-linux-clang-tidy fibonacci.cpp -mlittle-endian --sysroot=/opt/mgu22/sysroots/aarch64-poky-linux > LLVM ERROR: CommonOptionsParser: failed to parse command-line arguments. [CommonOptionsParser]: aarch64-poky-linux-clang-tidy: Unknown command line argument '-mlittle-endian'. Try: 'aarch64-poky-linux-clan$ > aarch64-poky-linux-clang-tidy: Did you mean '--list-checks'? > aarch64-poky-linux-clang-tidy: Unknown command line argument '--sysroot=/opt/mgu22/sysroots/aarch64-poky-linux'. Try: 'aarch64-poky-linux-clang-tidy --help' > aarch64-poky-linux-clang-tidy: Did you mean '--color=/opt/mgu22/sysroots/aarch64-poky-linux'? This change removes those compiler arguments: > $ aarch64-poky-linux-clang-tidy fibonacci.cpp > Error while trying to load a compilation database: > Could not auto-detect compilation database for file "fibonacci.cpp" > No compilation database found in /home/mqueiros/workspace/minimal-working-example/fibonacci or any parent directory > fixed-compilation-database: Error while opening fixed database: No such file or directory > json-compilation-database: Error while opening JSON database: No such file or directory > Running without flags. Signed-off-by: Mauro Queiros <maurofrqueiros@gmail.com>
* tesseract: Remove -Qunused-arguments from CFLAGSKhem Raj2020-10-201-0/+1
| | | | | | | | | | | This helps configure checks for sse where clang sends out a unused option warning but because we use -Qunused-arguments, this warning is suppressed and -Werror does not notice this warning and checks succeed for no reason on architectures who dont have SSE. Therefore removing this option helps compiler to emit the warning and rightly detect that these options can not be enabled for non-x86 architectures Signed-off-by: Khem Raj <raj.khem@gmail.com>
* packagegroup-cross-canadian: Fix adding clang-cross-canadian only when ↵Khem Raj2020-10-201-2/+3
| | | | | | CLANGSDK is 1 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Disable LLDB on riscv{32,64}David Abdurachmanov2020-10-161-1/+6
| | | | | | | | | There is no upstream support for RISCV in LLDB at this point thus disable it. Not disabling it would result in undefined references due to lack of RISCV implementation. Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Fix get_clang_arch and LLVM targetsDavid Abdurachmanov2020-10-161-2/+2
| | | | | | | | | | | | | | | | | | | LLVM_TARGET_ARCH must be riscv32 or riscv64, which results in LLVM_NATIVE_ARCH being RISCV. We cannot pass RISCV to LLVM_TARGET_ARCH as that will cause "Unknown architecture" error at configure time. We already have all architectures listed in LLVM_TARGETS_TO_BUILD thus there is no need to append additional ones. That results in LLVM_NATIVE_ARCH being listed multiple times, e.g.: -DLLVM_TARGETS_TO_BUILD='AMDGPU;AArch64;ARM;BPF;Mips;PowerPC;RISCV;X86;RISCV;RISCV;RISCV' Furthermore get_clang_host_arch(), get_clang_target_arch() and get_clang_arch() now return riscv32 or riscv64, which is not a valid value for -DLLVM_TARGETS_TO_BUILD. The valid value is RISCV here. Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Allow riscv32 and riscv64 in COMPATIBLE_HOSTDavid Abdurachmanov2020-10-161-3/+0
| | | | | Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: enable for riscv{32,64}David Abdurachmanov2020-10-161-2/+0
| | | | | Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use python3 explicitly in scriptsKhem Raj2020-10-153-0/+125
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Define LLVM_HOST_TRIPLEKhem Raj2020-10-151-0/+1
| | | | | | This helps ensure that lldb-server gets correct tripets on target Signed-off-by: Khem Raj <raj.khem@gmail.com>
* CastXML: new recipeDaniel McGregor2020-10-081-0/+29
| | | | | | | | | CastXML is an AST analysis tool similar to and succeeding gccxml. It is used to generate an XML description of a C or C++ abstract syntax tree. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 11.0.0-rc6Khem Raj2020-10-081-1/+1
| | | | | | | | | * 176249bd673 (tag: llvmorg-11.0.0-rc6, upstream/release/11.x, origin/release/11.x) [CodeGen][TailDuplicator] Don't duplicate blocks with INLINEASM_BR * e84852be644 Add ability to turn off -fpch-instantiate-templates in clang-cl * 121babae56e [SelectionDAG] Don't remove unused negated constant immediately * f80e6d63423 ReleaseNotes: mention the machine outliner for ARM Signed-off-by: Khem Raj <raj.khem@gmail.com>
* packagegroup-core-buildessential: Add clang to rdependsKhem Raj2020-10-081-0/+3
| | | | | | | This helps in ensuring that clang shows up in rootfs when tools-sdk is selected via IMAGE_FEATURES and default TOOLCHAIN is set to be clang Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 11.x releaseKhem Raj2020-10-031-1/+1
| | | | | | | * 636ecdd1479 (upstream/release/11.x, origin/release/11.x) Fix indentation for PowerPC ReleaseNotes * b6efbd6b5f2 LLVM release notes: JIT changes Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Match Build targets for host and target clangKhem Raj2020-10-031-9/+5
| | | | | | | | | | | | | This is to help llvm-config detect settings correctly, without this mesa fails to build with llvm-pipe Fixes | File "/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/mesa/2_20.1.8-r0/recipe-sysroot-native/usr/lib/python3.8/site-packages/me sonbuild/dependencies/dev.py", line 284, in _set_new_link_args | mode = self.get_config_value(['--shared-mode'], 'link_args')[0] | IndexError: list index out of range Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Do not build all native targets for target as wellKhem Raj2020-10-021-2/+8
| | | | | | | | | | | | | | Just build BPF and AMDGPU (needed by mesa) when building target clang along with the target arch Pass -DNDEBUG -g0 to CXXFLAGS to strip debug info, current amount of debug info is is humungous ( even with -g1 ) some binaries are > 1G in size, it takes a long time to link them and also package them since we have a strip debug info step which takes forever This should speedup clang build significantly Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 11.0.0-rc5Khem Raj2020-10-011-1/+1
| | | | | | | | | | | | | | | * 60a25202a7d [APFloat] prevent NaN morphing into Inf on conversion (PR43907) * a3aee2678d0 [GlobalISel] Fix multiply with overflow intrinsics legalization generating invalid MIR. * dda0a1867cc [LLVM 11] Add SystemZ changes to release notes * eb83b551d3e Fix mysterious failure of SupportTests FileCheckTest.Binop * 29392497305 [LLVM-C] Turn a ShuffleVector Constant Into a Getter. * 9e367bd69b0 C API: functions to get mask of a ShuffleVector * 1e4b179bf82 [CodeGen] Do not call `emitGlobalConstantLargeInt` for constant requires 8 bytes to store * 184a13d362e AArch64/GlobalISel: Narrow stack passed argument access size * 81eb1c1fa75 AArch64/GlobalISel: Reduced patch for bug 47619 * e9adcbfad0d release notes: mention zig as an external project Signed-off-by: Khem Raj <raj.khem@gmail.com>
* classes/clang.bbclass: Remove -mmusl flag from toolchain.cmake.Leon Woestenberg2020-09-301-0/+1
| | | | | | | | | | The -mmusl flag is GCC specific, Clang supports MUSL differently. Prevents clang-11: error: unknown argument: '-mmusl' Verified it does not affect the GCC toolchain.cmake build. Signed-off-by: Leon Woestenberg <leon@sidebranch.com>
* make file command output in brief mode when searching for binaries to stripDaniel Wagener2020-09-251-2/+2
| | | | | | | otherwise we grep around in the absolute path to the binary which leads to false positives when e.g. user THelfer put their tree under ~ Signed-off-by: Daniel Wagener <daniel.wagener@kernelconcepts.de>
* clang: Create symlinks with cross compile tuplesKhem Raj2020-09-251-0/+3
| | | | | | | | | This helps in running ptests e.g. perl which encodes the compiler during cross-compile and it is <cross-compile>-clang and not simply `clang` since these tests are configured and compiled on build host and run on target, its requied to have same names on target as well. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* README: Fix URL links to actionsKhem Raj2020-09-231-4/+5
| | | | | | Modify layer descriptions Signed-off-by: Khem Raj <raj.khem@gmail.com>
* README: Update documentationKhem Raj2020-09-221-25/+36
| | | | | | Few knobs have changed and has not been yet reflected in README Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 11.0.0-rc3Khem Raj2020-09-221-1/+1
| | | | | | | | | | | * 0b56e5490dc clang-tools-extra: Drop doxygen link from index.rst * 1b80e741f51 llvm index.rst: Drop in-progress warning * 8aca41f39c2 (tag: llvmorg-11.0.0-rc3) [clang][docs] Fix documentation of -O * b513e1963f3 [CodeGen] Fixing inconsistent ABI mangling of vlaues in SelectionDAGBuilder * 6250d494453 PR47468: Fix findPHICopyInsertPoint, so that copies aren't incorrectly inserted after an INLINEASM_BR. * 410b0dc84bb [llvm] Add contains(KeyType) -> bool methods to SmallPtrSet Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 11.x release branchKhem Raj2020-09-221-1/+1
| | | | | | | | * b78e5de029c [SelectionDAG] Check any use of negation result before removal * 4fe4e35452e [Flang] Add GettingInvolved documentation page and sidebar. * 80e2fc1e6e6 [X86][ELF] Prefer lowering MC_GlobalAddress operands to .Lfoo$local for STV_DEFAULT only Signed-off-by: Khem Raj <raj.khem@gmail.com>
* github/workflows: Do not sed weston.ini for fbdev-backend.soKhem Raj2020-09-201-1/+0
| | | | | | This is already taken care in oe-core now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 11.x release branchKhem Raj2020-09-161-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Add support for github actionsKhem Raj2020-09-163-84/+80
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-environment-ext: Add bbappend to insert clang variables into envKhem Raj2020-09-133-18/+24
| | | | | | | | This helps defining CLANG* env vars in extensible SDK Fixes Issue #370 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 11.x branchKhem Raj2020-09-131-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: fix build failure, unrecogn. link option '-fuse-ld=gold' (#368)Winfried Dobbe2020-09-111-1/+1
| | | | | | | | | Command 'bitbake <myimage> -c populate_sdk' fails with clang-9: error: invalid linker name in argument '-fuse-ld=gold'. Using the lld linker fixes the problem. This commit resolves #368 . Signed-off-by: Winfried Dobbe <winfried.dobbe@xmsnet.nl>
* libffi: Do not use internal assembler on mips64Khem Raj2020-09-101-0/+1
| | | | | | | It uses GNU asm which clang's internal assembler gets confused with and can not interpret .eh_frame section permissions and type Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: override the PY_CMD_ESCAPEDMingli Yu2020-09-102-0/+47
| | | | | | | | | | | | | Override the PY_CMD_ESCAPED as the PY_CMD_ESCAPED is constructed by the full path of the python3. In some cases, the path is so long and result in the PY_CMD_ESCAPED exceeds 255 characters and comes below do_configure error: | CMake Error at src/python/CMakeLists.txt:18 (configure_file): | configure_file Problem configuring file | | CMake Error: Could not open file for write in copy operation /buildarea1/test/wr_build/wr1020_20200909_bcc/bcc_long_Kernel/auto-standalone_next/200827/lxbuilds/Intel-Snow-Ridge-NS_platform_up/intel-x86-64-standard-glibc-std/wrlinux/build/tmp-glibc/work/corei7-64-wrs-linux/bcc/0.15.0-r0/build/src/python/bcc--buildarea1-test-wr_build-wr1020_20200909_bcc-bcc_long_Kernel-auto-standalone_next-200827-lxbuilds-Intel-Snow-Ridge-NS_platform_up-intel-x86-64-standard-glibc-std-wrlinux-build-tmp-glibc-work-corei7-64-wrs-linux-bcc-0.15.0-r0-recipe-sysroot-native-usr-bin-python3-native-python3/bcc/version.py.tmp Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
* clang: Update to latest clang-11 branchKhem Raj2020-09-071-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest release/11.xKhem Raj2020-08-271-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer.conf: Drop zeus and dunfell from LAYERSERIES_COMPATKhem Raj2020-08-271-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer: Add 3.2 (gatesgarth) to LAYERSERIES_COMPATKhem Raj2020-08-271-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* gerbera: Dont force libc++ when using clangKhem Raj2020-08-211-2/+0
| | | | | | | It mixes libstdc++ and libc++ and results in libspdlog.a(spdlog.cpp.o): undefined reference to symbol '_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc@@GLIBCXX_3.4.21' Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Fix build on rv32 and use compiler-rt on rv32/rv64Khem Raj2020-08-212-2/+32
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 11.x release branchKhem Raj2020-08-2128-204/+235
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* README: Add intruction to build with pokyKhem Raj2020-08-161-1/+10
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bcc: trace: Fix failing to exit loopsHe Zhe2020-08-142-0/+47
| | | | | | | | | | | | | | | | | | | | | | /usr/share/bcc/tools/trace do_sys_open -M 1 PID TID COMM FUNC 3740 3740 irqbalance do_sys_open Exception ignored on calling ctypes callback function: <function PerfEventArray.open_perf_buffer.<locals>.raw_cb at 0x7f7c9efea280> Traceback (most recent call last): File "/usr/lib64/python3.8/site-packages/bcc/table.py", line 685, in raw_cb_ callback(cpu, data, size) File "/usr/share/bcc/tools/trace", line 630, in print_event exit() File "/usr/lib64/python3.8/sitebuiltins.py", line 26, in __call_ raise SystemExit(code) SystemExit: None Class Probe::print_event is used as a callback of a ctypes wrapper. With Yocto latest python v3.8.5, the exception raised by exit() is ignored and thus trace cannot exit. Use os._exit(0) instead. Signed-off-by: He Zhe <zhe.he@windriver.com>
* bcc: biosnoop: Fix failing to attach to trace_req_completionHe Zhe2020-08-142-0/+170
| | | | | | | | | | | | | | | | | | /usr/share/bcc/tools/biosnoop cannot attach kprobe, probe entry may not exist Traceback (most recent call last): File "/usr/share/bcc/tools/biosnoop", line 162, in <module> b.attach_kprobe(event="blk_account_io_completion", File "/usr/lib64/python3.8/site-packages/bcc/_init_.py", line 660, in attach_kprobe raise Exception("Failed to attach BPF program %s to kprobe %s" % Exception: Failed to attach BPF program b'trace_req_completion' to kprobe b'blk_account_io_completion' The kernel function "blk_account_io_completion" is not available anymore as attach point of Kprobe as of kernel version 5.8.0. Therefore, after discussions, we decided to use function "blk_account_io_done" instead in every kprobe attachment to "blk_account_io_completion". Signed-off-by: He Zhe <zhe.he@windriver.com>
* clang: set the default pigz threadMingli Yu2020-08-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | pigz, which stands for parallel implementation of gzip, is a fully functional replacement for gzip that exploits multiple processors and multiple cores to the hilt when compressing data. do_package uses pigz to compress data to speed up the time if there is pigz available on the build server. But for some big package such as clang, there comes below error during do_package. gzip: stdout: Cannot allocate memory tar: TOPDIR/sstate-cache/20/80/sstate:clang:cortexa57-wrs-linux:10.0.1:r0:cortexa57:3:20808f8a746b00ec9470a81057c8595d878cfe8c565cfbcbbaa3ea870528ee34_package.tgz.QF5dss8M: Wrote only 8192 of 10240 bytes tar: Child returned status 1 tar: Error is not recoverable: exiting now So set the default pigz thread for clang and the user also can customize the pigz thread such as PIGZ_pn-clang = "-p 3" for clang in local.conf to avoid eating so much memory. Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
* bpftrace: upgrade 0.9.4 -> 0.11.0Ovidiu Panait2020-08-062-1/+279
| | | | | | | | | | | | Uprev bpftrace to v0.11.0: * Add patch to fix compilation with LLVM 11 * Add cmake option CMAKE_ENABLE_EXPORTS=1 to prevent stripping, in order to fix the following error: root@qemux86-64:~# bpftrace /usr/share/bpftrace/tools/biosnoop.bt Attaching 4 probes... Could not resolve symbol: /proc/self/exe:BEGIN_trigger Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
* bcc: upgrade 0.13.0 -> 0.15.0Ovidiu Panait2020-08-064-224/+18
| | | | | | | | | | | | Uprev bcc to v0.15.0: * drop backports: https://github.com/iovisor/bcc/commit/68abb51ed067c4317b991cec0bbc2ea4e7f6ddab https://github.com/iovisor/bcc/commit/1c843e2c0f7570844a2c955436455132936eae47 * refresh patches Fixes: #348 Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
* drone.yml: Add error reporting related variables to local.confKhem Raj2020-08-041-0/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* 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>