[
https://issues.apache.org/jira/browse/MINIFICPP-1184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17064718#comment-17064718
]
dan rey commented on MINIFICPP-1184:
------------------------------------
Hi,
So I finally got it to complile after editing a heap of the link.txt files. I
think I changed about 30 or 40!!
I narrowed the problem down a bit further. It looks like the problem is with
this part of the list.text
{code:java}
libminifi/libcore-minifi.a -ldl{code}
If I include -latomic after that file it compliles and moves onto the next one
{code:java}
libminifi/libcore-minifi.a -ldl -latomic{code}
Hope that helps.
> 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
> Priority: Blocker
>
> 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)