CMakeError.log 10.5 KB
Newer Older
chenzhuo's avatar
chenzhuo committed
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
Performing C++ SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/devtoolset-9/root/usr/bin/gmake cmTC_b86bc/fast && /opt/rh/devtoolset-9/root/usr/bin/gmake -f CMakeFiles/cmTC_b86bc.dir/build.make CMakeFiles/cmTC_b86bc.dir/build
gmake[1]: Entering directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_b86bc.dir/src.cxx.o
/opt/dtk-23.10/cuda/bin/nvcc    -DCMAKE_HAVE_LIBC_PTHREAD   -o CMakeFiles/cmTC_b86bc.dir/src.cxx.o -c /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp/src.cxx
Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch.
Linking CXX executable cmTC_b86bc
/opt/cmake/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b86bc.dir/link.txt --verbose=1
/opt/dtk-23.10/cuda/bin/nvcc   -DCMAKE_HAVE_LIBC_PTHREAD    CMakeFiles/cmTC_b86bc.dir/src.cxx.o  -o cmTC_b86bc 
Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch.
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: CMakeFiles/cmTC_b86bc.dir/src.cxx.o: in function `main':
src.cxx:(.text+0x3f): undefined reference to `pthread_atfork'
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_b86bc.dir/build.make:87: cmTC_b86bc] Error 1
gmake[1]: Leaving directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_b86bc/fast] Error 2


Source file was:
#include <pthread.h>

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

