| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Modify layer descriptions
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
Few knobs have changed and has not been yet reflected in README
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
| |
This is already taken care in oe-core now
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
This helps defining CLANG* env vars in extensible SDK
Fixes Issue #370
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
/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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
/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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
This ensures right C runtime is used as desired by user
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
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 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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
This patch is alrady upstream for 1.32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
Only when CLANGSDK = 1
Fixes Issue #338
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
mark it gcc only for now
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
This should help notification and submitters to do right things for a
pull request
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
Update version number accordingly
Signed-off-by: Khem Raj <raj.khem@gmail.com>
s
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|