build: error when building for test coverage #32571

issue brunoerg openend this issue on May 20, 2025
  1. brunoerg commented at 4:39 pm on May 20, 2025: contributor

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    When trying to compile it for test coverage, I’m getting the following error:

    0genhtml: ERROR: cannot read /Users/brunogarcia/projects/bitcoin-core-dev/build_cov/src/CMakeFiles/bitcoin-cli.dir/span.h
    1Processing file CMakeFiles/bitcoin-cli.dir/span.h
    2CMake Error at build_cov/Coverage.cmake:46 (execute_process):
    3  execute_process failed command indexes:
    4
    5    1: "Child return code: 2"
    

    Expected behaviour

    Successful build for test coverage

    Steps to reproduce

    0cmake -B build_cov -DCMAKE_BUILD_TYPE=Coverage 
    1cmake --build build_cov
    2cmake -P build_cov/Coverage.cmake
    

    Same from developer-notes.md

    Relevant log output

     0...
     1Finished .info-file creation
     2Deleting all .da files in src and subdirectories
     3Done.
     4Combining tracefiles.
     5Reading tracefile test_bitcoin_filtered.info
     6Writing data to test_bitcoin_filtered.info
     7Summary coverage rate:
     8  lines......: 63.7% (98724 of 155052 lines)
     9  functions..: 61.0% (107273 of 175800 functions)
    10  branches...: no data found
    11Combining tracefiles.
    12Reading tracefile baseline_filtered.info
    13Reading tracefile test_bitcoin_filtered.info
    14Writing data to test_bitcoin_coverage.info
    15Summary coverage rate:
    16  lines......: 61.3% (98724 of 160966 lines)
    17  functions..: 59.5% (107273 of 180241 functions)
    18  branches...: no data found
    19Reading data file test_bitcoin_coverage.info
    20Found 2062 entries.
    21Found common filename prefix "/Users/brunogarcia/projects/bitcoin-core-dev/build_cov/src"
    22Writing .css and .png files.
    23Generating output.
    24genhtml: ERROR: cannot read /Users/brunogarcia/projects/bitcoin-core-dev/build_cov/src/CMakeFiles/bitcoin-cli.dir/span.h
    25Processing file CMakeFiles/bitcoin-cli.dir/span.h
    26CMake Error at build_cov/Coverage.cmake:46 (execute_process):
    27  execute_process failed command indexes:
    28
    29    1: "Child return code: 2"
    

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    master@0f9baba0fb6e55612f0b4b8d36f6deebe35b8a5f

    Operating system and version

    MacOS Sonoma 14.3

    Machine specifications

    0Homebrew clang version 18.1.8
    1Target: arm64-apple-darwin23.3.0
    2Thread model: posix
    3InstalledDir: /opt/homebrew/opt/llvm@18/bin
    
  2. hebasto commented at 4:55 pm on May 20, 2025: member
  3. brunoerg commented at 4:59 pm on May 20, 2025: contributor
    It worked, sorry, missed that. Thank you.
  4. brunoerg closed this on May 20, 2025


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-05-25 18:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me