Performing C++ SOURCE FILE Test SUPPORT_GLIBCXX_USE_C99 failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_6f65a [1/2] Building CXX object CMakeFiles/cmTC_6f65a.dir/src.cxx.o FAILED: CMakeFiles/cmTC_6f65a.dir/src.cxx.o /usr/bin/c++ -DSUPPORT_GLIBCXX_USE_C99 -std=c++14 -o CMakeFiles/cmTC_6f65a.dir/src.cxx.o -c src.cxx c++: error: unrecognized command line option '-std=c++14' ninja: build stopped: subcommand failed. Source file was: #include #include int main() { int a = std::isinf(3.0); int b = std::isnan(0.0); std::string s = std::to_string(1); return 0; } Performing C++ SOURCE FILE Test SUPPORT_GLIBCXX_USE_C99 failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_38313 [1/2] Building CXX object CMakeFiles/cmTC_38313.dir/src.cxx.o FAILED: CMakeFiles/cmTC_38313.dir/src.cxx.o /usr/bin/c++ -DSUPPORT_GLIBCXX_USE_C99 -std=c++14 -o CMakeFiles/cmTC_38313.dir/src.cxx.o -c src.cxx c++: error: unrecognized command line option '-std=c++14' ninja: build stopped: subcommand failed. Source file was: #include #include int main() { int a = std::isinf(3.0); int b = std::isnan(0.0); std::string s = std::to_string(1); return 0; } Performing C++ SOURCE FILE Test CAFFE2_IS_NUMA_AVAILABLE failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_f82b0 [1/2] Building CXX object CMakeFiles/cmTC_f82b0.dir/src.cxx.o FAILED: CMakeFiles/cmTC_f82b0.dir/src.cxx.o /usr/bin/c++ -DCAFFE2_IS_NUMA_AVAILABLE -std=c++11 -o CMakeFiles/cmTC_f82b0.dir/src.cxx.o -c src.cxx src.cxx:1:18: fatal error: numa.h: No such file or directory #include ^ compilation terminated. ninja: build stopped: subcommand failed. Source file was: #include #include int main(int argc, char** argv) { } Performing C++ SOURCE FILE Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_7fa23 [1/2] Building CXX object CMakeFiles/cmTC_7fa23.dir/src.cxx.o FAILED: CMakeFiles/cmTC_7fa23.dir/src.cxx.o /usr/bin/c++ -DCAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING -std=c++11 -o CMakeFiles/cmTC_7fa23.dir/src.cxx.o -c src.cxx src.cxx:1:30: fatal error: glog/stl_logging.h: No such file or directory #include ^ compilation terminated. ninja: build stopped: subcommand failed. Source file was: #include int main(int argc, char** argv) { return 0; } Performing C++ SOURCE FILE Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_24300 [1/2] Building CXX object CMakeFiles/cmTC_24300.dir/src.cxx.o FAILED: CMakeFiles/cmTC_24300.dir/src.cxx.o /usr/bin/c++ -Wno-deprecated -DCAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS -mavx512f -mavx512dq -mavx512vl -o CMakeFiles/cmTC_24300.dir/src.cxx.o -c src.cxx c++: error: unrecognized command line option '-mavx512f' c++: error: unrecognized command line option '-mavx512dq' c++: error: unrecognized command line option '-mavx512vl' ninja: build stopped: subcommand failed. Source file was: #if defined(_MSC_VER) #include #else #include #endif // check avx512f __m512 addConstant(__m512 arg) { return _mm512_add_ps(arg, _mm512_set1_ps(1.f)); } // check avx512dq __m512 andConstant(__m512 arg) { return _mm512_and_ps(arg, _mm512_set1_ps(1.f)); } int main() { __m512i a = _mm512_set1_epi32(1); __m256i ymm = _mm512_extracti64x4_epi64(a, 0); ymm = _mm256_abs_epi64(ymm); // check avx512vl __mmask16 m = _mm512_cmp_epi32_mask(a, a, _MM_CMPINT_EQ); __m512i r = _mm512_andnot_si512(a, a); } Determining if the pthread_create exist failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_7875f [1/2] Building C object CMakeFiles/cmTC_7875f.dir/CheckSymbolExists.c.o [2/2] Linking C executable cmTC_7875f FAILED: cmTC_7875f : && /usr/bin/cc -rdynamic CMakeFiles/cmTC_7875f.dir/CheckSymbolExists.c.o -o cmTC_7875f && : CMakeFiles/cmTC_7875f.dir/CheckSymbolExists.c.o: In function `main': CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. File /torch/pytorch/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include 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: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_b9897 [1/2] Building C object CMakeFiles/cmTC_b9897.dir/CheckFunctionExists.c.o [2/2] Linking C executable cmTC_b9897 FAILED: cmTC_b9897 : && /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_b9897.dir/CheckFunctionExists.c.o -o cmTC_b9897 -lpthreads && : /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Performing C SOURCE FILE Test NNPACK_ARCH_IS_X86_32 failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_ff962 [1/2] Building C object CMakeFiles/cmTC_ff962.dir/src.c.o FAILED: CMakeFiles/cmTC_ff962.dir/src.c.o /usr/bin/cc -DNNPACK_ARCH_IS_X86_32 -o CMakeFiles/cmTC_ff962.dir/src.c.o -c src.c src.c:3:10: error: #error AVX only on x86_64 #error AVX only on x86_64 ^ ninja: build stopped: subcommand failed. Source file was: #if ! (defined(__i386) || defined(_M_IX86)) #error AVX only on x86_64 #endif int main() { return 0; } Performing C++ SOURCE FILE Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_b77b1 [1/2] Building CXX object CMakeFiles/cmTC_b77b1.dir/src.cxx.o FAILED: CMakeFiles/cmTC_b77b1.dir/src.cxx.o /usr/bin/c++ -Wno-deprecated -fvisibility-inlines-hidden -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -DHAVE_CXX_FLAG_WSHORTEN_64_TO_32 -Wshorten-64-to-32 -Wshorten-64-to-32 -o CMakeFiles/cmTC_b77b1.dir/src.cxx.o -c src.cxx c++: error: unrecognized command line option '-Wshorten-64-to-32' c++: error: unrecognized command line option '-Wshorten-64-to-32' ninja: build stopped: subcommand failed. Source file was: int main() { return 0; } Performing C++ SOURCE FILE Test HAVE_CXX_FLAG_WD654 failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_bcbd9 [1/2] Building CXX object CMakeFiles/cmTC_bcbd9.dir/src.cxx.o FAILED: CMakeFiles/cmTC_bcbd9.dir/src.cxx.o /usr/bin/c++ -Wno-deprecated -fvisibility-inlines-hidden -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -Wfloat-equal -fstrict-aliasing -Wno-deprecated-declarations -Wstrict-aliasing -DHAVE_CXX_FLAG_WD654 -wd654 -wd654 -o CMakeFiles/cmTC_bcbd9.dir/src.cxx.o -c src.cxx c++: error: unrecognized command line option '-wd654' c++: error: unrecognized command line option '-wd654' ninja: build stopped: subcommand failed. Source file was: int main() { return 0; } Performing C++ SOURCE FILE Test HAVE_CXX_FLAG_WTHREAD_SAFETY failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_2703f [1/2] Building CXX object CMakeFiles/cmTC_2703f.dir/src.cxx.o FAILED: CMakeFiles/cmTC_2703f.dir/src.cxx.o /usr/bin/c++ -Wno-deprecated -fvisibility-inlines-hidden -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -Wfloat-equal -fstrict-aliasing -Wno-deprecated-declarations -Wstrict-aliasing -DHAVE_CXX_FLAG_WTHREAD_SAFETY -Wthread-safety -Wthread-safety -o CMakeFiles/cmTC_2703f.dir/src.cxx.o -c src.cxx c++: error: unrecognized command line option '-Wthread-safety' c++: error: unrecognized command line option '-Wthread-safety' ninja: build stopped: subcommand failed. Source file was: int main() { return 0; } Performing C SOURCE FILE Test C_HAS_AVX_1 failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_ee9b0 [1/2] Building C object CMakeFiles/cmTC_ee9b0.dir/src.c.o FAILED: CMakeFiles/cmTC_ee9b0.dir/src.c.o /usr/bin/cc -I/root/anaconda2/include -I/usr/local/cuda/include -fopenmp -DC_HAS_AVX_1 -fPIE -o CMakeFiles/cmTC_ee9b0.dir/src.c.o -c src.c src.c: In function 'main': src.c:6:5: error: unknown type name '__m256' __m256 a; ^ ninja: build stopped: subcommand failed. Source file was: #include int main() { __m256 a; a = _mm256_set1_ps(0); return 0; } Performing C SOURCE FILE Test C_HAS_AVX2_1 failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_44250 [1/2] Building C object CMakeFiles/cmTC_44250.dir/src.c.o FAILED: CMakeFiles/cmTC_44250.dir/src.c.o /usr/bin/cc -I/root/anaconda2/include -I/usr/local/cuda/include -fopenmp -DC_HAS_AVX2_1 -fPIE -o CMakeFiles/cmTC_44250.dir/src.c.o -c src.c src.c: In function 'main': src.c:6:5: error: unknown type name '__m256i' __m256i a = {0}; ^ src.c:8:5: error: unknown type name '__m256i' __m256i x; ^ ninja: build stopped: subcommand failed. Source file was: #include int main() { __m256i a = {0}; a = _mm256_abs_epi16(a); __m256i x; _mm256_extract_epi64(x, 0); // we rely on this in our AVX2 code return 0; } Performing C SOURCE FILE Test CXX_HAS_AVX_1 failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_21157 [1/2] Building C object CMakeFiles/cmTC_21157.dir/src.c.o FAILED: CMakeFiles/cmTC_21157.dir/src.c.o /usr/bin/cc -I/root/anaconda2/include -I/usr/local/cuda/include -fopenmp -DCXX_HAS_AVX_1 -fPIE -o CMakeFiles/cmTC_21157.dir/src.c.o -c src.c src.c: In function 'main': src.c:6:5: error: unknown type name '__m256' __m256 a; ^ ninja: build stopped: subcommand failed. Source file was: #include int main() { __m256 a; a = _mm256_set1_ps(0); return 0; } Performing C SOURCE FILE Test CXX_HAS_AVX2_1 failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_43fee [1/2] Building C object CMakeFiles/cmTC_43fee.dir/src.c.o FAILED: CMakeFiles/cmTC_43fee.dir/src.c.o /usr/bin/cc -I/root/anaconda2/include -I/usr/local/cuda/include -fopenmp -DCXX_HAS_AVX2_1 -fPIE -o CMakeFiles/cmTC_43fee.dir/src.c.o -c src.c src.c: In function 'main': src.c:6:5: error: unknown type name '__m256i' __m256i a = {0}; ^ src.c:8:5: error: unknown type name '__m256i' __m256i x; ^ ninja: build stopped: subcommand failed. Source file was: #include int main() { __m256i a = {0}; a = _mm256_abs_epi16(a); __m256i x; _mm256_extract_epi64(x, 0); // we rely on this in our AVX2 code return 0; } Performing C SOURCE FILE Test BLAS_F2C_DOUBLE_WORKS failed with the following compile output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_57e2d [1/2] Building C object CMakeFiles/cmTC_57e2d.dir/src.c.o [2/2] Linking C executable cmTC_57e2d ...and run output: Return value: 1 Source file was: #include #include float x[4] = { 1, 2, 3, 4 }; float y[4] = { .1, .01, .001, .0001 }; int four = 4; int one = 1; extern double sdot_(); int main() { int i; double r = sdot_(&four, x, &one, y, &one); exit((float)r != (float).1234); } Performing C SOURCE FILE Test COMPILER_SUPPORTS_LONG_DOUBLE failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_e0ec1 [1/2] Building C object CMakeFiles/cmTC_e0ec1.dir/src.c.o FAILED: CMakeFiles/cmTC_e0ec1.dir/src.c.o /usr/bin/cc -I/root/anaconda2/include -I/usr/local/cuda/include -fopenmp -Wno-ignored-qualifiers -Wno-absolute-value -DCOMPILER_SUPPORTS_LONG_DOUBLE -fPIE -o CMakeFiles/cmTC_e0ec1.dir/src.c.o -c src.c src.c: In function 'vcast_vl_l': src.c:3:3: internal compiler error: in type_natural_mode, at config/i386/i386.c:6065 vlongdouble vcast_vl_l(long double d) { return (vlongdouble) { d, d }; } ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/ccPWUt1V.out file, please attach this to your bugreport. ninja: build stopped: subcommand failed. Source file was: typedef long double vlongdouble __attribute__((vector_size(sizeof(long double)*2))); vlongdouble vcast_vl_l(long double d) { return (vlongdouble) { d, d }; } int main() { vlongdouble vld = vcast_vl_l(0); } Performing C SOURCE FILE Test COMPILER_SUPPORTS_AVX512F failed with the following output: Change Dir: /torch/pytorch/build/CMakeFiles/CMakeTmp Run Build Command(s):/root/anaconda2/bin/ninja cmTC_47198 [1/2] Building C object CMakeFiles/cmTC_47198.dir/src.c.o FAILED: CMakeFiles/cmTC_47198.dir/src.c.o /usr/bin/cc -I/root/anaconda2/include -I/usr/local/cuda/include -fopenmp -Wno-ignored-qualifiers -Wno-absolute-value -DCOMPILER_SUPPORTS_AVX512F -mavx512f -fPIE -o CMakeFiles/cmTC_47198.dir/src.c.o -c src.c cc: error: unrecognized command line option '-mavx512f' ninja: build stopped: subcommand failed. Source file was: #if defined(_MSC_VER) #include #else #include #endif __m512 addConstant(__m512 arg) { return _mm512_add_ps(arg, _mm512_set1_ps(1.f)); } int main() { __m512i a = _mm512_set1_epi32(1); __m256i ymm = _mm512_extracti64x4_epi64(a, 0); __mmask16 m = _mm512_cmp_epi32_mask(a, a, _MM_CMPINT_EQ); __m512i r = _mm512_andnot_si512(a, a); }