Project

General

Profile

Actions

Bug #43833

closed

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

Added by Sebastian Wagner over 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

Also available in: Atom PDF