Bug #5100
closedUndefined reference to '__atomic_fetch_add_8' on Raspbian Buster
100%
Description
On Raspbian Buster (Raspberry Pi 4 Model B, 4GB RAM, GCC 8.3.0, Boost 1.67.0, aarch64 CPU but armhf OS), compilation of the latest git head version of ndn-cxx fails with the following linker error when linking ndnsec:
./libndn-cxx.so: error: undefined reference to '__atomic_fetch_add_8'
I am unable to reproduce this issue when compiling the 0.7.0 releases on the same system as above.
It appears this issue may be caused by the lack of atomic compare-and-swap operations on some platforms (https://github.com/nodejs/node/issues/27377) and can be fixed by linking against libatomic (-latomic
). I have verified that adding this results in successful compilation on the above-mentioned system.
This issue has been reported on the nfd-dev mailing list: https://www.lists.cs.ucla.edu/pipermail/nfd-dev/2020-April/004064.html
Updated by Eric Newberry over 4 years ago
- Status changed from New to In Progress
Updated by Eric Newberry over 4 years ago
- Status changed from In Progress to Code review
- % Done changed from 0 to 100
Updated by Davide Pesavento over 4 years ago
- Tracker changed from Task to Bug
- Subject changed from Can't compile on Raspbian Buster due to "__atomic_fetch_add_8" linker error to Undefined reference to '__atomic_fetch_add_8' on Raspbian Buster
Updated by Eric Newberry over 4 years ago
- Status changed from Code review to Closed