Actions
Bug #23854
closedLinking libceph_zstd.so sometimes fails
Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
build
Target version:
-
% Done:
0%
Source:
Development
Tags:
Backport:
Regression:
No
Severity:
4 - irritation
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
I get this error from time to time (since a few months) when building from source:
[ 20%] Linking CXX shared library ../../../lib/libceph_zstd.so /usr/bin/ld: libzstd/lib/libzstd.a(error_private.c.o): relocation R_X86_64_PC32 against symbol `ERR_getErrorString' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status src/compressor/zstd/CMakeFiles/ceph_zstd.dir/build.make:95: die Regel für Ziel „lib/libceph_zstd.so.2.0.0“ scheiterte make[2]: *** [lib/libceph_zstd.so.2.0.0] Fehler 1 CMakeFiles/Makefile2:20785: die Regel für Ziel „src/compressor/zstd/CMakeFiles/ceph_zstd.dir/all“ scheiterte make[1]: *** [src/compressor/zstd/CMakeFiles/ceph_zstd.dir/all] Fehler 2 make[1]: *** Auf noch nicht beendete Prozesse wird gewartet …
This happens mostly after calling make
multiple times without a full rebuild for a longer period of time.
Removing the build files helps as a workaround:
rm -r build/src/compressor/zstd
Environment:
- Ubuntu 17.10
- GNU ld (GNU Binutils for Ubuntu) 2.29.1
- g++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0
- cmake version 3.9.1
- git on master for the last few months.
Updated by Sebastian Wagner over 3 years ago
- Status changed from New to Can't reproduce
Actions