CMakeError.log 12.4 KB
Newer Older
huchen's avatar
huchen 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
Detecting CXX OpenMP version failed with the following output:
Change Dir: /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake cmTC_4be7e/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake  -f CMakeFiles/cmTC_4be7e.dir/build.make CMakeFiles/cmTC_4be7e.dir/build
gmake[1]: Entering directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_4be7e.dir/OpenMPCheckVersion.cpp.o
/opt/dtk-21.04/bin/hipcc    -fopenmp=libomp   -std=gnu++11 -o CMakeFiles/cmTC_4be7e.dir/OpenMPCheckVersion.cpp.o -c /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:6:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/100000)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:7:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/10000)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:8:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/1000)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:9:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/100)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:10:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/10)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:11:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/1)%10)),
                                     ^
6 errors generated when compiling for gfx900.
gmake[1]: *** [CMakeFiles/cmTC_4be7e.dir/build.make:86: CMakeFiles/cmTC_4be7e.dir/OpenMPCheckVersion.cpp.o] Error 1
gmake[1]: Leaving directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:141: cmTC_4be7e/fast] Error 2



Performing C++ SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake cmTC_e2e66/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake  -f CMakeFiles/cmTC_e2e66.dir/build.make CMakeFiles/cmTC_e2e66.dir/build
gmake[1]: Entering directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_e2e66.dir/src.cxx.o
/opt/dtk-21.04/bin/hipcc    -DCMAKE_HAVE_LIBC_PTHREAD   -std=gnu++11 -o CMakeFiles/cmTC_e2e66.dir/src.cxx.o -c /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_e2e66
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_e2e66.dir/link.txt --verbose=1
/opt/dtk-21.04/bin/hipcc   -DCMAKE_HAVE_LIBC_PTHREAD  -Wl,-rpath=/opt/rh/devtoolset-7/root/usr/lib64 -Wl,-rpath=/opt/rh/devtoolset-7/root/usr/lib  CMakeFiles/cmTC_e2e66.dir/src.cxx.o  -o cmTC_e2e66 
CMakeFiles/cmTC_e2e66.dir/src.cxx.o: In function `main':
src.cxx:(.text+0x46): undefined reference to `pthread_atfork'
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_e2e66.dir/build.make:107: cmTC_e2e66] Error 1
gmake[1]: Leaving directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:141: cmTC_e2e66/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_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: /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake cmTC_6b912/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake  -f CMakeFiles/cmTC_6b912.dir/build.make CMakeFiles/cmTC_6b912.dir/build
gmake[1]: Entering directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_6b912.dir/CheckFunctionExists.cxx.o
/opt/dtk-21.04/bin/hipcc    -DCHECK_FUNCTION_EXISTS=pthread_create   -std=gnu++11 -o CMakeFiles/cmTC_6b912.dir/CheckFunctionExists.cxx.o -c /home/huchen/FAISS/faiss/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx
/home/huchen/FAISS/faiss/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>:3: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,
       ~~~ ^
/home/huchen/FAISS/faiss/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:17:3: error: no matching function for call to 'pthread_create'
  CHECK_FUNCTION_EXISTS();
  ^~~~~~~~~~~~~~~~~~~~~
<command line>:3: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 gfx900.
gmake[1]: *** [CMakeFiles/cmTC_6b912.dir/build.make:86: CMakeFiles/cmTC_6b912.dir/CheckFunctionExists.cxx.o] Error 1
gmake[1]: Leaving directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:141: cmTC_6b912/fast] Error 2



Determining if the function pthread_create exists in the pthread failed with the following output:
Change Dir: /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake cmTC_d2507/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake  -f CMakeFiles/cmTC_d2507.dir/build.make CMakeFiles/cmTC_d2507.dir/build
gmake[1]: Entering directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_d2507.dir/CheckFunctionExists.cxx.o
/opt/dtk-21.04/bin/hipcc    -DCHECK_FUNCTION_EXISTS=pthread_create   -std=gnu++11 -o CMakeFiles/cmTC_d2507.dir/CheckFunctionExists.cxx.o -c /home/huchen/FAISS/faiss/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx
/home/huchen/FAISS/faiss/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>:3: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,
       ~~~ ^
/home/huchen/FAISS/faiss/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:17:3: error: no matching function for call to 'pthread_create'
  CHECK_FUNCTION_EXISTS();
  ^~~~~~~~~~~~~~~~~~~~~
<command line>:3: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 gfx900.
gmake[1]: *** [CMakeFiles/cmTC_d2507.dir/build.make:86: CMakeFiles/cmTC_d2507.dir/CheckFunctionExists.cxx.o] Error 1
gmake[1]: Leaving directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:141: cmTC_d2507/fast] Error 2



Detecting CXX OpenMP version failed with the following output:
Change Dir: /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake cmTC_45fd1/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake  -f CMakeFiles/cmTC_45fd1.dir/build.make CMakeFiles/cmTC_45fd1.dir/build
gmake[1]: Entering directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_45fd1.dir/OpenMPCheckVersion.cpp.o
/opt/dtk-21.04/bin/hipcc    -fopenmp=libomp   -std=gnu++11 -o CMakeFiles/cmTC_45fd1.dir/OpenMPCheckVersion.cpp.o -c /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:6:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/100000)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:7:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/10000)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:8:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/1000)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:9:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/100)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:10:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/10)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:11:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/1)%10)),
                                     ^
6 errors generated when compiling for gfx900.
gmake[1]: *** [CMakeFiles/cmTC_45fd1.dir/build.make:86: CMakeFiles/cmTC_45fd1.dir/OpenMPCheckVersion.cpp.o] Error 1
gmake[1]: Leaving directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:141: cmTC_45fd1/fast] Error 2



Detecting CXX OpenMP version failed with the following output:
Change Dir: /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake cmTC_bc418/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake  -f CMakeFiles/cmTC_bc418.dir/build.make CMakeFiles/cmTC_bc418.dir/build
gmake[1]: Entering directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_bc418.dir/OpenMPCheckVersion.cpp.o
/opt/dtk-21.04/bin/hipcc    -fopenmp=libomp   -std=gnu++11 -o CMakeFiles/cmTC_bc418.dir/OpenMPCheckVersion.cpp.o -c /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:6:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/100000)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:7:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/10000)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:8:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/1000)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:9:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/100)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:10:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/10)%10)),
                                     ^
/home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:11:38: error: use of undeclared identifier '_OPENMP'
                            ('0' + ((_OPENMP/1)%10)),
                                     ^
6 errors generated when compiling for gfx900.
gmake[1]: *** [CMakeFiles/cmTC_bc418.dir/build.make:86: CMakeFiles/cmTC_bc418.dir/OpenMPCheckVersion.cpp.o] Error 1
gmake[1]: Leaving directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:141: cmTC_bc418/fast] Error 2