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

undefined reference to symbol '_ULx86_64_step' libunwind.so.8: error adding symbols: DSO missing from command line

我正在尝试编译 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

使用cmake方式制作Caffe,目前看来已经解决了这个问题。