Advertisement
Guest User

Untitled

a guest
Aug 21st, 2020
708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.38 KB | None | 0 0
  1. Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
  2. Change Dir: ....../pytorch/build/CMakeFiles/CMakeTmp
  3.  
  4. Run Build Command(s):/usr/bin/make cmTC_702c5/fast && /usr/bin/make -f CMakeFiles/cmTC_702c5.dir/build.make CMakeFiles/cmTC_702c5.dir/build
  5. make[1]: Entering directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  6. Building C object CMakeFiles/cmTC_702c5.dir/src.c.o
  7. /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -fPIE -o CMakeFiles/cmTC_702c5.dir/src.c.o -c ....../pytorch/build/CMakeFiles/CMakeTmp/src.c
  8. Linking C executable cmTC_702c5
  9. /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_702c5.dir/link.txt --verbose=1
  10. /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -rdynamic CMakeFiles/cmTC_702c5.dir/src.c.o -o cmTC_702c5
  11. /usr/bin/ld: CMakeFiles/cmTC_702c5.dir/src.c.o: in function `main':
  12. src.c:(.text+0x46): undefined reference to `pthread_create'
  13. /usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
  14. /usr/bin/ld: src.c:(.text+0x5e): undefined reference to `pthread_cancel'
  15. /usr/bin/ld: src.c:(.text+0x6f): undefined reference to `pthread_join'
  16. collect2: error: ld returned 1 exit status
  17. make[1]: *** [CMakeFiles/cmTC_702c5.dir/build.make:106: cmTC_702c5] Error 1
  18. make[1]: Leaving directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  19. make: *** [Makefile:140: cmTC_702c5/fast] Error 2
  20.  
  21.  
  22. Source file was:
  23. #include <pthread.h>
  24.  
  25. void* test_func(void* data)
  26. {
  27. return data;
  28. }
  29.  
  30. int main(void)
  31. {
  32. pthread_t thread;
  33. pthread_create(&thread, NULL, test_func, NULL);
  34. pthread_detach(thread);
  35. pthread_cancel(thread);
  36. pthread_join(thread, NULL);
  37. pthread_atfork(NULL, NULL, NULL);
  38. pthread_exit(NULL);
  39.  
  40. return 0;
  41. }
  42.  
  43. Performing C SOURCE FILE Test NNPACK_ARCH_IS_X86_32 failed with the following output:
  44. Change Dir: ....../pytorch/build/CMakeFiles/CMakeTmp
  45.  
  46. Run Build Command(s):/usr/bin/make cmTC_dc8f6/fast && /usr/bin/make -f CMakeFiles/cmTC_dc8f6.dir/build.make CMakeFiles/cmTC_dc8f6.dir/build
  47. make[1]: Entering directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  48. Building C object CMakeFiles/cmTC_dc8f6.dir/src.c.o
  49. /usr/bin/cc -DNNPACK_ARCH_IS_X86_32 -o CMakeFiles/cmTC_dc8f6.dir/src.c.o -c ....../pytorch/build/CMakeFiles/CMakeTmp/src.c
  50. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:3:10: error: #error AVX only on x86_64
  51. 3 | #error AVX only on x86_64
  52. | ^~~~~
  53. make[1]: *** [CMakeFiles/cmTC_dc8f6.dir/build.make:85: CMakeFiles/cmTC_dc8f6.dir/src.c.o] Error 1
  54. make[1]: Leaving directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  55. make: *** [Makefile:140: cmTC_dc8f6/fast] Error 2
  56.  
  57.  
  58. Source file was:
  59.  
  60. #if ! (defined(__i386) || defined(_M_IX86))
  61. #error AVX only on x86_64
  62. #endif
  63. int main() {
  64. return 0;
  65. }
  66. Performing C SOURCE FILE Test UV_LINT_W4 failed with the following output:
  67. Change Dir: ....../pytorch/build/CMakeFiles/CMakeTmp
  68.  
  69. Run Build Command(s):/usr/bin/make cmTC_0f501/fast && /usr/bin/make -f CMakeFiles/cmTC_0f501.dir/build.make CMakeFiles/cmTC_0f501.dir/build
  70. make[1]: Entering directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  71. Building C object CMakeFiles/cmTC_0f501.dir/src.c.o
  72. /usr/bin/cc -fopenmp -DUV_LINT_W4 /W4 -o CMakeFiles/cmTC_0f501.dir/src.c.o -c ....../pytorch/build/CMakeFiles/CMakeTmp/src.c
  73. cc: error: /W4: No such file or directory
  74. make[1]: *** [CMakeFiles/cmTC_0f501.dir/build.make:85: CMakeFiles/cmTC_0f501.dir/src.c.o] Error 1
  75. make[1]: Leaving directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  76. make: *** [Makefile:140: cmTC_0f501/fast] Error 2
  77.  
  78.  
  79. Source file was:
  80. int main(void) { return 0; }
  81. Performing C SOURCE FILE Test C_HAS_AVX_1 failed with the following output:
  82. Change Dir: ....../pytorch/build/CMakeFiles/CMakeTmp
  83.  
  84. Run Build Command(s):/usr/bin/make cmTC_9b54a/fast && /usr/bin/make -f CMakeFiles/cmTC_9b54a.dir/build.make CMakeFiles/cmTC_9b54a.dir/build
  85. make[1]: Entering directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  86. Building C object CMakeFiles/cmTC_9b54a.dir/src.c.o
  87. /usr/bin/cc -fopenmp -DNDEBUG -DC_HAS_AVX_1 -fPIE -o CMakeFiles/cmTC_9b54a.dir/src.c.o -c ....../pytorch/build/CMakeFiles/CMakeTmp/src.c
  88. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c: In function ‘main’:
  89. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:7:7: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
  90. 7 | a = _mm256_set1_ps(0);
  91. | ~~^~~~~~~~~~~~~~~~~~~
  92. In file included from /usr/lib/gcc/x86_64-linux-gnu/9/include/immintrin.h:51,
  93. from ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:2:
  94. /usr/lib/gcc/x86_64-linux-gnu/9/include/avxintrin.h:1311:1: error: inlining failed in call to always_inline ‘_mm256_set1_ps’: target specific option mismatch
  95. 1311 | _mm256_set1_ps (float __A)
  96. | ^~~~~~~~~~~~~~
  97. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:7:9: note: called from here
  98. 7 | a = _mm256_set1_ps(0);
  99. | ^~~~~~~~~~~~~~~~~
  100. make[1]: *** [CMakeFiles/cmTC_9b54a.dir/build.make:85: CMakeFiles/cmTC_9b54a.dir/src.c.o] Error 1
  101. make[1]: Leaving directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  102. make: *** [Makefile:140: cmTC_9b54a/fast] Error 2
  103.  
  104.  
  105. Source file was:
  106.  
  107. #include <immintrin.h>
  108.  
  109. int main()
  110. {
  111. __m256 a;
  112. a = _mm256_set1_ps(0);
  113. return 0;
  114. }
  115.  
  116. Performing C SOURCE FILE Test C_HAS_AVX2_1 failed with the following output:
  117. Change Dir: ....../pytorch/build/CMakeFiles/CMakeTmp
  118.  
  119. Run Build Command(s):/usr/bin/make cmTC_0952d/fast && /usr/bin/make -f CMakeFiles/cmTC_0952d.dir/build.make CMakeFiles/cmTC_0952d.dir/build
  120. make[1]: Entering directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  121. Building C object CMakeFiles/cmTC_0952d.dir/src.c.o
  122. /usr/bin/cc -fopenmp -DNDEBUG -DC_HAS_AVX2_1 -fPIE -o CMakeFiles/cmTC_0952d.dir/src.c.o -c ....../pytorch/build/CMakeFiles/CMakeTmp/src.c
  123. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c: In function ‘main’:
  124. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:7:7: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
  125. 7 | a = _mm256_abs_epi16(a);
  126. | ~~^~~~~~~~~~~~~~~~~~~~~
  127. In file included from /usr/lib/gcc/x86_64-linux-gnu/9/include/immintrin.h:53,
  128. from ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:2:
  129. /usr/lib/gcc/x86_64-linux-gnu/9/include/avx2intrin.h:63:1: error: inlining failed in call to always_inline ‘_mm256_abs_epi16’: target specific option mismatch
  130. 63 | _mm256_abs_epi16 (__m256i __A)
  131. | ^~~~~~~~~~~~~~~~
  132. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:7:9: note: called from here
  133. 7 | a = _mm256_abs_epi16(a);
  134. | ^~~~~~~~~~~~~~~~~~~
  135. make[1]: *** [CMakeFiles/cmTC_0952d.dir/build.make:85: CMakeFiles/cmTC_0952d.dir/src.c.o] Error 1
  136. make[1]: Leaving directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  137. make: *** [Makefile:140: cmTC_0952d/fast] Error 2
  138.  
  139.  
  140. Source file was:
  141.  
  142. #include <immintrin.h>
  143.  
  144. int main()
  145. {
  146. __m256i a = {0};
  147. a = _mm256_abs_epi16(a);
  148. __m256i x;
  149. _mm256_extract_epi64(x, 0); // we rely on this in our AVX2 code
  150. return 0;
  151. }
  152.  
  153. Performing C SOURCE FILE Test CXX_HAS_AVX_1 failed with the following output:
  154. Change Dir: ....../pytorch/build/CMakeFiles/CMakeTmp
  155.  
  156. Run Build Command(s):/usr/bin/make cmTC_f0fd8/fast && /usr/bin/make -f CMakeFiles/cmTC_f0fd8.dir/build.make CMakeFiles/cmTC_f0fd8.dir/build
  157. make[1]: Entering directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  158. Building C object CMakeFiles/cmTC_f0fd8.dir/src.c.o
  159. /usr/bin/cc -fopenmp -DNDEBUG -DCXX_HAS_AVX_1 -fPIE -o CMakeFiles/cmTC_f0fd8.dir/src.c.o -c ....../pytorch/build/CMakeFiles/CMakeTmp/src.c
  160. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c: In function ‘main’:
  161. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:7:7: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
  162. 7 | a = _mm256_set1_ps(0);
  163. | ~~^~~~~~~~~~~~~~~~~~~
  164. In file included from /usr/lib/gcc/x86_64-linux-gnu/9/include/immintrin.h:51,
  165. from ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:2:
  166. /usr/lib/gcc/x86_64-linux-gnu/9/include/avxintrin.h:1311:1: error: inlining failed in call to always_inline ‘_mm256_set1_ps’: target specific option mismatch
  167. 1311 | _mm256_set1_ps (float __A)
  168. | ^~~~~~~~~~~~~~
  169. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:7:9: note: called from here
  170. 7 | a = _mm256_set1_ps(0);
  171. | ^~~~~~~~~~~~~~~~~
  172. make[1]: *** [CMakeFiles/cmTC_f0fd8.dir/build.make:85: CMakeFiles/cmTC_f0fd8.dir/src.c.o] Error 1
  173. make[1]: Leaving directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  174. make: *** [Makefile:140: cmTC_f0fd8/fast] Error 2
  175.  
  176.  
  177. Source file was:
  178.  
  179. #include <immintrin.h>
  180.  
  181. int main()
  182. {
  183. __m256 a;
  184. a = _mm256_set1_ps(0);
  185. return 0;
  186. }
  187.  
  188. Performing C SOURCE FILE Test CXX_HAS_AVX2_1 failed with the following output:
  189. Change Dir: ....../pytorch/build/CMakeFiles/CMakeTmp
  190.  
  191. Run Build Command(s):/usr/bin/make cmTC_58e3e/fast && /usr/bin/make -f CMakeFiles/cmTC_58e3e.dir/build.make CMakeFiles/cmTC_58e3e.dir/build
  192. make[1]: Entering directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  193. Building C object CMakeFiles/cmTC_58e3e.dir/src.c.o
  194. /usr/bin/cc -fopenmp -DNDEBUG -DCXX_HAS_AVX2_1 -fPIE -o CMakeFiles/cmTC_58e3e.dir/src.c.o -c ....../pytorch/build/CMakeFiles/CMakeTmp/src.c
  195. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c: In function ‘main’:
  196. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:7:7: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
  197. 7 | a = _mm256_abs_epi16(a);
  198. | ~~^~~~~~~~~~~~~~~~~~~~~
  199. In file included from /usr/lib/gcc/x86_64-linux-gnu/9/include/immintrin.h:53,
  200. from ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:2:
  201. /usr/lib/gcc/x86_64-linux-gnu/9/include/avx2intrin.h:63:1: error: inlining failed in call to always_inline ‘_mm256_abs_epi16’: target specific option mismatch
  202. 63 | _mm256_abs_epi16 (__m256i __A)
  203. | ^~~~~~~~~~~~~~~~
  204. ....../pytorch/build/CMakeFiles/CMakeTmp/src.c:7:9: note: called from here
  205. 7 | a = _mm256_abs_epi16(a);
  206. | ^~~~~~~~~~~~~~~~~~~
  207. make[1]: *** [CMakeFiles/cmTC_58e3e.dir/build.make:85: CMakeFiles/cmTC_58e3e.dir/src.c.o] Error 1
  208. make[1]: Leaving directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  209. make: *** [Makefile:140: cmTC_58e3e/fast] Error 2
  210.  
  211.  
  212. Source file was:
  213.  
  214. #include <immintrin.h>
  215.  
  216. int main()
  217. {
  218. __m256i a = {0};
  219. a = _mm256_abs_epi16(a);
  220. __m256i x;
  221. _mm256_extract_epi64(x, 0); // we rely on this in our AVX2 code
  222. return 0;
  223. }
  224.  
  225. Performing C SOURCE FILE Test BLAS_F2C_DOUBLE_WORKS failed with the following compile output:
  226. Change Dir: ....../pytorch/build/CMakeFiles/CMakeTmp
  227.  
  228. Run Build Command(s):/usr/bin/make cmTC_bff7f/fast && /usr/bin/make -f CMakeFiles/cmTC_bff7f.dir/build.make CMakeFiles/cmTC_bff7f.dir/build
  229. make[1]: Entering directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  230. Building C object CMakeFiles/cmTC_bff7f.dir/src.c.o
  231. /usr/bin/cc -fopenmp -DNDEBUG -DBLAS_F2C_DOUBLE_WORKS -fPIE -o CMakeFiles/cmTC_bff7f.dir/src.c.o -c ....../pytorch/build/CMakeFiles/CMakeTmp/src.c
  232. Linking C executable cmTC_bff7f
  233. /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_bff7f.dir/link.txt --verbose=1
  234. /usr/bin/cc -fopenmp -DNDEBUG -DBLAS_F2C_DOUBLE_WORKS -rdynamic -pthread CMakeFiles/cmTC_bff7f.dir/src.c.o -o cmTC_bff7f -Wl,-rpath,/opt/intel/mkl/lib/intel64 /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so /opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so /opt/intel/mkl/lib/intel64/libmkl_core.so -fopenmp /usr/lib/x86_64-linux-gnu/libpthread.so -lm /usr/lib/x86_64-linux-gnu/libdl.so
  235. make[1]: Leaving directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  236.  
  237.  
  238. ...and run output:
  239.  
  240. Return value: 1
  241. Source file was:
  242.  
  243. #include <stdlib.h>
  244. #include <stdio.h>
  245. float x[4] = { 1, 2, 3, 4 };
  246. float y[4] = { .1, .01, .001, .0001 };
  247. int four = 4;
  248. int one = 1;
  249. extern double sdot_();
  250. int main() {
  251. int i;
  252. double r = sdot_(&four, x, &one, y, &one);
  253. exit((float)r != (float).1234);
  254. }
  255. Determining if the strtod_l exist failed with the following output:
  256. Change Dir: ....../pytorch/build/CMakeFiles/CMakeTmp
  257.  
  258. Run Build Command(s):/usr/bin/make cmTC_99e18/fast && /usr/bin/make -f CMakeFiles/cmTC_99e18.dir/build.make CMakeFiles/cmTC_99e18.dir/build
  259. make[1]: Entering directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  260. Building C object CMakeFiles/cmTC_99e18.dir/CheckSymbolExists.c.o
  261. /usr/bin/cc -fopenmp -DNDEBUG -fPIE -std=gnu11 -o CMakeFiles/cmTC_99e18.dir/CheckSymbolExists.c.o -c ....../pytorch/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  262. ....../pytorch/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
  263. ....../pytorch/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘strtod_l’ undeclared (first use in this function); did you mean ‘strtoull’?
  264. 8 | return ((int*)(&strtod_l))[argc];
  265. | ^~~~~~~~
  266. | strtoull
  267. ....../pytorch/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
  268. make[1]: *** [CMakeFiles/cmTC_99e18.dir/build.make:85: CMakeFiles/cmTC_99e18.dir/CheckSymbolExists.c.o] Error 1
  269. make[1]: Leaving directory '....../pytorch/build/CMakeFiles/CMakeTmp'
  270. make: *** [Makefile:140: cmTC_99e18/fast] Error 2
  271.  
  272.  
  273. File ....../pytorch/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  274. /* */
  275. #include <stdlib.h>
  276.  
  277. int main(int argc, char** argv)
  278. {
  279. (void)argv;
  280. #ifndef strtod_l
  281. return ((int*)(&strtod_l))[argc];
  282. #else
  283. (void)argc;
  284. return 0;
  285. #endif
  286. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement