Hi All,
My caffe build progresses happily thru building the libcaffe.so but then when it tries to build the TOOL_BINS stuff (e.g., convert_imageset.bin etc) it fails. Sample build results are appended at the end.
The problem started when I moved to python 3.4 on anaconda3, before this I was getting the caffe runtests to pass
Essentially, the next line illustrates the problem
/usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_size@XZ_5.0'
I tried to debug a bit. The undefined symbols (e.g. lzma_index_size) are referenced by libunwind.so and they are defined in liblzma.so (I verified this as follows
$ nm -D -C -g /usr/local/anaconda3/lib/liblzma.so.5 | grep "lzma_index_size"
0000000000003ef0 T lzma_index_size
)
and liblzma.so is indeed in the linker's path (I verified this as follows
$ ldconfig -p | grep liblzma.so
liblzma.so.5 (libc6,x86-64) => /usr/local/anaconda3/lib/liblzma.so.5
liblzma.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblzma.so.5
liblzma.so.5 (libc6) => /lib/i386-linux-gnu/liblzma.so.5
liblzma.so (libc6,x86-64) => /usr/local/anaconda3/lib/liblzma.so
).
Thus liblzma.so should be linked in and it does define the problem symbols, yes? What am I missing here?
Thanks,
Krish
<-----------------begin build result ------------------------->
krishnendu@krishnendu-Leopard-WS:/usr/local/src/caffe$ sudo make all
bc: symbol lookup error: /usr/local/anaconda3/lib/libreadline.so.6: undefined symbol: PC
CXX/LD -llzma -o .build_release/tools/convert_imageset.bin
/usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_size@XZ_5.0'
/usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_stream_footer_decode@XZ_5.0'
/usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_uncompressed_size@XZ_5.0'
/usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_stream_buffer_decode@XZ_5.0'
/usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_buffer_decode@XZ_5.0'
/usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_end@XZ_5.0'
collect2: error: ld returned 1 exit status
Makefile:559: recipe for target '.build_release/tools/convert_imageset.bin' failed
make: *** [.build_release/tools/convert_imageset.bin] Error 1