如何修复libprotobuf.a(common.o):“。text”部分中无法识别的重定位(0x2a)

时间:2019-05-07 09:54:54

标签: python-3.x gcc

编译“ make”时收到错误消息

我在编译“ make”时安装了DensePose,我收到以下错误注释。起初,我认为gcc的版本可能存在问题(我使用的是gcc-4.8.5),所以我更改了gcc的版本(4.9.2和5.3.0),但是没有用。我该如何解决这个问题?

(DensePose) [zhushiwei@SH-IDC1-10-5-40-31 build]$ make
Scanning dependencies of target caffe2_detectron_custom_ops
[ 12%] Building CXX object CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/pool_points_interp.cc.o
[ 25%] Building CXX object CMakeFiles/caffe2_detectron_custom_ops.dir/detectron/ops/zero_even_op.cc.o
[ 37%] Linking CXX shared library libcaffe2_detectron_custom_ops.so
/bin/ld: /mnt/lustre/zhushiwei/anaconda3/envs/DensePose/lib/libprotobuf.a(common.o): unrecognized relocation (0x2a) in section `.text'
/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [libcaffe2_detectron_custom_ops.so] Error 1
make[1]: *** [CMakeFiles/caffe2_detectron_custom_ops.dir/all] Error 2
make: *** [all] Error 2

0 个答案:

没有答案