| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Needs libffi and libelf as dependencies, and is available only for
aarch64/x86_64/ppc64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
It can build with clang now a days
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
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 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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
This ensures that clangsdk does not inserts itself unless user asks for
Fixes #234
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
it seems to not use unified syntax
Signed-off-by: Khem Raj <raj.khem@gmail.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>
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
This option can turn Valid options into warnings and cause unintended
behaviour
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
.S files use GNU syntax which does not work with integrated asm
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
It causes bunch of textrels, which need to be fixed
ERROR: babeltrace2-2.0.1-r0 do_package_qa: QA Issue: babeltrace2-ptest: ELF binary /usr/lib/babeltrace2/ptest/tests/lib/test-plugin-plugins/plugin-minimal.so has relocations in .text
babeltrace2-ptest: ELF binary /usr/lib/babeltrace2/ptest/tests/lib/test-plugin-plugins/plugin-sfs.so has relocations in .text [textrel]
ERROR: babeltrace2-2.0.1-r0 do_package_qa: QA Issue: babeltrace2: ELF binary /usr/lib/babeltrace2/plugins/babeltrace-plugin-ctf.so has relocations in .text
babeltrace2: ELF binary /usr/lib/babeltrace2/plugins/babeltrace-plugin-utils.so has relocations in .text
babeltrace2: ELF binary /usr/lib/babeltrace2/plugins/babeltrace-plugin-text.so has relocations in .text [textrel]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|