int main(void)
{
  pthread_t thread;
  pthread_create(&thread, NULL, test_func, NULL);
  pthread_detach(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: /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/devtoolset-9/root/usr/bin/gmake cmTC_ba764/fast && /opt/rh/devtoolset-9/root/usr/bin/gmake -f CMakeFiles/cmTC_ba764.dir/build.make CMakeFiles/cmTC_ba764.dir/build
gmake[1]: Entering directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_ba764.dir/CheckFunctionExists.cxx.o
/opt/dtk-23.10/cuda/bin/nvcc    -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_ba764.dir/CheckFunctionExists.cxx.o -c /data/norm/lmdeploy/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx
Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch.
/data/norm/lmdeploy/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:7:3: error: functions that differ only in their return type cannot be overloaded
  CHECK_FUNCTION_EXISTS(void);
  ^
<command line>:1:31: note: expanded from here
#define CHECK_FUNCTION_EXISTS pthread_create
                              ^
/usr/include/pthread.h:235:12: note: previous declaration is here
extern int pthread_create (pthread_t *__restrict __newthread,
       ~~~ ^
/data/norm/lmdeploy/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:17:3: error: no matching function for call to 'pthread_create'
  CHECK_FUNCTION_EXISTS();
  ^~~~~~~~~~~~~~~~~~~~~
<command line>:1:31: note: expanded from here
#define CHECK_FUNCTION_EXISTS pthread_create
                              ^~~~~~~~~~~~~~
/usr/include/pthread.h:235:12: note: candidate function not viable: requires 4 arguments, but 0 were provided
extern int pthread_create (pthread_t *__restrict __newthread,
           ^
2 errors generated when compiling for gfx906.
gmake[1]: *** [CMakeFiles/cmTC_ba764.dir/build.make:66: CMakeFiles/cmTC_ba764.dir/CheckFunctionExists.cxx.o] Error 1
gmake[1]: Leaving directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_ba764/fast] Error 2



Determining if the function pthread_create exists in the pthread failed with the following output:
Change Dir: /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/devtoolset-9/root/usr/bin/gmake cmTC_f2c01/fast && /opt/rh/devtoolset-9/root/usr/bin/gmake -f CMakeFiles/cmTC_f2c01.dir/build.make CMakeFiles/cmTC_f2c01.dir/build
gmake[1]: Entering directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_f2c01.dir/CheckFunctionExists.cxx.o
/opt/dtk-23.10/cuda/bin/nvcc    -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_f2c01.dir/CheckFunctionExists.cxx.o -c /data/norm/lmdeploy/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx
Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch.
/data/norm/lmdeploy/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:7:3: error: functions that differ only in their return type cannot be overloaded
  CHECK_FUNCTION_EXISTS(void);
  ^
<command line>:1:31: note: expanded from here
#define CHECK_FUNCTION_EXISTS pthread_create
                              ^
/usr/include/pthread.h:235:12: note: previous declaration is here
extern int pthread_create (pthread_t *__restrict __newthread,
       ~~~ ^
/data/norm/lmdeploy/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:17:3: error: no matching function for call to 'pthread_create'
  CHECK_FUNCTION_EXISTS();
  ^~~~~~~~~~~~~~~~~~~~~
<command line>:1:31: note: expanded from here
#define CHECK_FUNCTION_EXISTS pthread_create
                              ^~~~~~~~~~~~~~
/usr/include/pthread.h:235:12: note: candidate function not viable: requires 4 arguments, but 0 were provided
extern int pthread_create (pthread_t *__restrict __newthread,
           ^
2 errors generated when compiling for gfx906.
gmake[1]: *** [CMakeFiles/cmTC_f2c01.dir/build.make:66: CMakeFiles/cmTC_f2c01.dir/CheckFunctionExists.cxx.o] Error 1
gmake[1]: Leaving directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_f2c01/fast] Error 2



Performing C++ SOURCE FILE Test HAS_FLTO failed with the following output:
Change Dir: /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/devtoolset-9/root/usr/bin/gmake cmTC_3fbee/fast && /opt/rh/devtoolset-9/root/usr/bin/gmake -f CMakeFiles/cmTC_3fbee.dir/build.make CMakeFiles/cmTC_3fbee.dir/build
gmake[1]: Entering directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_3fbee.dir/src.cxx.o
/opt/dtk-23.10/cuda/bin/nvcc    -DWMMA -DHAS_FLTO   -flto -std=gnu++17 -o CMakeFiles/cmTC_3fbee.dir/src.cxx.o -c /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp/src.cxx
Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch.
Linking CXX executable cmTC_3fbee
/opt/cmake/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3fbee.dir/link.txt --verbose=1
/opt/dtk-23.10/cuda/bin/nvcc    -DWMMA -DHAS_FLTO   -fuse-ld=gold  CMakeFiles/cmTC_3fbee.dir/src.cxx.o  -o cmTC_3fbee  -flto 
Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch.
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: /opt/dtk-23.10/llvm/bin/../lib/LLVMgold.so: could not load plugin library: /opt/dtk-23.10/llvm/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: CMakeFiles/cmTC_3fbee.dir/src.cxx.o:1:3: invalid character
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: CMakeFiles/cmTC_3fbee.dir/src.cxx.o:1:3: syntax error, unexpected $end
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: CMakeFiles/cmTC_3fbee.dir/src.cxx.o: not an object or archive
/lib/../lib64/Scrt1.o(.text+0x20): error: undefined reference to 'main'
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_3fbee.dir/build.make:87: cmTC_3fbee] Error 1
gmake[1]: Leaving directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_3fbee/fast] Error 2


Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test HAS_FLTO_THIN failed with the following output:
Change Dir: /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/devtoolset-9/root/usr/bin/gmake cmTC_8944b/fast && /opt/rh/devtoolset-9/root/usr/bin/gmake -f CMakeFiles/cmTC_8944b.dir/build.make CMakeFiles/cmTC_8944b.dir/build
gmake[1]: Entering directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_8944b.dir/src.cxx.o
/opt/dtk-23.10/cuda/bin/nvcc    -DWMMA -DHAS_FLTO_THIN   -flto=thin -std=gnu++17 -o CMakeFiles/cmTC_8944b.dir/src.cxx.o -c /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp/src.cxx
Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch.
Linking CXX executable cmTC_8944b
/opt/cmake/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8944b.dir/link.txt --verbose=1
/opt/dtk-23.10/cuda/bin/nvcc    -DWMMA -DHAS_FLTO_THIN   -fuse-ld=gold  CMakeFiles/cmTC_8944b.dir/src.cxx.o  -o cmTC_8944b  -flto=thin 
Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch.
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: /opt/dtk-23.10/llvm/bin/../lib/LLVMgold.so: could not load plugin library: /opt/dtk-23.10/llvm/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: CMakeFiles/cmTC_8944b.dir/src.cxx.o:1:3: invalid character
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: CMakeFiles/cmTC_8944b.dir/src.cxx.o:1:3: syntax error, unexpected $end
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: CMakeFiles/cmTC_8944b.dir/src.cxx.o: not an object or archive
/lib/../lib64/Scrt1.o(.text+0x20): error: undefined reference to 'main'
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_8944b.dir/build.make:87: cmTC_8944b] Error 1
gmake[1]: Leaving directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_8944b/fast] Error 2


Source file was:
int main() { return 0; }