[
https://issues.apache.org/jira/browse/MINIFICPP-1184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17081754#comment-17081754
]
Willie Engelbrecht commented on MINIFICPP-1184:
-----------------------------------------------
Albeit not the correct way to fix it, but this command makes it easy to update
all those link.txt files with -latomic:
{code:java}
for i in `find -iname 'link.txt'`; do sed -i 's/.a -ldl/.a -ldl -latomic/g' $i;
done;{code}
> Cannot compile on Raspberry Pi (Raspbian bullseye)
> --------------------------------------------------
>
> Key: MINIFICPP-1184
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1184
> Project: Apache NiFi MiNiFi C++
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: Raspberry Pi 4
> Reporter: dan rey
> Assignee: Dániel Bakai
> Priority: Major
>
> I am unable to compile this on a Raspberry Pi running Raspbian GNU/Linux
> bullseye.
> I continually get an error about linking.
> [ 59%] Linking CXX executable minifi
> /usr/bin/ld: ../libminifi/libcore-minifi.a(Connection.cpp.o): in function
> `std::__atomic_base<unsigned long long>::load(std::memory_order) const':
> /usr/include/c++/9/bits/atomic_base.h:419: undefined reference to
> `__atomic_load_8'
> /usr/bin/ld: /usr/include/c++/9/bits/atomic_base.h:419: undefined reference
> to `__atomic_load_8'
--
This message was sent by Atlassian Jira
(v8.3.4#803005)