移植开源软件p2p+webrtc到该平台使用camke命令报错
-
如题,开源软件使用aarch64-linux-gnu-g++编译器编译没问题,使用riscv32-linux-g++编译(path路径添加了编译器目录如:export PATH=$PATH:/home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/),cmake设置了使用新的编译器,编译错误:
Executing workflow step 2 of 2: build preset "linux_riscv32_crosscompile" [1/25] cd /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc...o-webrtc-sdk-cpp/sdk/src/signaling_device/../../cmake_scripts/version.cmake true version.cmake variables: GIT_DIRTY .dirty, GIT_TAG , GIT_BRANCH main, GIT_COUNT 84, GIT_HASH: 4c01467 Generated the version: 0.0.0-branch.main.commits.84+4c01467.dirty based on the git repository information [23/25] Linking CXX executable src/webrtc_device/webrtc_device FAILED: src/webrtc_device/webrtc_device : && /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/riscv32-linux-g++ src/webrtc_device/CMakeFiles/webrtc_device.dir/main.cpp.o -o src/webrtc_device/webrtc_device vcpkg_installed/riscv32-linux/debug/lib/libdatachannel.a _deps/nabtowebrtcsignaling-build/src/signaling_device/libnabto_webrtc_signaling_device.a _deps/nabtowebrtcsignaling-build/src/signaling_util/curl_http_client/libnabto_webrtc_curl_client.a vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a src/common/libwebrtc_example_common.a vcpkg_installed/riscv32-linux/debug/lib/libusrsctp.a vcpkg_installed/riscv32-linux/debug/lib/libsrtp2.a vcpkg_installed/riscv32-linux/debug/lib/libjuice.a vcpkg_installed/riscv32-linux/debug/lib/libcurl-d.a vcpkg_installed/riscv32-linux/debug/lib/libssl.a vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a vcpkg_installed/riscv32-linux/lib/libz.a _deps/nabtowebrtcsignaling-build/src/signaling_util/curl_http_client/libnabto_webrtc_curl_client.a vcpkg_installed/riscv32-linux/debug/lib/libcurl-d.a vcpkg_installed/riscv32-linux/debug/lib/libssl.a vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a vcpkg_installed/riscv32-linux/lib/libz.a vcpkg_installed/riscv32-linux/debug/lib/libdatachannel.a vcpkg_installed/riscv32-linux/debug/lib/libusrsctp.a vcpkg_installed/riscv32-linux/debug/lib/libsrtp2.a vcpkg_installed/riscv32-linux/debug/lib/libjuice.a vcpkg_installed/riscv32-linux/debug/lib/libcurl-d.a vcpkg_installed/riscv32-linux/debug/lib/libssl.a vcpkg_installed/riscv32-linux/lib/libz.a vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a -ldl _deps/nabtowebrtcsignaling-build/src/signaling_util/message_transport/libnabto_webrtc_message_transport.a _deps/nabtowebrtcsignaling-build/src/signaling_device/libnabto_webrtc_signaling_device.a && : /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libdatachannel.a(peerconnection.cpp.o): in function `std::__atomic_base<bool>::exchange(bool, std::memory_order)': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/libdatachannel/src/v0.22.6-36ddb3e7da.clean/src/impl/peerconnection.cpp:40: undefined reference to `__atomic_exchange_1' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `get_hold_current_qp': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:277: undefined reference to `__atomic_fetch_add_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:285: undefined reference to `__atomic_fetch_sub_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `ossl_rcu_read_unlock': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:357: undefined reference to `__atomic_fetch_sub_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `update_qp': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:401: undefined reference to `__atomic_fetch_add_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `ossl_synchronize_rcu': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:464: undefined reference to `__atomic_load_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `CRYPTO_THREAD_cleanup_local': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:715: undefined reference to `__atomic_is_lock_free' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `CRYPTO_THREAD_get_current_id': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:722: undefined reference to `__atomic_fetch_add_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `CRYPTO_atomic_add64': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:762: undefined reference to `__atomic_is_lock_free' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:762: undefined reference to `__atomic_fetch_and_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `CRYPTO_atomic_and': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:787: undefined reference to `__atomic_is_lock_free' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:788: undefined reference to `__atomic_fetch_or_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `CRYPTO_atomic_or': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:811: undefined reference to `__atomic_is_lock_free' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:811: undefined reference to `__atomic_load_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:826: undefined reference to `__atomic_is_lock_free' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:827: undefined reference to `__atomic_store_8' collect2: error: ld returned 1 exit status [24/25] Linking CXX executable src/webrtc_device_rtsp/webrtc_device_rtsp FAILED: src/webrtc_device_rtsp/webrtc_device_rtsp : && /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/riscv32-linux-g++ src/webrtc_device_rtsp/CMakeFiles/webrtc_device_rtsp.dir/main.cpp.o src/webrtc_device_rtsp/CMakeFiles/webrtc_device_rtsp.dir/rtsp-client/rtsp_client.cpp.o src/webrtc_device_rtsp/CMakeFiles/webrtc_device_rtsp.dir/rtsp-client/tcp_rtp_client.cpp.o -o src/webrtc_device_rtsp/webrtc_device_rtsp src/common/libwebrtc_example_common.a vcpkg_installed/riscv32-linux/debug/lib/libdatachannel.a _deps/nabtowebrtcsignaling-build/src/signaling_device/libnabto_webrtc_signaling_device.a _deps/nabtowebrtcsignaling-build/src/signaling_util/curl_http_client/libnabto_webrtc_curl_client.a vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a vcpkg_installed/riscv32-linux/debug/lib/libcurl-d.a vcpkg_installed/riscv32-linux/debug/lib/libssl.a vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a vcpkg_installed/riscv32-linux/lib/libz.a vcpkg_installed/riscv32-linux/debug/lib/libdatachannel.a vcpkg_installed/riscv32-linux/debug/lib/libusrsctp.a vcpkg_installed/riscv32-linux/debug/lib/libsrtp2.a vcpkg_installed/riscv32-linux/debug/lib/libjuice.a vcpkg_installed/riscv32-linux/debug/lib/libcurl-d.a vcpkg_installed/riscv32-linux/debug/lib/libssl.a vcpkg_installed/riscv32-linux/lib/libz.a vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a _deps/nabtowebrtcsignaling-build/src/signaling_util/message_transport/libnabto_webrtc_message_transport.a _deps/nabtowebrtcsignaling-build/src/signaling_device/libnabto_webrtc_signaling_device.a vcpkg_installed/riscv32-linux/debug/lib/libusrsctp.a vcpkg_installed/riscv32-linux/debug/lib/libsrtp2.a vcpkg_installed/riscv32-linux/debug/lib/libjuice.a vcpkg_installed/riscv32-linux/debug/lib/libcurl-d.a vcpkg_installed/riscv32-linux/debug/lib/libssl.a vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a -ldl vcpkg_installed/riscv32-linux/lib/libz.a && : /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libdatachannel.a(datachannel.cpp.o): in function `std::__atomic_base<bool>::exchange(bool, std::memory_order)': /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/riscv32-linux/include/c++/10.4.0/bits/atomic_base.h:443: undefined reference to `__atomic_exchange_1' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `get_hold_current_qp': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:277: undefined reference to `__atomic_fetch_add_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:285: undefined reference to `__atomic_fetch_sub_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `ossl_rcu_read_unlock': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:357: undefined reference to `__atomic_fetch_sub_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `update_qp': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:401: undefined reference to `__atomic_fetch_add_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `ossl_synchronize_rcu': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:464: undefined reference to `__atomic_load_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `CRYPTO_THREAD_cleanup_local': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:715: undefined reference to `__atomic_is_lock_free' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `CRYPTO_THREAD_get_current_id': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:722: undefined reference to `__atomic_fetch_add_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `CRYPTO_atomic_add64': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:762: undefined reference to `__atomic_is_lock_free' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:762: undefined reference to `__atomic_fetch_and_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `CRYPTO_atomic_and': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:787: undefined reference to `__atomic_is_lock_free' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:788: undefined reference to `__atomic_fetch_or_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: vcpkg_installed/riscv32-linux/debug/lib/libcrypto.a(libcrypto-lib-threads_pthread.o): in function `CRYPTO_atomic_or': /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:811: undefined reference to `__atomic_is_lock_free' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:811: undefined reference to `__atomic_load_8' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:826: undefined reference to `__atomic_is_lock_free' /home/eyecloud/duke/tina-v821-open/tina-v821-release/out/toolchain/nds32le-linux-glibc-v5d/bin/../lib/gcc/riscv32-linux/10.4.0/../../../../riscv32-linux/bin/ld: /home/eyecloud/duke/tina-v821-open/tina-v821-release/nabto-webrtc-sdk-cpp/3rdparty/vcpkg/buildtrees/openssl/riscv32-linux-dbg/../src/nssl-3.5.0-3b91ebed43.clean/crypto/threads_pthread.c:827: undefined reference to `__atomic_store_8' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
-
我使用aarch64-linux-gnu-g++编译正常,感觉报错是缺少了链接的库还是什么原因。。。
-
问题解除,少了一些c++链接库
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号