oracle / graalpython

GraalPy – A high-performance embeddable Python 3 runtime for Java
https://www.graalvm.org/python/
Other
1.25k stars 111 forks source link

pip install numpy (and others) does not work in arch linux #405

Closed cric96 closed 3 months ago

cric96 commented 4 months ago

I am trying to use graalpy in arch linux. Although the interpreter works, the patches applied seem to lead to compilation errors when trying to install numpy (torch, pandas). In particular, installing numpy throws this final error:

error: Command "gcc -DNDEBUG -D_GNU_SOURCE=1 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Ibuild/src.linux-x86_64-3.10/numpy/core/src/multiarray -Ibuild/src.linux-x86_64-3.10/numpy/core/src/common -Ibuild/src.linux-x86_64-3.10/numpy/core/src/umath -Inumpy/core/include -Ibuild/src.linux-x86_64-3.10/numpy/core/include/numpy -Ibuild/src.linux-x86_64-3.10/numpy/distutils/include -Ibuild/src.linux-x86_64-3.10/numpy/core/src/npysort -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -I/home/gianluca/.pyenv/versions/graalpy-24.0.0/include/python3.10 -Ibuild/src.linux-x86_64-3.10/numpy/core/src/common -Ibuild/src.linux-x86_64-3.10/numpy/core/src/npymath -c build/src.linux-x86_64-3.10/numpy/core/src/umath/loops.c -o build/temp.linux-x86_64-3.10/build/src.linux-x86_64-3.10/numpy/core/src/umath/loops.o -MMD -MF build/temp.linux-x86_64-3.10/build/src.linux-x86_64-3.10/numpy/core/src/umath/loops.o.d -msse -msse2 -msse3" failed with exit status 1

Any suggestions?

msimacek commented 4 months ago

Hi @cric96, the real compilation error is somewhere above that message, can you please post the whole log?

On my system, the older versions of numpy that are typically used as a build dependency of other packages also don't compile with current gcc anymore. It has nothing to do with our patches, just some changes in gcc. For me, it helps to compile it with clang (CC=clang pip install ...).

cric96 commented 4 months ago

