Gcc 隐藏符号“\uuuu sync\u fetch\u和\u add\u 4';由DSO引用

Gcc 隐藏符号“\uuuu sync\u fetch\u和\u add\u 4';由DSO引用,gcc,g++,Gcc,G++,我正在尝试在linux平台(ARM8148)上交叉编译opencv。 我遇到以下错误: warning: libQtTest.so.4, needed by ../../lib/libopencv_highgui.so.3.0.0, not found (try using -rpath or -rpath-link) /opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../

我正在尝试在linux平台(ARM8148)上交叉编译opencv。
我遇到以下错误:

warning: libQtTest.so.4, needed by ../../lib/libopencv_highgui.so.3.0.0, not found (try using -rpath or -rpath-link)
/opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libQtCore.so.4, needed by ../../lib/libopencv_highgui.so.3.0.0, not found (try using -rpath or -rpath-link)
/opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: ../../bin/opencv_perf_core: hidden symbol `__sync_fetch_and_add_4' in /opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/libgcc.a(linux-atomic.o) is referenced by DSO
/opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_perf_core] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2

我无法理解这个错误,在网上也没有得到正确的参考。有人能帮我理解这个错误吗。

\uuuu sync\u fetch\u和\u add\u x*通常由gcc内联,并编译成内联代码,在内存字上执行自动复制操作

您可以在此处找到记录:

如本页所述,如果编译器发出函数调用,而不是生成内联程序集,则表示目标平台不支持此原子操作