Project

General

Profile

Actions

Bug #5100

closed

Undefined reference to '__atomic_fetch_add_8' on Raspbian Buster

Added by Eric Newberry about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Build
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

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

Actions #1

Updated by Eric Newberry about 4 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Eric Newberry about 4 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100
Actions #3

Updated by Davide Pesavento about 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
Actions #4

Updated by Eric Newberry about 4 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF