Skip to content
Snippets Groups Projects
  1. Oct 26, 2024
  2. Oct 25, 2024
  3. Oct 24, 2024
  4. Oct 18, 2024
  5. Oct 16, 2024
  6. Oct 12, 2024
    • Hongxu Jia's avatar
      llvm-project-source.inc: fix racing on building... · 7cf1f0e3
      Hongxu Jia authored
      llvm-project-source.inc: fix racing on building lib32-llvm-project-source-19.1.0 and llvm-project-source-19.1.0
      
      While enabling multilib, build lib32-llvm-project-source-19.1.0 and
      llvm-project-source-19.1.0 at the same time:
      
          $ MACHINE = "qemux86-64"
          $ require conf/multilib.conf
          $ MULTILIBS = "multilib:lib32"
          $ DEFAULTTUNE:virtclass-multilib-lib32 = "x86"
          $ bitbake lib32-llvm-project-source-19.1.0 llvm-project-source-19.1.0
          ...
          $ cat tmp/work-shared/llvm-project-source-19.1.0-r0/temp/log.task_order
          20241012-070604.819630 do_recipe_qa (2728706): log.do_recipe_qa.2728706
          20241012-070604.883194 do_recipe_qa (2728707): log.do_recipe_qa.2728707
          20241012-070605.037448 do_fetch (2728779): log.do_fetch.2728779
          20241012-070605.165280 do_fetch (2728848): log.do_fetch.2728848
          20241012-071030.798104 do_unpack (2733554): log.do_unpack.2733554
          20241012-071030.864536 do_unpack (2733559): log.do_unpack.2733559
      
      There are two tasks for do_fetch, do_unpack and others, so there are race issues.
      
      Both of them have the same hardcode 'llvm-project-source-' prefix in ${WORKDIR} and
      ${S}, explicitly disable lib32-llvm-project-source-19.1.0 for multilib
      
      Set llvm-project-source as BPN of llvm-project-source-19.1.0
      
      Signed-off-by: default avatarHongxu Jia <hongxu.jia@windriver.com>
      7cf1f0e3
  7. Oct 11, 2024
  8. Oct 10, 2024
  9. Oct 08, 2024
  10. Sep 30, 2024
  11. Sep 26, 2024
  12. Sep 25, 2024
  13. Sep 19, 2024
  14. Sep 18, 2024
  15. Sep 04, 2024
    • Martin Jansa's avatar
      bpftrace: fix buildpaths QA issues · 814d2090
      Martin Jansa authored
      
      * Avoid line statements from bison to fix:
        WARNING: bpftrace-0.21.2+git-r0 do_package_qa: QA Issue: File /usr/src/debug/bpftrace/0.21.2+git/parser.tab.cc in package bpftrace-src contains reference to TMPDIR [buildpaths]
        WARNING: bpftrace-0.21.2+git-r0 do_package_qa: QA Issue: File /usr/src/debug/bpftrace/0.21.2+git/location.hh in package bpftrace-src contains reference to TMPDIR [buildpaths]
        WARNING: bpftrace-0.21.2+git-r0 do_package_qa: QA Issue: File /usr/src/debug/bpftrace/0.21.2+git/parser.tab.hh in package bpftrace-src contains reference to TMPDIR [buildpaths]
        WARNING: bpftrace-0.21.2+git-r0 do_package_qa: QA Issue: File /usr/src/debug/bpftrace/0.21.2+git/lex.yy.cc in package bpftrace-src contains reference to TMPDIR [buildpaths]
      
      * there are still few more buildpaths issues with ptest enabled:
        WARNING: bpftrace-0.21.2+git-r0 do_package_qa: QA Issue: File /usr/src/debug/bpftrace/0.21.2+git/tests/data/dwarf_data.h in package bpftrace-src contains reference to TMPDIR [buildpaths]
        WARNING: bpftrace-0.21.2+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/.debug/bpftrace_test in package bpftrace-dbg contains reference to TMPDIR [buildpaths]
        WARNING: bpftrace-0.21.2+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/bpftrace_test in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
        WARNING: bpftrace-0.21.2+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/testlibs/cmake_install.cmake in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
        WARNING: bpftrace-0.21.2+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/testlibs/CTestTestfile.cmake in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
        WARNING: bpftrace-0.21.2+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/testprogs/cmake_install.cmake in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
        WARNING: bpftrace-0.21.2+git-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/testprogs/CTestTestfile.cmake in package bpftrace-ptest contains reference to TMPDIR [buildpaths]
      
      * lower buildpaths from ERROR_QA to WARN_QA when ptest is enabled
        fixing .cmake files might be simple, but the embedded path to dwarf_data.h
        in bpftrace_test will be more complicated, so will leave it to
        someone actually using bpftrace (and its ptest).
      
        bpftrace/0.21.2+git/package $ grep -R styhead .
        ./usr/lib/bpftrace/ptest/tests/testlibs/cmake_install.cmake:# Install script for directory: ${WORKDIR}/git/tests/testlibs
        ./usr/lib/bpftrace/ptest/tests/testlibs/cmake_install.cmake:  set(CMAKE_OBJDUMP "${WORKDIR}/recipe-sysroot-native/usr/bin/aarch64-webos-linux/aarch64-webos-linux-objdump")
        ./usr/lib/bpftrace/ptest/tests/testlibs/CTestTestfile.cmake:# Source directory: ${WORKDIR}/git/tests/testlibs
        ./usr/lib/bpftrace/ptest/tests/testlibs/CTestTestfile.cmake:# Build directory: ${WORKDIR}/build/tests/testlibs
        grep: ./usr/lib/bpftrace/ptest/tests/.debug/bpftrace_test: binary file matches
        grep: ./usr/lib/bpftrace/ptest/tests/bpftrace_test: binary file matches
        ./usr/lib/bpftrace/ptest/tests/testprogs/cmake_install.cmake:# Install script for directory: ${WORKDIR}/git/tests/testprogs
        ./usr/lib/bpftrace/ptest/tests/testprogs/cmake_install.cmake:  set(CMAKE_OBJDUMP "${WORKDIR}/recipe-sysroot-native/usr/bin/aarch64-webos-linux/aarch64-webos-linux-objdump")
        ./usr/lib/bpftrace/ptest/tests/testprogs/CTestTestfile.cmake:# Source directory: ${WORKDIR}/git/tests/testprogs
        ./usr/lib/bpftrace/ptest/tests/testprogs/CTestTestfile.cmake:# Build directory: ${WORKDIR}/build/tests/testprogs
        ./usr/src/debug/bpftrace/0.21.2+git/tests/data/dwarf_data.h:constexpr inline const char *dwarf_data_cxx_path = "${WORKDIR}/build/tests/data/data_source_cxx";
      
      Signed-off-by: default avatarMartin Jansa <martin.jansa@gmail.com>
      814d2090
    • Martin Jansa's avatar
      bcc: lower buildpaths from ERROR_QA to WARN_QA when ptest is enabled · 6523bcae
      Martin Jansa authored
      WARNING: bcc-0.30.0+git-r0 do_package_qa: QA Issue: File /usr/lib/bcc/ptest/tests/cc/test_libbcc_no_libbpf in package bcc-ptest contains reference to TMPDIR [buildpaths]
      
      This one is difficult to resolve, because the tests use CMAKE_CURRENT_BINARY_DIR directly in .cc e.g.:
      https://github.com/iovisor/bcc/commit/7271bfc946a19413761be2e3c60c48bf72c5eea1#diff-233a0bfa490f3d7466c49935b64c86dd93956bbc0461f5af703b344cf6601461
      
      
      we would probably need to use separate variable for "runtime" path for test assets from the standard CMAKE_CURRENT_BINARY_DIR variable or use relative
      path from the test binary
      
      Signed-off-by: default avatarMartin Jansa <martin.jansa@gmail.com>
      6523bcae
    • Martin Jansa's avatar
      bpftrace: move from dynamic-layers/openembedded-layer to dynamic-layers/meta-python · acb53c78
      Martin Jansa authored
      * bpftrace itself doesn't depend on meta-python, but
        bpftrace from dynamic-layers/openembedded-layer depends on bcc from dynamic-layers/meta-python
        so better to move it there. This way both bcc and bpftrace are either both available
        at the same time or neither of them.
      
      * fixes https://github.com/kraj/meta-clang/issues/985
      
      
      
        ERROR: Nothing PROVIDES 'bcc' (but /mnt/secondary/poky/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.20.1.bb DEPENDS on or otherwise requires it). Close matches:
          bc
          byacc
        NOTE: Runtime target 'bpftrace' is unbuildable, removing...
        Missing or unbuildable dependency chain was: ['bpftrace', 'bcc']
        ERROR: Required build target 'core-image-minimal' has no buildable providers.
        Missing or unbuildable dependency chain was: ['core-image-minimal', 'bpftrace', 'bcc']
      
        when only openembedded-layer (meta-oe) is in BBLAYERS and meta-python isn't.
      
      Signed-off-by: default avatarMartin Jansa <martin.jansa@gmail.com>
      acb53c78
  16. Sep 03, 2024
  17. Aug 31, 2024
Loading