[ 
https://issues.apache.org/jira/browse/MINIFICPP-1184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17064454#comment-17064454
 ] 

dan rey edited comment on MINIFICPP-1184 at 3/23/20, 12:23 AM:
---------------------------------------------------------------

Hi, 

I tried that after finding it on Stack Overflow but it still wont compile. I 
will try again. After i added that line I  can see in the link.txt files 
generated by cmake that it has added -latomic to the top line. Here is one of 
the broken files

MakeFiles/FileUtilsTests.dir/link.txt
{code:java}
/usr/bin/c++ std=c+11 -DOPENSSL_SUPPORT -Os -DNDEBUG -latomic -rdynamic 
CMakeFiles/FileUtilsTests.dir/libminifi/test/unit/FileUtilsTests.cpp.o -o 
FileUtilsTests -ldl libtest_base.a -lpthread libminifi/libcore-minifi.a 
thirdparty/yaml-cpp-install/lib/libyaml-cpp.a -Wl,whole-archive 
libminifi/libminifi.a -Wl,-no-whole-archive libcatch_main.a 
libminifi/libcore-minifi.a -ldl thirdparty/yaml-cpp-install/lib/libyaml-cpp.a 
/usr/lib/arm-linux-gnueabihf/libz.so 
thirdparty/ossp-uuid-install/lib/libuuid+.a 
thirdparty/libressl-install/lib/libssl.a 
thirdparty/libressl-install/lib/libcrypto.a{code}
~

If I modify the link.txt file and add -latomic in to the file path as shown 
below it will compile that file but then it just errors on the next file. I am 
slowly working my way through each file but it is taking a long time.
{code:java}
/usr/bin/c++ std=c+11 -DOPENSSL_SUPPORT -Os -DNDEBUG -latomic -rdynamic 
CMakeFiles/FileUtilsTests.dir/libminifi/test/unit/FileUtilsTests.cpp.o -o 
FileUtilsTests -ldl libtest_base.a -lpthread libminifi/libcore-minifi.a 
thirdparty/yaml-cpp-install/lib/libyaml-cpp.a -Wl,whole-archive 
libminifi/libminifi.a -Wl,-no-whole-archive libcatch_main.a 
libminifi/libcore-minifi.a -ldl  -latomic 
thirdparty/yaml-cpp-install/lib/libyaml-cpp.a 
/usr/lib/arm-linux-gnueabihf/libz.so 
thirdparty/ossp-uuid-install/lib/libuuid+.a 
thirdparty/libressl-install/lib/libssl.a 
thirdparty/libressl-install/lib/libcrypto.a{code}
 

I am compiling on a Raspberry pi 4

 g++ (Raspbian 9.2.1-25+rpi1) 9.2.1 20200123

gcc (Raspbian 9.2.1-25+rpi1) 9.2.1 20200123

GNU Make 4.2.1

 

 


was (Author: danreyn22):
Hi, 

I tried that after finding it on Stack Overflow but it still wont compile. I 
will try again. After i added that line I  can see in the link.txt files 
generated by cmake that it has added -latomic to the top line. Here is one of 
the broken files

MakeFiles/FileUtilsTests.dir/link.txt
{code:java}
/usr/bin/c++ std=c+11 -DOPENSSL_SUPPORT -Os -DNDEBUG -latomic -rdynamic 
CMakeFiles/FileUtilsTests.dir/libminifi/test/unit/FileUtilsTests.cpp.o -o 
FileUtilsTests -ldl libtest_base.a -lpthread libminifi/libcore-minifi.a 
thirdparty/yaml-cpp-install/lib/libyaml-cpp.a -Wl,whole-archive 
libminifi/libminifi.a -Wl,-no-whole-archive libcatch_main.a 
libminifi/libcore-minifi.a -ldl thirdparty/yaml-cpp-install/lib/libyaml-cpp.a 
/usr/lib/arm-linux-gnueabihf/libz.so 
thirdparty/ossp-uuid-install/lib/libuuid+.a 
thirdparty/libressl-install/lib/libssl.a 
thirdparty/libressl-install/lib/libcrypto.a{code}

 ~

If I modify the link.txt file and add -latomic in to the file path as shown 
below it will compile that file but then it just errors on the next file. I am 
slowly working my way through each file but it is taking a long time.
{code:java}
/usr/bin/c++ std=c+11 -DOPENSSL_SUPPORT -Os -DNDEBUG -latomic -rdynamic 
CMakeFiles/FileUtilsTests.dir/libminifi/test/unit/FileUtilsTests.cpp.o -o 
FileUtilsTests -ldl libtest_base.a -lpthread libminifi/libcore-minifi.a 
thirdparty/yaml-cpp-install/lib/libyaml-cpp.a -Wl,whole-archive 
libminifi/libminifi.a -Wl,-no-whole-archive libcatch_main.a 
libminifi/libcore-minifi.a -ldl  -latomic 
thirdparty/yaml-cpp-install/lib/libyaml-cpp.a 
/usr/lib/arm-linux-gnueabihf/libz.so 
thirdparty/ossp-uuid-install/lib/libuuid+.a 
thirdparty/libressl-install/lib/libssl.a 
thirdparty/libressl-install/lib/libcrypto.a{code}
 

I am compiling on a Raspberry pi 4

 g++ (Raspbian 9.2.1-25+rpi1) 9.2.1 20200123

gcc (Raspbian 9.2.1-25+rpi1) 9.2.1 20200123

GNU Make 4.2.1

 

 

> 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)

Reply via email to