Actions
Bug #43833
closedshaman on bionic/cromson: cmake error: undefined reference to `pthread_create'
% Done:
0%
Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
I'm getting this with the current master on shaman:
==> CMakeFiles/CMakeError.log <== Determining if the pthread_create exist failed with the following output: Change Dir: /build/ceph-15.0.0-9833-g8eb8dbe/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_0bdbb/fast" make[2]: Entering directory '/build/ceph-15.0.0-9833-g8eb8dbe/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_0bdbb.dir/build.make CMakeFiles/cmTC_0bdbb.dir/build make[3]: Entering directory '/build/ceph-15.0.0-9833-g8eb8dbe/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0bdbb.dir/CheckSymbolExists.c.o /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/ceph-15.0.0-9833-g8eb8dbe=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o CMakeFiles/cmTC_0bdbb.dir/CheckSymbolExists.c.o -c /build/ceph-15.0.0-9833-g8eb8dbe/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_0bdbb /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0bdbb.dir/link.txt --verbose=1 /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/ceph-15.0.0-9833-g8eb8dbe=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro CMakeFiles/cmTC_0bdbb.dir/CheckSymbolExists.c.o -o cmTC_0bdbb CMakeFiles/cmTC_0bdbb.dir/CheckSymbolExists.c.o: In function `main': ./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: undefined reference to `pthread_create' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_0bdbb.dir/build.make:97: recipe for target 'cmTC_0bdbb' failed
- https://shaman.ceph.com/builds/ceph/wip-swagner-testing/8eb8dbed7e205ebdb67d6e12375c7d32c46f197a/crimson/186599/
- https://shaman.ceph.com/builds/ceph/wip-swagner-testing/3b9e87f714dc9c66b536668a4bd2d774be89b23f/crimson/186324/
- https://shaman.ceph.com/builds/ceph/wip-swagner-testing/ca3444d60d31fa10a6cfaad9450c05198f2f6dc9/crimson/186293/
priority=high, as this is randomly blocking QA runs.
Updated by Kefu Chai about 4 years ago
- Status changed from New to Resolved
the error message is misleading. the root cause is
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find cryptopp (missing: cryptopp_LIBRARY cryptopp_INCLUDE_DIR) (Required is at least version "5.6.5") Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) src/seastar/cmake/Findcryptopp.cmake:36 (find_package_handle_standard_args) src/CMakeLists.txt:285 (_find_package) src/seastar/cmake/SeastarDependencies.cmake:101 (find_package) src/seastar/CMakeLists.txt:293 (seastar_find_dependencies)
and this is not blocking, as long as you are not testing using crimson flavor. to my best understanding, no test is using this flavor at the time of writing.
this was fixed by https://github.com/ceph/ceph-build/pull/1499
Actions