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

Include libatomic again to allow protobuf to resolve #11917

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

MrZammler
Copy link
Contributor

Summary

This PR adds the -latomic reference to the linker after the protobuf libraries, so that libprotobuf.a can resolve __atomic functions if needed.

Linking is ok without this PR if ml is enabled. If it is not (--disable-ml), at the linking stage the error arena.cc:(.text+0xab4): undefined reference to '__atomic_fetch_add_8' is produced by the linker for libprotobuf.a

Component Name

Build

Test Plan

This was tested on a clean Raspbian 11 (bullseye), as a response to #11915.

On a clean Raspbian installation, on a raspberry, try to compile master, or a latest stable release.
Specify --disable-ml. Link might fail. Using the changes in this PR, linking should succeed.

@github-actions github-actions bot added the area/build Build system (autotools and cmake). label Dec 20, 2021
@MrZammler
Copy link
Contributor Author

Thanks guys!

@MrZammler MrZammler merged commit fcdac8f into netdata:master Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build system (autotools and cmake).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants