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

Conversation

awelzel
Copy link
Contributor

@awelzel awelzel commented Jun 11, 2024

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.

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 awelzel merged commit 2df3b8e into master Jun 11, 2024
1 check passed
@awelzel awelzel deleted the topic/awelzel/fprofile-update-atomic branch June 11, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant