对符号'_ULx86_64_step'libunwind.so.8的未定义引用:添加符号时出错:命令行

时间:2016-09-22 13:05:24

标签: linux command-line caffe glog libunwind

我正在尝试编译Caffe。

make all -j4

工作得很好。但是进行测试会产生以下错误。

Debian GNU / Linux 8(jessie)64位

g++ --version
g++ (Debian 4.9.2-10) 4.9.2

上出现此错误
make test -j4

caffe$ make test -j4
CXX/LD -o .build_debug/test/test_all.testbin src/caffe/test/test_caffe_main.cpp
LD .build_debug/src/caffe/test/test_solver.o
LD .build_debug/src/caffe/test/test_platform.o
LD .build_debug/src/caffe/test/test_tile_layer.o
/usr/bin/ld: /usr/local/lib/libglog.a(utilities.cc.o): undefined reference to symbol '_ULx86_64_step'
/usr/lib/x86_64-linux-gnu//libunwind.so.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_debug/test/test_platform.testbin' failed
make: *** [.build_debug/test/test_platform.testbin] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: /usr/local/lib/libglog.a(utilities.cc.o): undefined reference to symbol '_ULx86_64_step'
/usr/lib/x86_64-linux-gnu//libunwind.so.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_debug/test/test_tile_layer.testbin' failed
make: *** [.build_debug/test/test_tile_layer.testbin] Error 1
/usr/bin/ld: /usr/local/lib/libglog.a(utilities.cc.o): undefined reference to symbol '_ULx86_64_step'
/usr/lib/x86_64-linux-gnu//libunwind.so.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_debug/test/test_solver.testbin' failed
make: *** [.build_debug/test/test_solver.testbin] Error 1
/usr/bin/ld: /usr/local/lib/libglog.a(utilities.cc.o): undefined reference to symbol '_ULx86_64_step'
/usr/lib/x86_64-linux-gnu//libunwind.so.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:597: recipe for target '.build_debug/test/test_all.testbin' failed
make: *** [.build_debug/test/test_all.testbin] Error 1

1 个答案:

答案 0 :(得分:0)

使用cmake方法让Caffe好像现在已经解决了这个问题。