Skip to content

Conversation

@ryanofsky
Copy link
Collaborator

Add workaround to prevent "libatomic not found" when building on debian against debian capnproto package which installs a buggy CapnProtoConfig.cmake file. The bug was introduced as part of debian's attempt to fix a different issue: capnproto/capnproto#1448 and their fix works for autoconf projects but not cmake projects like libmultiprocess.

Fixes #68

Add workaround to prevent "libatomic not found" when building on debian against
debian capnproto package which installs a buggy CapnProtoConfig.cmake file. The
bug was introduced as part of debian's attempt to fix a different issue:
capnproto/capnproto#1448 and their fix works for
autoconf projects but not cmake projects like libmultiprocess.

Fixes bitcoin-core#68
@ryanofsky ryanofsky merged commit abe254b into bitcoin-core:master Oct 16, 2024
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Oct 16, 2024
Add recent changes and fixes for shutdown bugs.

bitcoin-core/libmultiprocess#111: doc: Add internal design section
bitcoin-core/libmultiprocess#113: Add missing include to util.h
bitcoin-core/libmultiprocess#116: shutdown bugfix: destroy RPC system before running cleanup callbacks
bitcoin-core/libmultiprocess#118: shutdown bugfix: Prevent segfault in server if connection is broken during long function call
bitcoin-core/libmultiprocess#119: cmake: avoid libatomic not found error on debian
fanquake added a commit to bitcoin/bitcoin that referenced this pull request Oct 21, 2024
90b4055 Update libmultiprocess library (Ryan Ofsky)

Pull request description:

  Add recent changes and fixes for shutdown bugs.

  bitcoin-core/libmultiprocess#111: doc: Add internal design section
  bitcoin-core/libmultiprocess#113: Add missing include to util.h
  bitcoin-core/libmultiprocess#116: shutdown bugfix: destroy RPC system before running cleanup callbacks
  bitcoin-core/libmultiprocess#118: shutdown bugfix: Prevent segfault in server if connection is broken during long function call
  bitcoin-core/libmultiprocess#119: cmake: avoid libatomic not found error on debian

ACKs for top commit:
  fanquake:
    ACK 90b4055
  TheCharlatan:
    ACK 90b4055

Tree-SHA512: 2c256667f0c16e00bb5a81b2c6d3db103fae211844e32b111bbed673ab2612ad1478e6b3ecd3a867a4e425cfa6e778b67388343626597a8fac800a15cea5e53a
Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Post-merge ACK 296c380.

janus pushed a commit to BitgesellOfficial/bitgesell that referenced this pull request Jan 19, 2025
Add recent changes and fixes for shutdown bugs.

bitcoin-core/libmultiprocess#111: doc: Add internal design section
bitcoin-core/libmultiprocess#113: Add missing include to util.h
bitcoin-core/libmultiprocess#116: shutdown bugfix: destroy RPC system before running cleanup callbacks
bitcoin-core/libmultiprocess#118: shutdown bugfix: Prevent segfault in server if connection is broken during long function call
bitcoin-core/libmultiprocess#119: cmake: avoid libatomic not found error on debian
ryanofsky added a commit to ryanofsky/libmultiprocess that referenced this pull request Jan 23, 2025
This is an extension of the workaround implemented previously in bitcoin-core#119. That
workaround let the libmultiprocess cmake build work with the debian capnproto
package.

This change extends the workaround to apply to downstream cmake builds that
call find_package(Libmultiprocess), like Bitcoin Core.

Fixes bitcoin-core#132
ryanofsky added a commit that referenced this pull request Jan 27, 2025
67afc23 Fix debian "libatomic not found" error in downstream builds (Ryan Ofsky)

Pull request description:

  This is an extension of the workaround implemented previously in #119. That workaround let the libmultiprocess cmake build work with the debian capnproto package.

  This change extends the workaround to apply to downstream cmake builds that call find_package(Libmultiprocess), like Bitcoin Core.

  Fixes #132

ACKs for top commit:
  hebasto:
    ACK 67afc23, tested on Ubuntu 24.04.

Tree-SHA512: 9b02f9f4d9aea3ac241641fe857dd91e110252c93351ed2fdd0bcd48f3dbfea3b3d5476774a2d4b89a70c955a7c7fc69eaba6f0a41e853e2eb03d3dae6ad3c8e
@bitcoin-core bitcoin-core locked and limited conversation to collaborators Oct 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cmake .. Returns error libatomic not found

2 participants