Hello @msimacek, indeed it works for numpy, but it does not work for torch:

 FAILED: third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/Utils.cc.o
      /usr/bin/c++ -DFBGEMM_STATIC -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/cpuinfo/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/third_party/asmjit/src -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/protobuf/src -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/gemmlowp -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/neon2sse -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/XNNPACK/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -Wall -Wextra -Wno-deprecated-declarations -O3 -DNDEBUG -std=c++14 -fPIC -fvisibility=hidden -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/Utils.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/Utils.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/Utils.cc.o -c /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/Utils.cc
      In file included from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/Utils.h:10,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/Utils.cc:8:
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./UtilsAvx2.h:47:37: error: ‘int32_t’ in namespace ‘std’ does not name a type
         47 | template <typename BIAS_TYPE = std::int32_t>
            |                                     ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./UtilsAvx2.h:50:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         50 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./UtilsAvx2.h:51:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         51 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./UtilsAvx2.h:52:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         52 |   std::int32_t C_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./UtilsAvx2.h:54:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         54 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./UtilsAvx2.h:55:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         55 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./UtilsAvx2.h:57:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         57 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./UtilsAvx2.h:66:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         66 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./UtilsAvx2.h:67:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         67 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./UtilsAvx2.h:70:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         70 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./UtilsAvx2.h:71:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         71 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./UtilsAvx2.h:73:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         73 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/Utils.h:26:57: error: ‘uint8_t’ was not declared in this scope
         26 |       std::is_same<T, int8_t>::value || std::is_same<T, uint8_t>::value;
            |                                                         ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/Utils.h:15:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
         14 | #include <cmath>
        +++ |+#include <cstdint>
         15 | #include <string>
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/Utils.h:26:64: error: template argument 2 is invalid
         26 |       std::is_same<T, int8_t>::value || std::is_same<T, uint8_t>::value;
            |                                                                ^
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/Utils.h:231:39: error: ‘int32_t’ in namespace ‘std’ does not name a type
        231 | template <int SIZE, typename T = std::int32_t>
            |                                       ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/Utils.h:241:32: error: ‘int32_t’ in namespace ‘std’ does not name a type
        241 | template <typename accT = std::int32_t>
            |                                ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/Utils.h:306:10: error: ‘std::int64_t’ has not been declared
        306 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/Utils.h:307:10: error: ‘std::int64_t’ has not been declared
        307 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/Utils.h:308:10: error: ‘std::int64_t’ has not been declared
        308 |     std::int64_t& end);
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/Utils.h:349:10: error: ‘std::int64_t’ has not been declared
        349 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/Utils.h:351:10: error: ‘std::int64_t’ has not been declared
        351 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/Utils.h:352:10: error: ‘std::int64_t’ has not been declared
        352 |     std::int64_t& end);
            |          ^~~~~~~
      [3821/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16Avx512.cc.o
      FAILED: third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16Avx512.cc.o
      /usr/bin/c++ -DFBGEMM_STATIC -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/cpuinfo/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/third_party/asmjit/src -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/protobuf/src -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/gemmlowp -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/neon2sse -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/XNNPACK/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -Wall -Wextra -Wno-deprecated-declarations -O3 -DNDEBUG -std=c++14 -fPIC -fvisibility=hidden -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16Avx512.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16Avx512.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16Avx512.cc.o -c /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/GenerateKernelU8S8S32ACC16Avx512.cc
      In file included from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:10,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/SimdUtils.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/./CodeGenHelpers.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/GenerateKernelU8S8S32ACC16Avx512.cc:8:
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:47:37: error: ‘int32_t’ in namespace ‘std’ does not name a type
         47 | template <typename BIAS_TYPE = std::int32_t>
            |                                     ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:50:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         50 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:51:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         51 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:52:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         52 |   std::int32_t C_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:54:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         54 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:55:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         55 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:57:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         57 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:66:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         66 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:67:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         67 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:70:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         70 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:71:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         71 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:73:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         73 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:231:39: error: ‘int32_t’ in namespace ‘std’ does not name a type
        231 | template <int SIZE, typename T = std::int32_t>
            |                                       ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:241:32: error: ‘int32_t’ in namespace ‘std’ does not name a type
        241 | template <typename accT = std::int32_t>
            |                                ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:306:10: error: ‘std::int64_t’ has not been declared
        306 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:307:10: error: ‘std::int64_t’ has not been declared
        307 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:308:10: error: ‘std::int64_t’ has not been declared
        308 |     std::int64_t& end);
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:349:10: error: ‘std::int64_t’ has not been declared
        349 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:351:10: error: ‘std::int64_t’ has not been declared
        351 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:352:10: error: ‘std::int64_t’ has not been declared
        352 |     std::int64_t& end);
            |          ^~~~~~~
      [3822/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmFPCommon.cc.o
      FAILED: third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmFPCommon.cc.o
      /usr/bin/c++ -DFBGEMM_STATIC -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/cpuinfo/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/third_party/asmjit/src -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/protobuf/src -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/gemmlowp -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/neon2sse -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/XNNPACK/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -Wall -Wextra -Wno-deprecated-declarations -O3 -DNDEBUG -std=c++14 -fPIC -fvisibility=hidden -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmFPCommon.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmFPCommon.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmFPCommon.cc.o -c /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmFPCommon.cc
      In file included from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:10,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/SimdUtils.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/FbgemmPackMatrixB.h:17,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/FbgemmFPCommon.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmFPCommon.cc:8:
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:47:37: error: ‘int32_t’ in namespace ‘std’ does not name a type
         47 | template <typename BIAS_TYPE = std::int32_t>
            |                                     ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:50:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         50 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:51:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         51 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:52:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         52 |   std::int32_t C_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:54:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         54 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:55:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         55 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:57:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         57 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:66:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         66 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:67:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         67 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:70:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         70 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:71:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         71 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:73:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         73 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:231:39: error: ‘int32_t’ in namespace ‘std’ does not name a type
        231 | template <int SIZE, typename T = std::int32_t>
            |                                       ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:241:32: error: ‘int32_t’ in namespace ‘std’ does not name a type
        241 | template <typename accT = std::int32_t>
            |                                ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:306:10: error: ‘std::int64_t’ has not been declared
        306 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:307:10: error: ‘std::int64_t’ has not been declared
        307 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:308:10: error: ‘std::int64_t’ has not been declared
        308 |     std::int64_t& end);
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:349:10: error: ‘std::int64_t’ has not been declared
        349 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:351:10: error: ‘std::int64_t’ has not been declared
        351 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:352:10: error: ‘std::int64_t’ has not been declared
        352 |     std::int64_t& end);
            |          ^~~~~~~
      [3823/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/EmbeddingSpMDMAvx2.cc.o
      [3824/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmBfloat16ConvertAvx2.cc.o
      [3825/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelDirectConvU8S8S32ACC32.cc.o
      FAILED: third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelDirectConvU8S8S32ACC32.cc.o
      /usr/bin/c++ -DFBGEMM_STATIC -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/cpuinfo/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/third_party/asmjit/src -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/protobuf/src -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/gemmlowp -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/neon2sse -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/XNNPACK/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -Wall -Wextra -Wno-deprecated-declarations -O3 -DNDEBUG -std=c++14 -fPIC -fvisibility=hidden -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelDirectConvU8S8S32ACC32.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelDirectConvU8S8S32ACC32.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelDirectConvU8S8S32ACC32.cc.o -c /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/GenerateKernelDirectConvU8S8S32ACC32.cc
      In file included from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:10,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/SimdUtils.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/./CodeGenHelpers.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/GenerateKernelDirectConvU8S8S32ACC32.cc:8:
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:47:37: error: ‘int32_t’ in namespace ‘std’ does not name a type
         47 | template <typename BIAS_TYPE = std::int32_t>
            |                                     ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:50:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         50 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:51:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         51 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:52:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         52 |   std::int32_t C_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:54:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         54 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:55:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         55 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:57:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         57 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:66:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         66 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:67:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         67 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:70:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         70 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:71:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         71 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:73:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         73 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:231:39: error: ‘int32_t’ in namespace ‘std’ does not name a type
        231 | template <int SIZE, typename T = std::int32_t>
            |                                       ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:241:32: error: ‘int32_t’ in namespace ‘std’ does not name a type
        241 | template <typename accT = std::int32_t>
            |                                ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:306:10: error: ‘std::int64_t’ has not been declared
        306 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:307:10: error: ‘std::int64_t’ has not been declared
        307 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:308:10: error: ‘std::int64_t’ has not been declared
        308 |     std::int64_t& end);
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:349:10: error: ‘std::int64_t’ has not been declared
        349 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:351:10: error: ‘std::int64_t’ has not been declared
        351 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:352:10: error: ‘std::int64_t’ has not been declared
        352 |     std::int64_t& end);
            |          ^~~~~~~
      [3826/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx2.cc.o
      FAILED: third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx2.cc.o
      /usr/bin/c++ -DFBGEMM_STATIC -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/cpuinfo/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/third_party/asmjit/src -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/protobuf/src -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/gemmlowp -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/neon2sse -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/XNNPACK/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -Wall -Wextra -Wno-deprecated-declarations -O3 -DNDEBUG -std=c++14 -fPIC -fvisibility=hidden -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx2.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx2.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx2.cc.o -c /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/GroupwiseConvAcc32Avx2.cc
      In file included from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:10,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/SimdUtils.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/./CodeGenHelpers.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/GroupwiseConvAcc32Avx2.cc:9:
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:47:37: error: ‘int32_t’ in namespace ‘std’ does not name a type
         47 | template <typename BIAS_TYPE = std::int32_t>
            |                                     ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:50:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         50 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:51:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         51 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:52:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         52 |   std::int32_t C_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:54:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         54 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:55:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         55 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:57:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         57 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:66:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         66 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:67:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         67 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:70:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         70 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:71:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         71 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:73:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         73 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:231:39: error: ‘int32_t’ in namespace ‘std’ does not name a type
        231 | template <int SIZE, typename T = std::int32_t>
            |                                       ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:241:32: error: ‘int32_t’ in namespace ‘std’ does not name a type
        241 | template <typename accT = std::int32_t>
            |                                ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:306:10: error: ‘std::int64_t’ has not been declared
        306 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:307:10: error: ‘std::int64_t’ has not been declared
        307 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:308:10: error: ‘std::int64_t’ has not been declared
        308 |     std::int64_t& end);
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:349:10: error: ‘std::int64_t’ has not been declared
        349 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:351:10: error: ‘std::int64_t’ has not been declared
        351 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:352:10: error: ‘std::int64_t’ has not been declared
        352 |     std::int64_t& end);
            |          ^~~~~~~
      [3827/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernel.cc.o
      [3828/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16Avx512VNNI.cc.o
      [3829/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16.cc.o
      FAILED: third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16.cc.o
      /usr/bin/c++ -DFBGEMM_STATIC -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/cpuinfo/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/third_party/asmjit/src -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/protobuf/src -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/gemmlowp -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/neon2sse -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/XNNPACK/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -Wall -Wextra -Wno-deprecated-declarations -O3 -DNDEBUG -std=c++14 -fPIC -fvisibility=hidden -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16.cc.o -c /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/GenerateKernelU8S8S32ACC16.cc
      In file included from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:10,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/SimdUtils.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/./CodeGenHelpers.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/GenerateKernelU8S8S32ACC16.cc:8:
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:47:37: error: ‘int32_t’ in namespace ‘std’ does not name a type
         47 | template <typename BIAS_TYPE = std::int32_t>
            |                                     ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:50:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         50 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:51:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         51 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:52:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         52 |   std::int32_t C_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:54:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         54 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:55:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         55 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:57:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         57 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:66:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         66 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:67:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         67 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:70:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         70 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:71:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         71 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:73:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         73 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:231:39: error: ‘int32_t’ in namespace ‘std’ does not name a type
        231 | template <int SIZE, typename T = std::int32_t>
            |                                       ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:241:32: error: ‘int32_t’ in namespace ‘std’ does not name a type
        241 | template <typename accT = std::int32_t>
            |                                ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:306:10: error: ‘std::int64_t’ has not been declared
        306 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:307:10: error: ‘std::int64_t’ has not been declared
        307 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:308:10: error: ‘std::int64_t’ has not been declared
        308 |     std::int64_t& end);
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:349:10: error: ‘std::int64_t’ has not been declared
        349 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:351:10: error: ‘std::int64_t’ has not been declared
        351 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:352:10: error: ‘std::int64_t’ has not been declared
        352 |     std::int64_t& end);
            |          ^~~~~~~
      [3830/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx512.cc.o
      FAILED: third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx512.cc.o
      /usr/bin/c++ -DFBGEMM_STATIC -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/cpuinfo/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/third_party/asmjit/src -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/protobuf/src -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/gemmlowp -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/neon2sse -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/XNNPACK/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -Wall -Wextra -Wno-deprecated-declarations -O3 -DNDEBUG -std=c++14 -fPIC -fvisibility=hidden -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx512.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx512.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx512.cc.o -c /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/GroupwiseConvAcc32Avx512.cc
      In file included from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:10,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/SimdUtils.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/./CodeGenHelpers.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/GroupwiseConvAcc32Avx512.cc:9:
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:47:37: error: ‘int32_t’ in namespace ‘std’ does not name a type
         47 | template <typename BIAS_TYPE = std::int32_t>
            |                                     ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:50:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         50 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:51:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         51 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:52:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         52 |   std::int32_t C_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:54:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         54 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:55:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         55 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:57:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         57 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:66:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         66 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:67:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         67 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:70:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         70 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:71:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         71 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:73:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         73 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:231:39: error: ‘int32_t’ in namespace ‘std’ does not name a type
        231 | template <int SIZE, typename T = std::int32_t>
            |                                       ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:241:32: error: ‘int32_t’ in namespace ‘std’ does not name a type
        241 | template <typename accT = std::int32_t>
            |                                ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:306:10: error: ‘std::int64_t’ has not been declared
        306 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:307:10: error: ‘std::int64_t’ has not been declared
        307 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:308:10: error: ‘std::int64_t’ has not been declared
        308 |     std::int64_t& end);
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:349:10: error: ‘std::int64_t’ has not been declared
        349 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:351:10: error: ‘std::int64_t’ has not been declared
        351 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:352:10: error: ‘std::int64_t’ has not been declared
        352 |     std::int64_t& end);
            |          ^~~~~~~
      [3831/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmFloat16ConvertAvx2.cc.o
      [3832/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC32.cc.o
      FAILED: third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC32.cc.o
      /usr/bin/c++ -DFBGEMM_STATIC -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/cpuinfo/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/third_party/asmjit/src -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include -I/tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/protobuf/src -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/gemmlowp -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/neon2sse -isystem /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/XNNPACK/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -Wall -Wextra -Wno-deprecated-declarations -O3 -DNDEBUG -std=c++14 -fPIC -fvisibility=hidden -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC32.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC32.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC32.cc.o -c /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/GenerateKernelU8S8S32ACC32.cc
      In file included from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:10,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/SimdUtils.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/./CodeGenHelpers.h:9,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/GenerateKernelU8S8S32ACC32.cc:8:
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:47:37: error: ‘int32_t’ in namespace ‘std’ does not name a type
         47 | template <typename BIAS_TYPE = std::int32_t>
            |                                     ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:50:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         50 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:51:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         51 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:52:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         52 |   std::int32_t C_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:54:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         54 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:55:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         55 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:57:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         57 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:66:8: error: ‘int32_t’ in namespace ‘std’ does not name a type
         66 |   std::int32_t A_zero_point;
            |        ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:67:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         67 |   const std::int32_t* B_zero_point;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:70:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         70 |   const std::int32_t* row_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:71:14: error: ‘int32_t’ in namespace ‘std’ does not name a type
         71 |   const std::int32_t* col_offsets;
            |              ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/././UtilsAvx2.h:73:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
         73 |   std::uint32_t ncols;
            |        ^~~~~~~~
            |        wint_t
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:231:39: error: ‘int32_t’ in namespace ‘std’ does not name a type
        231 | template <int SIZE, typename T = std::int32_t>
            |                                       ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:241:32: error: ‘int32_t’ in namespace ‘std’ does not name a type
        241 | template <typename accT = std::int32_t>
            |                                ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:306:10: error: ‘std::int64_t’ has not been declared
        306 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:307:10: error: ‘std::int64_t’ has not been declared
        307 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:308:10: error: ‘std::int64_t’ has not been declared
        308 |     std::int64_t& end);
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:349:10: error: ‘std::int64_t’ has not been declared
        349 |     std::int64_t total_work,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:351:10: error: ‘std::int64_t’ has not been declared
        351 |     std::int64_t& start,
            |          ^~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/include/fbgemm/./Utils.h:352:10: error: ‘std::int64_t’ has not been declared
        352 |     std::int64_t& end);
            |          ^~~~~~~
      [3833/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmI8DepthwisePerChannelQuantAvx2.cc.o
      [3834/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmSparseDenseAvx2.cc.o
      [3835/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC32Avx512VNNI.cc.o
      [3836/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/OptimizedKernelsAvx2.cc.o
      [3837/5942] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmSparseDenseInt8Avx2.cc.o
      In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/include/immintrin.h:53,
                       from /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc:13:
      In function ‘void _mm256_maskstore_epi32(int*, __m256i, __m256i)’,
          inlined from ‘void fbgemm::internal::SparseDenseInt8MMAvx2(int, const std::unique_ptr<fbgemm::BCSRMatrix<> >&, const uint8_t*, int, int32_t*, uint8_t*, int, fbgemm::trRequantizationParams_t&, bool, int, int) [with bool FUSE_RELU = true; fbgemm::QuantizationGranularity Q_GRAN = fbgemm::QuantizationGranularity::TENSOR]’ at /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc:193:35:
      /usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/include/avx2intrin.h:1155:32: warning: ‘mask_int32_v’ may be used uninitialized [-Wmaybe-uninitialized]
       1155 |   __builtin_ia32_maskstored256 ((__v8si *)__X, (__v8si)__M, (__v8si)__Y);
            |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc: In function ‘void fbgemm::internal::SparseDenseInt8MMAvx2(int, const std::unique_ptr<fbgemm::BCSRMatrix<> >&, const uint8_t*, int, int32_t*, uint8_t*, int, fbgemm::trRequantizationParams_t&, bool, int, int) [with bool FUSE_RELU = true; fbgemm::QuantizationGranularity Q_GRAN = fbgemm::QuantizationGranularity::TENSOR]’:
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc:168:19: note: ‘mask_int32_v’ was declared here
        168 |           __m256i mask_int32_v;
            |                   ^~~~~~~~~~~~
      In function ‘void _mm256_maskstore_epi32(int*, __m256i, __m256i)’,
          inlined from ‘void fbgemm::internal::SparseDenseInt8MMAvx2(int, const std::unique_ptr<fbgemm::BCSRMatrix<> >&, const uint8_t*, int, int32_t*, uint8_t*, int, fbgemm::trRequantizationParams_t&, bool, int, int) [with bool FUSE_RELU = true; fbgemm::QuantizationGranularity Q_GRAN = fbgemm::QuantizationGranularity::OUT_CHANNEL]’ at /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc:193:35:
      /usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/include/avx2intrin.h:1155:32: warning: ‘mask_int32_v’ may be used uninitialized [-Wmaybe-uninitialized]
       1155 |   __builtin_ia32_maskstored256 ((__v8si *)__X, (__v8si)__M, (__v8si)__Y);
            |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc: In function ‘void fbgemm::internal::SparseDenseInt8MMAvx2(int, const std::unique_ptr<fbgemm::BCSRMatrix<> >&, const uint8_t*, int, int32_t*, uint8_t*, int, fbgemm::trRequantizationParams_t&, bool, int, int) [with bool FUSE_RELU = true; fbgemm::QuantizationGranularity Q_GRAN = fbgemm::QuantizationGranularity::OUT_CHANNEL]’:
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc:168:19: note: ‘mask_int32_v’ was declared here
        168 |           __m256i mask_int32_v;
            |                   ^~~~~~~~~~~~
      In function ‘void _mm256_maskstore_epi32(int*, __m256i, __m256i)’,
          inlined from ‘void fbgemm::internal::SparseDenseInt8MMAvx2(int, const std::unique_ptr<fbgemm::BCSRMatrix<> >&, const uint8_t*, int, int32_t*, uint8_t*, int, fbgemm::trRequantizationParams_t&, bool, int, int) [with bool FUSE_RELU = false; fbgemm::QuantizationGranularity Q_GRAN = fbgemm::QuantizationGranularity::TENSOR]’ at /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc:193:35:
      /usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/include/avx2intrin.h:1155:32: warning: ‘mask_int32_v’ may be used uninitialized [-Wmaybe-uninitialized]
       1155 |   __builtin_ia32_maskstored256 ((__v8si *)__X, (__v8si)__M, (__v8si)__Y);
            |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc: In function ‘void fbgemm::internal::SparseDenseInt8MMAvx2(int, const std::unique_ptr<fbgemm::BCSRMatrix<> >&, const uint8_t*, int, int32_t*, uint8_t*, int, fbgemm::trRequantizationParams_t&, bool, int, int) [with bool FUSE_RELU = false; fbgemm::QuantizationGranularity Q_GRAN = fbgemm::QuantizationGranularity::TENSOR]’:
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc:168:19: note: ‘mask_int32_v’ was declared here
        168 |           __m256i mask_int32_v;
            |                   ^~~~~~~~~~~~
      In function ‘void _mm256_maskstore_epi32(int*, __m256i, __m256i)’,
          inlined from ‘void fbgemm::internal::SparseDenseInt8MMAvx2(int, const std::unique_ptr<fbgemm::BCSRMatrix<> >&, const uint8_t*, int, int32_t*, uint8_t*, int, fbgemm::trRequantizationParams_t&, bool, int, int) [with bool FUSE_RELU = false; fbgemm::QuantizationGranularity Q_GRAN = fbgemm::QuantizationGranularity::OUT_CHANNEL]’ at /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc:193:35:
      /usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/include/avx2intrin.h:1155:32: warning: ‘mask_int32_v’ may be used uninitialized [-Wmaybe-uninitialized]
       1155 |   __builtin_ia32_maskstored256 ((__v8si *)__X, (__v8si)__M, (__v8si)__Y);
            |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc: In function ‘void fbgemm::internal::SparseDenseInt8MMAvx2(int, const std::unique_ptr<fbgemm::BCSRMatrix<> >&, const uint8_t*, int, int32_t*, uint8_t*, int, fbgemm::trRequantizationParams_t&, bool, int, int) [with bool FUSE_RELU = false; fbgemm::QuantizationGranularity Q_GRAN = fbgemm::QuantizationGranularity::OUT_CHANNEL]’:
      /tmp/pip-install-1ibifv66/torch_051e2cf0261543e689209fc2bcd53ad8/third_party/fbgemm/src/FbgemmSparseDenseInt8Avx2.cc:168:19: note: ‘mask_int32_v’ was declared here
        168 |           __m256i mask_int32_v;
            |                   ^~~~~~~~~~~~

Any other clues?

msimacek commented 4 months ago

I found this upstream issue about torch not compiling with the current c++ standard. You could try to build it by hand and to set an older standard in cmake. But we support a newer torch version (2.2.1) in our upcoming release. Would it be possible for you to try a snapshot build of GraalPy?

cric96 commented 4 months ago

It still does not work also with the recent snapshots build -- currently I simply setup a devcontainer :)

cristatus commented 4 months ago

@msimacek @cric96 the snapshot build (graalpy-24.2.0-ea.03-linux-amd64) worked for me.

cric96 commented 4 months ago

@cristatus using arch?

cristatus commented 4 months ago

@cristatus using arch?

Yes.

msimacek commented 3 months ago

I'm afraid I can't provide more assistance, we cannot really fix compiler version incompatibilities of third-party packages on our side. Hopefully, in the future we will have prebuilt binary wheels for graalpy, so you wouldn't have to build from source.