aboutsummaryrefslogtreecommitdiff
path: root/build/CMakeFiles/CMakeError.log
blob: 9ab6f1e9a63d23b1bccfa2b20d324003c57072aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/roman/src/Firmware/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec1424100880/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1424100880.dir/build.make CMakeFiles/cmTryCompileExec1424100880.dir/build
make[1]: Entering directory `/home/roman/src/Firmware/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/roman/src/Firmware/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1424100880.dir/CheckSymbolExists.c.o
/usr/bin/cc    -o CMakeFiles/cmTryCompileExec1424100880.dir/CheckSymbolExists.c.o   -c /home/roman/src/Firmware/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec1424100880
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1424100880.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTryCompileExec1424100880.dir/CheckSymbolExists.c.o  -o cmTryCompileExec1424100880 -rdynamic 
CMakeFiles/cmTryCompileExec1424100880.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec1424100880] Error 1
make[1]: Leaving directory `/home/roman/src/Firmware/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec1424100880/fast] Error 2

File /home/roman/src/Firmware/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/roman/src/Firmware/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec26988121/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec26988121.dir/build.make CMakeFiles/cmTryCompileExec26988121.dir/build
make[1]: Entering directory `/home/roman/src/Firmware/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/roman/src/Firmware/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec26988121.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec26988121.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec26988121
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec26988121.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec26988121.dir/CheckFunctionExists.c.o  -o cmTryCompileExec26988121 -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec26988121] Error 1
make[1]: Leaving directory `/home/roman/src/Firmware/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec26988121/fast] Error 2