From 84fedfcd3432c5c2a5c75452e825cb7c657a835d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 19 Oct 2022 11:05:55 -0700 Subject: bpftrace: Disable ptests on riscv64 Clang crashes compiling some tests so until its fixed in riscv64 backend we have to disable it for atleast rv64 Signed-off-by: Khem Raj --- .../recipes-devtools/bpftrace/bpftrace_0.16.0.bb | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'dynamic-layers') diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.16.0.bb b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.16.0.bb index 556722c..0c0ea2a 100644 --- a/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.16.0.bb +++ b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.16.0.bb @@ -13,7 +13,6 @@ DEPENDS += "bison-native \ libbpf \ " -DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'gtest xxd-native', '', d)}" PV .= "+git${SRCREV}" RDEPENDS:${PN} += "bash python3 xz" RDEPENDS:${PN}-ptest += "bash" @@ -27,11 +26,20 @@ S = "${WORKDIR}/git" inherit cmake ptest +PACKAGECONFIG ?= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" + +# Clang-15.x crashes compiling some usdt tests +# see https://github.com/llvm/llvm-project/issues/58477 +PACKAGECONFIG:remove:riscv64 = "tests" + +PACKAGECONFIG[tests] = "-DBUILD_TESTING=ON,-DBUILD_TESTING=OFF,gtest xxd-native" + do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - install -m 755 ${B}/tests/bpftrace_test ${D}${PTEST_PATH}/tests - cp -rf ${B}/tests/runtime* ${D}${PTEST_PATH}/tests - cp -rf ${B}/tests/test* ${D}${PTEST_PATH}/tests + if [ -e ${B}/tests/bpftrace_test ]; then + install -Dm 755 ${B}/tests/bpftrace_test ${D}${PTEST_PATH}/tests/bpftrace_test + cp -rf ${B}/tests/runtime* ${D}${PTEST_PATH}/tests + cp -rf ${B}/tests/test* ${D}${PTEST_PATH}/tests + fi } def llvm_major_version(d): @@ -46,7 +54,6 @@ EXTRA_OECMAKE = " \ -DLLVM_REQUESTED_VERSION=${LLVM_MAJOR_VERSION} \ -DENABLE_MAN=OFF \ " -EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON', '-DBUILD_TESTING=OFF', d)}" COMPATIBLE_HOST = "(x86_64.*|aarch64.*|powerpc64.*|riscv64.*)-linux" COMPATIBLE_HOST:libc-musl = "null" -- cgit v1.2.3-54-g00ecf