| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
Drop -lz patch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
CMAKE_INSTALL_PREFIX is implicitly set by the build system when inheriting
cmake, so there is no need to set it in the recipe.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
|
|
|
|
| |
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
|
|
|
|
| |
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
|
|
|
|
|
|
| |
Use python3-native rather than the version provided by the build host.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
|
|
|
|
|
|
|
| |
Commit ab686950af8d was integrated to fix this particular issue, so this patch
is not needed anymore.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
|
|
|
|
|
|
|
| |
Use sed to replace all occurences of /usr/bin/env python with the python3
variant instead of maintaining a patch that does this.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
It does not build with clang-10/musl yet
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
it depends on bcc which only supports these arches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
Since Clang has been upgraded to 10.0.0, it leads to BCC building
failure which is caused by LLVM functions definition mismatching.
This patch upgrades BCC to v0.13.0 so can support Clang 10.0.0.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
|
|
|
|
|
|
|
| |
LLDB_DISABLE_LIBEDIT was renamed to LLDB_ENABLE_LIBEDIT in
62456e579eebe012e5a6ebcf9960aef9d7babf87.
Signed-off-by: Philip Lorenz <philip@bithub.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bpftrace is a high-level tracing language for eBPF, its language is
inspired by awk and C, and predecessor tracers such as DTrace and
SystemTap. bpftrace was created by Alastair Robertson. bpftrace
language supports the usages for one-liner and script, it's very
powerful for tracing and profiling. bpftrace internal mechanism
depends on BCC and LLVM/Clang, so the building dependency has contains
these modules.
Add recipe for bpftrace version 0.9.4. This patch also contains a
patch to change cmake file so can look for libraries and headers which
are installed in target sysroot-recipe path for cross compilation.
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Co-developed-by: Leo Yan <leo.yan@linaro.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BPF Compiler Collection (BCC) is a toolkit for creating efficient kernel
tracing and manipulation programs, and includes versatile tools and
examples which based on eBPF. This tool is very widely used on server
section, but we also can use it for embedded system, e.g. use its
function trace utilities (trace.py and argdist.py) to trace kernel
function parameters and return values.
This patch adds recipe for BCC version 0.12.0. This patch also contains
a patch to change cmake file so can look for libraries and headers which
are installed in target sysroot-recipe path for cross compilation.
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Co-developed-by: Leo Yan <leo.yan@linaro.org>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, when a package (i.e. bcc [https://github.com/iovisor/bcc.git])
that depends on LLVM/Clang tries to run cmake find_package() during
do_configure, it will fail with a similar error:
| The imported target "llvm-tblgen" references the file
| ".../recipe-sysroot/usr/bin/llvm-tblgen"
|
| 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
| ".../recipe-sysroot/usr/lib/cmake/LLVMExports.cmake"
| but not all the files it references.
This is due to the fact that currently the exported cmake scripts look for
target binaries in sysroot. Work around this by not exporting the target
binaries in Exports-* cmake files.
Upstream-Status: Innapropriate [oe-specific]
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
|
|
|
|
|
|
|
|
|
|
| |
An earlier commit added a suffix table to determine the libdir suffix
for multilib targets. This table failed at least in the lib32 case for
x86, where the suffix should have been '', but was instead '32'.
Use the same method as the cmake bbclass instead.
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
|
|
|
|
|
|
| |
py2 is gone from oe-core
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
LLVM 9+ provides the crt startup components crtbegin.o and crtend.o,
enabled by default. Make using these with the clang runtime optional.
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
|
|
|
|
|
|
|
|
|
| |
We need to muck with the default packaging a bit to prevent libdir/clang
subdirectories from being packaged, and instead use nonarch_libdir.
Otherwise the packager complains about directories being beneath
a symlink.
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Allow more of the cmake variables coming from the OE environment
through, otherwise the release C flags and CXX flags get reset to
LLVM's default, which greatly extend build times.
Also switch to using cmake.bbclass's do_compile and do_install
commands. There's no need to call ninja directly anymore.
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
|
|
|
|
|
|
|
|
| |
This allows the cross compiler to always find the runtime libraries
in the same place, no matter the value of libdir. This is required
for multilib to work correctly.
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
|
|
|
|
|
|
|
| |
Use the sysroot for a hint as to where to find the dynamic linker. This
allows multilib distros to use the appropriate runtime linker path.
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
|
|
|
|
|
|
| |
Add libgcc as defined by $CC to link of libc++.
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
|