/usr/bin/ld: /usr/include/c++/8/bits/stl_construct.h:107: 对 ***

问题描述

在我的 RaspBerry Pi 4B 上为 Nginx QUIC 编译 Google 的 BoringSSL 时遇到错误,在其上运行 RaspBerry Pi OS,又名 Raspbian buster。

我用来编译的命令

正如 Google's document 所说,我使用了以下命令:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

我还尝试运行 cmake 而不传递 -DCMAKE_BUILD_TYPE=Release

错误输出

这是错误消息的一部分。我没有显示整个输出,因为它太长(有 352 行)。告诉我是否需要整个输出解决这个问题。

[ 75%] Linking CXX executable crypto_test
/usr/bin/ld: CMakeFiles/crypto_test.dir/abi_self_test.cc.o: in function `ABITest_SanityCheck_Test::TestBody()':
/usr/include/c++/8/bits/unique_ptr.h:81: undefined reference to `abi_test_trampoline'
/usr/bin/ld: CMakeFiles/crypto_test.dir/abi_self_test.cc.o: in function `ABITest_ARM_Test::TestBody()':
/usr/include/c++/8/bits/stl_construct.h:107: undefined reference to `abi_test_clobber_r4'
/usr/bin/ld: /usr/include/c++/8/bits/stl_construct.h:107: undefined reference to `abi_test_trampoline'
/usr/bin/ld: /usr/include/c++/8/bits/stl_construct.h:107: undefined reference to `abi_test_clobber_r0'
/usr/bin/ld: /usr/include/c++/8/bits/stl_construct.h:107: undefined reference to `abi_test_clobber_r1'
/usr/bin/ld: /usr/include/c++/8/bits/stl_construct.h:107: undefined reference to `abi_test_clobber_r2'

......

附加信息

cmake version 3.16.3
GNU Make 4.2.1

$ uname -a
Linux Kaibins-RPi 5.10.52-v8+ #1439 SMP PREEMPT Thu Jul 22 15:43:49 BST 2021 aarch64 GNU/Linux

在 Google 上搜索,但我找不到任何类似的案例。我需要帮助。非常感谢。

这个问题也可以在Chromium bug tracker中找到:https://crbug.com/boringssl/422。您可以在那里的附件中找到完整的错误输出

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...