summaryrefslogtreecommitdiff
path: root/graphics/asymptote/LspCpp/CMakeFiles/CMakeError.log
blob: 1a3df8586400154345b02eef155165b6069eedfb (plain)
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
54
55
56
57
58
59
60
61
62
63
64
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /usr/local/src/asymptote-2.78/LspCpp/CMakeFiles/CMakeTmp

Run Build Command(s):/bin/gmake -f Makefile cmTC_07410/fast && gmake[1]: Entering directory '/u/src/asymptote-2.78/LspCpp/CMakeFiles/CMakeTmp'
make  -f CMakeFiles/cmTC_07410.dir/build.make CMakeFiles/cmTC_07410.dir/build
make[2]: Entering directory '/u/src/asymptote-2.78/LspCpp/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_07410.dir/src.c.o
/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD   -o CMakeFiles/cmTC_07410.dir/src.c.o -c /usr/local/src/asymptote-2.78/LspCpp/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_07410
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_07410.dir/link.txt --verbose=1
/bin/cc CMakeFiles/cmTC_07410.dir/src.c.o -o cmTC_07410 
/bin/ld: CMakeFiles/cmTC_07410.dir/src.c.o: in function `main':
src.c:(.text+0x2d): undefined reference to `pthread_create'
/bin/ld: src.c:(.text+0x39): undefined reference to `pthread_detach'
/bin/ld: src.c:(.text+0x45): undefined reference to `pthread_cancel'
/bin/ld: src.c:(.text+0x56): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/cmTC_07410.dir/build.make:99: cmTC_07410] Error 1
make[2]: Leaving directory '/u/src/asymptote-2.78/LspCpp/CMakeFiles/CMakeTmp'
gmake[1]: *** [Makefile:127: cmTC_07410/fast] Error 2
gmake[1]: Leaving directory '/u/src/asymptote-2.78/LspCpp/CMakeFiles/CMakeTmp'


Source file was:
#include <pthread.h>

static void* test_func(void* data)
{
  return data;
}

int main(void)
{
  pthread_t thread;
  pthread_create(&thread, NULL, test_func, NULL);
  pthread_detach(thread);
  pthread_cancel(thread);
  pthread_join(thread, NULL);
  pthread_atfork(NULL, NULL, NULL);
  pthread_exit(NULL);

  return 0;
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /usr/local/src/asymptote-2.78/LspCpp/CMakeFiles/CMakeTmp

Run Build Command(s):/bin/gmake -f Makefile cmTC_eda34/fast && gmake[1]: Entering directory '/u/src/asymptote-2.78/LspCpp/CMakeFiles/CMakeTmp'
make  -f CMakeFiles/cmTC_eda34.dir/build.make CMakeFiles/cmTC_eda34.dir/build
make[2]: Entering directory '/u/src/asymptote-2.78/LspCpp/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_eda34.dir/CheckFunctionExists.c.o
/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_eda34.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_eda34
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_eda34.dir/link.txt --verbose=1
/bin/cc  -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_eda34.dir/CheckFunctionExists.c.o -o cmTC_eda34  -lpthreads 
/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/cmTC_eda34.dir/build.make:99: cmTC_eda34] Error 1
make[2]: Leaving directory '/u/src/asymptote-2.78/LspCpp/CMakeFiles/CMakeTmp'
gmake[1]: *** [Makefile:127: cmTC_eda34/fast] Error 2
gmake[1]: Leaving directory '/u/src/asymptote-2.78/LspCpp/CMakeFiles/CMakeTmp'