Project

General

Profile

Actions

Bug #43833

closed

shaman on bionic/cromson: cmake error: undefined reference to `pthread_create'

Added by Sebastian Wagner about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Tests
Target version:
-
% 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

priority=high, as this is randomly blocking QA runs.

Actions #1

Updated by Sebastian Wagner about 4 years ago

  • Description updated (diff)
Actions #2

Updated by Neha Ojha about 4 years ago

  • Assignee set to Kefu Chai
Actions #3

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

Also available in: Atom PDF