When I try to build localproxy on a Raspberry 3B running Raspbian 10, I get the following linker error:
/usr/bin/ld: CMakeFiles/localproxy.dir/src/TcpAdapterProxy.cpp.o: in function `boost::beast::websocket::detail::stream_prng::create_mask() [clone .isra.3452]':
TcpAdapterProxy.cpp:(.text+0x5a44): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: CMakeFiles/localproxy.dir/src/TcpAdapterProxy.cpp.o: in function `boost::beast::websocket::detail::stream_prng::prng()':
TcpAdapterProxy.cpp:(.text._ZN5boost5beast9websocket6detail11stream_prng4prngEv[_ZN5boost5beast9websocket6detail11stream_prng4prngEv]+0x7c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: /usr/local/lib/libprotobuf-lite.a(arena.cc.o): in function `google::protobuf::internal::ArenaImpl::Init()':
arena.cc:(.text+0x34): undefined reference to `__atomic_fetch_add_8'
I think this is more or less the same cause as #2. Also, the workaround mentioned in that issue solved the problem for me:
In CMakeLists.txt I commented out the cross-compiling check so that the atomic library is always included:
When I try to build localproxy on a Raspberry 3B running Raspbian 10, I get the following linker error:
I think this is more or less the same cause as #2. Also, the workaround mentioned in that issue solved the problem for me:
In CMakeLists.txt I commented out the cross-compiling check so that the atomic library is always included:
For me, the issue is solved with that. I'm writing this in case others experience the same problem!