Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile coverage builds with -fprofile-update=atomic #112

Merged
merged 1 commit into from
Jun 11, 2024

Commits on Jun 11, 2024

  1. Compile coverage builds with -fprofile-update=atomic

    Running lcov on Ubuntu 24.04 on a coverage enabled build by hand
    produces the following error on Ubuntu 24.04:
    
        lcov --no-external --capture --directory . --output-file coverage.info
    
        Processing ./build/auxil/broker/caf/libcaf_core/CMakeFiles/libcaf_core_obj.dir/src/actor_system.cpp.gcda
        geninfo: ERROR: Unexpected negative count '-1' for /zeek/auxil/broker/caf/libcaf_core/src/actor_system.cpp:503.
            Perhaps you need to compile with '-fprofile-update=atomic
            (use "geninfo --ignore-errors negative ..." to bypass this error)
    
    Compile with -fprofile-update=atomic for coverage enabled builds.
    awelzel committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    f07d6ca View commit details
    Browse the repository at this point in the history