-
Notifications
You must be signed in to change notification settings - Fork 23
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
Build error "libatomic not found" on Ubuntu LTS release (24.04) #132
Comments
To clarify, this error does not happen when running libmultiprocess cmake configuration, but when running another cmake configuration that that calls |
I tried to reproduce this and couldn't. Then I realized I accidentally downloaded ubuntu 22.04 not 24.04. Good to know that this issue does not seem to happen with 22.04 though! /etc/os-release is VERSION="22.04.5 LTS (Jammy Jellyfish)" lxc launch ubuntu:jammy ubu
lxc image list images: | grep -i ubuntu
lxc exec ubu -- /bin/bash
lxc exec ubu -- adduser --shell /bin/bash --ingroup sudo ubu
lxc exec ubu -- su - ubu
git clone https://github.com/bitcoin/bitcoin
git clone https://github.com/chaincodelabs/libmultiprocess
sudo apt update
sudo apt-get install build-essential cmake pkg-config python3 libevent-dev libboost-dev libsqlite3-dev libcapnp-dev capnproto cmake-curses-gui
cd ~/libmultiprocess
mkdir build
cd build
cmake ..
make
make check # Optionally build and run tests
sudo make install
cd ~/bitcoin
cmake -B build
ccmake build # toggle WITH_MULTIPROCESS
make -j12 -C build bitcoin-node bitcoin-cli
build/src/bitcoin-node -ipcbind=unix:cool -regtes
build/src/bitcoin-cli -regtest echoipc hi |
This is an extension of the workaround implemented previously in chaincodelabs#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 chaincodelabs#132
Was able to reproduce this problem with steps above just replacing jammy with noble and using ubuntu VERSION="24.04.1 LTS (Noble Numbat)" Confirmed that applying #133 fixes it |
Originally posted by @fanquake in bitcoin/bitcoin#30975 (comment)
Basic usage of building libmultiprocess yourself, on the current Ubuntu LTS release (24.04), for use with Core, doesn't currently work:
Having to work around this was also mentioned here: bitcoin/bitcoin#10102 (comment).
We can likely work around this ourselves, but something this basic should be fixed before requiring developers to use this library. Along with reporting & upstreaming fixes to what are now new (hard) dependencies for us.
The text was updated successfully, but these errors were encountered: