| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
| |
Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
This helps ensure that lldb-server gets correct tripets on target
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
| |
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>
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
Update version number accordingly
Signed-off-by: Khem Raj <raj.khem@gmail.com>
s
|
|
|
|
|
|
|
| |
Needs libffi and libelf as dependencies, and is available only for
aarch64/x86_64/ppc64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Needed for rpm-native and friends
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
This depends on bcc which has also been moved to
dynamic-layers/openembedded-layer.
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
|
|
|
|
|
|
|
| |
Move bcc to dynamic-layers/openembedded-layer since it depends on
luajit.
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
Add missing rdeps on libelf and libffi
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove unneeded dependencies
* Remove cross-compilation cmake patch
Commit ab68695 was integrated to fix this particular issue, so this patch
is not needed anymore.
* Remove redundant OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM
* Remove extra step for man packaging
GNUInstallDirs support was added in the following commit:
https://github.com/iovisor/bpftrace/commit/2f38001311e36e7717daa143e09b165bbf915ac6
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
|
|
|
|
|
|
|
|
|
| |
This revision contains the fixes needed to build bpftrace with llvm10 and
ninja:
https://github.com/iovisor/bpftrace/commit/f1fc519044ec5adf97a5f362a167881671066a6b
https://github.com/iovisor/bpftrace/commit/6f81111cb4ed6dccb3cd84dcbfe67459dd267acd
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
|