CMakeError.log

sbusch, 10 Aug 2015 13:10

Download (3.03 KB)

 
1
Determining if the pthread_create exist failed with the following output:
2
Change Dir: /home/sbusch/dev/BornAgain/build_dir/CMakeFiles/CMakeTmp
3

    
4
Run Build Command:/usr/bin/make "cmTryCompileExec3967459158/fast"
5
/usr/bin/make -f CMakeFiles/cmTryCompileExec3967459158.dir/build.make CMakeFiles/cmTryCompileExec3967459158.dir/build
6
make[1]: Entering directory `/home/sbusch/dev/BornAgain/build_dir/CMakeFiles/CMakeTmp'
7
/usr/bin/cmake -E cmake_progress_report /home/sbusch/dev/BornAgain/build_dir/CMakeFiles/CMakeTmp/CMakeFiles 1
8
Building C object CMakeFiles/cmTryCompileExec3967459158.dir/CheckSymbolExists.c.o
9
/usr/bin/cc    -o CMakeFiles/cmTryCompileExec3967459158.dir/CheckSymbolExists.c.o   -c /home/sbusch/dev/BornAgain/build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.c
10
Linking C executable cmTryCompileExec3967459158
11
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3967459158.dir/link.txt --verbose=1
12
/usr/bin/cc       CMakeFiles/cmTryCompileExec3967459158.dir/CheckSymbolExists.c.o  -o cmTryCompileExec3967459158 -rdynamic 
13
CMakeFiles/cmTryCompileExec3967459158.dir/CheckSymbolExists.c.o: In function `main':
14
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
15
collect2: error: ld returned 1 exit status
16
make[1]: Leaving directory `/home/sbusch/dev/BornAgain/build_dir/CMakeFiles/CMakeTmp'
17
make[1]: *** [cmTryCompileExec3967459158] Error 1
18
make: *** [cmTryCompileExec3967459158/fast] Error 2
19

    
20
File /home/sbusch/dev/BornAgain/build_dir/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
21
/* */
22
#include <pthread.h>
23

    
24
int main(int argc, char** argv)
25
{
26
  (void)argv;
27
#ifndef pthread_create
28
  return ((int*)(&pthread_create))[argc];
29
#else
30
  (void)argc;
31
  return 0;
32
#endif
33
}
34

    
35
Determining if the function pthread_create exists in the pthreads failed with the following output:
36
Change Dir: /home/sbusch/dev/BornAgain/build_dir/CMakeFiles/CMakeTmp
37

    
38
Run Build Command:/usr/bin/make "cmTryCompileExec2646249609/fast"
39
/usr/bin/make -f CMakeFiles/cmTryCompileExec2646249609.dir/build.make CMakeFiles/cmTryCompileExec2646249609.dir/build
40
make[1]: Entering directory `/home/sbusch/dev/BornAgain/build_dir/CMakeFiles/CMakeTmp'
41
/usr/bin/cmake -E cmake_progress_report /home/sbusch/dev/BornAgain/build_dir/CMakeFiles/CMakeTmp/CMakeFiles 1
42
Building C object CMakeFiles/cmTryCompileExec2646249609.dir/CheckFunctionExists.c.o
43
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec2646249609.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
44
Linking C executable cmTryCompileExec2646249609
45
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2646249609.dir/link.txt --verbose=1
46
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec2646249609.dir/CheckFunctionExists.c.o  -o cmTryCompileExec2646249609 -rdynamic -lpthreads 
47
/usr/bin/ld: cannot find -lpthreads
48
collect2: error: ld returned 1 exit status
49
make[1]: Leaving directory `/home/sbusch/dev/BornAgain/build_dir/CMakeFiles/CMakeTmp'
50
make[1]: *** [cmTryCompileExec2646249609] Error 1
51
make: *** [cmTryCompileExec2646249609/fast] Error 2
52

    
53