Project

General

Profile

Bug #19406 » CMakeError.log

Christoffer Lilja, 04/08/2017 10:02 AM

 
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_c817c/fast"
/usr/bin/make -f CMakeFiles/cmTC_c817c.dir/build.make CMakeFiles/cmTC_c817c.dir/build
make[1]: Entering directory '/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c817c.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_c817c.dir/CheckSymbolExists.c.o -c /home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_c817c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c817c.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_c817c.dir/CheckSymbolExists.c.o -o cmTC_c817c
CMakeFiles/cmTC_c817c.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_c817c.dir/build.make:97: recipe for target 'cmTC_c817c' failed
make[1]: *** [cmTC_c817c] Error 1
make[1]: Leaving directory '/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_c817c/fast' failed
make: *** [cmTC_c817c/fast] Error 2

File /home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_0ef74/fast"
/usr/bin/make -f CMakeFiles/cmTC_0ef74.dir/build.make CMakeFiles/cmTC_0ef74.dir/build
make[1]: Entering directory '/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0ef74.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_0ef74.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_0ef74
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0ef74.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_0ef74.dir/CheckFunctionExists.c.o -o cmTC_0ef74 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_0ef74.dir/build.make:97: recipe for target 'cmTC_0ef74' failed
make[1]: *** [cmTC_0ef74] Error 1
make[1]: Leaving directory '/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_0ef74/fast' failed
make: *** [cmTC_0ef74/fast] Error 2


Determining if the function pthread_set_name_np exists failed with the following output:
Change Dir: /home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_c7d51/fast"
/usr/bin/make -f CMakeFiles/cmTC_c7d51.dir/build.make CMakeFiles/cmTC_c7d51.dir/build
make[1]: Entering directory '/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c7d51.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_set_name_np -o CMakeFiles/cmTC_c7d51.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_c7d51
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c7d51.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_set_name_np CMakeFiles/cmTC_c7d51.dir/CheckFunctionExists.c.o -o cmTC_c7d51 -lpthread
CMakeFiles/cmTC_c7d51.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x15): undefined reference to `pthread_set_name_np'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_c7d51.dir/build.make:97: recipe for target 'cmTC_c7d51' failed
make[1]: *** [cmTC_c7d51] Error 1
make[1]: Leaving directory '/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_c7d51/fast' failed
make: *** [cmTC_c7d51/fast] Error 2


Performing C SOURCE FILE Test HAVE_STAT_ST_MTIMESPEC_TV_NSEC failed with the following output:
Change Dir: /home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_31980/fast"
/usr/bin/make -f CMakeFiles/cmTC_31980.dir/build.make CMakeFiles/cmTC_31980.dir/build
make[1]: Entering directory '/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_31980.dir/src.c.o
/usr/bin/cc -DHAVE_STAT_ST_MTIMESPEC_TV_NSEC -o CMakeFiles/cmTC_31980.dir/src.c.o -c /home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp/src.c
/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp/src.c: In function ‘main’:
/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp/src.c:6:35: error: ‘struct stat’ has no member named ‘st_mtimespec’
(void)sizeof(((struct stat *)0)->st_mtimespec.tv_nsec);
^
CMakeFiles/cmTC_31980.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_31980.dir/src.c.o' failed
make[1]: *** [CMakeFiles/cmTC_31980.dir/src.c.o] Error 1
make[1]: Leaving directory '/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_31980/fast' failed
make: *** [cmTC_31980/fast] Error 2

Source file was:

#include <sys/stat.h>

int main()
{
(void)sizeof(((struct stat *)0)->st_mtimespec.tv_nsec);
return 0;
}

Performing C++ SOURCE FILE Test HAVE_IBV_EXP failed with the following output:
Change Dir: /home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_d602e/fast"
/usr/bin/make -f CMakeFiles/cmTC_d602e.dir/build.make CMakeFiles/cmTC_d602e.dir/build
make[1]: Entering directory '/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_d602e.dir/src.cxx.o
/usr/bin/c++ -DHAVE_IBV_EXP -fPIE -o CMakeFiles/cmTC_d602e.dir/src.cxx.o -c /home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp/src.cxx
/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’:
/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp/src.cxx:5:31: error: aggregate ‘main()::ibv_exp_gid_attr gid_attr’ has incomplete type and cannot be defined
struct ibv_exp_gid_attr gid_attr;
^
/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp/src.cxx:6:51: error: ‘ibv_exp_query_gid_attr’ was not declared in this scope
ibv_exp_query_gid_attr(ctxt, 1, 0, &gid_attr);
^
CMakeFiles/cmTC_d602e.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_d602e.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_d602e.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/zidz/workspace/ceph/ceph-master/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_d602e/fast' failed
make: *** [cmTC_d602e/fast] Error 2

Source file was:

#include <infiniband/verbs.h>
int main() {
struct ibv_context* ctxt;
struct ibv_exp_gid_attr gid_attr;
ibv_exp_query_gid_attr(ctxt, 1, 0, &gid_attr);
return 0;
}
(3-3/3)