Build from source failing

username: Krytern
cooked: <p>Hi, I have been trying to build from source while following the instructions to the letter but it keeps failing, here’s the beginning of the log with some info from the start of the log and the last part. I had to leave out the middle because it was too long to post here.</p>
<pre data-code-wrap="--"><code class="lang---">-- The C compiler identification is GNU 14.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- _GLIBCXX_USE_CXX11_ABI=1 is already defined as a cmake variable
-- Not forcing any particular BLAS to be found
-- Could not find ccache. Consider installing ccache to speed up compilation.
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Failed
-- Performing Test C_HAS_AVX_2
-- Performing Test C_HAS_AVX_2 - Success
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - Failed
-- Performing Test C_HAS_AVX2_2
-- Performing Test C_HAS_AVX2_2 - Success
-- Performing Test C_HAS_AVX512_1
-- Performing Test C_HAS_AVX512_1 - Failed
-- Performing Test C_HAS_AVX512_2
-- Performing Test C_HAS_AVX512_2 - Success
-- Performing Test CXX_HAS_AVX_1
-- Performing Test CXX_HAS_AVX_1 - Failed
-- Performing Test CXX_HAS_AVX_2
-- Performing Test CXX_HAS_AVX_2 - Success
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - Failed
-- Performing Test CXX_HAS_AVX2_2
-- Performing Test CXX_HAS_AVX2_2 - Success
-- Performing Test CXX_HAS_AVX512_1
-- Performing Test CXX_HAS_AVX512_1 - Failed
-- Performing Test CXX_HAS_AVX512_2
-- Performing Test CXX_HAS_AVX512_2 - Success
-- Current compiler supports avx2 extension. Will build perfkernels.
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Success
-- Current compiler supports avx512f extension. Will build fbgemm.
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Performing Test CXX_HAS_SVE256
-- Performing Test CXX_HAS_SVE256 - Failed
-- No SVE processor on this machine.
-- Compiler does not support SVE extension. Will not build perfkernels.
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- 
-- 3.13.0.0
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS - Success
-- Caffe2 protobuf include directory: $&lt;BUILD_INTERFACE:/home/ubuntu/pytorch/third_party/protobuf/src&gt;$&lt;INSTALL_INTERFACE:include&gt;
-- Trying to find preferred BLAS backend of choice: MKL
-- MKL_THREADING = OMP
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- MKL_THREADING = OMP
-- Check OMP with lib /home/ubuntu/miniconda3/envs/comfyui/lib/libgomp.so and flags -fopenmp -v
-- Check OMP with lib /home/ubuntu/miniconda3/envs/comfyui/lib/libgomp.so and flags -fopenmp -v
-- Looking for cblas_sgemm
-- Looking for cblas_sgemm - found
-- Looking for cblas_gemm_bf16bf16f32
-- Looking for cblas_gemm_bf16bf16f32 - found
-- Looking for cblas_gemm_f16f16f32
-- Looking for cblas_gemm_f16f16f32 - found
-- Check OMP with lib /home/ubuntu/miniconda3/envs/comfyui/lib/libgomp.so and flags -fopenmp -v
-- MKL libraries: /home/ubuntu/miniconda3/envs/comfyui/lib/libmkl_intel_lp64.a;/home/ubuntu/miniconda3/envs/comfyui/lib/libmkl_gnu_thread.a;/home/ubuntu/miniconda3/envs/comfyui/lib/libmkl_core.a;-fopenmp;/usr/lib/x86_64-linux-gnu/libpthread.a;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/libdl.a
-- MKL include directory: /home/ubuntu/miniconda3/envs/comfyui/include
-- MKL OpenMP type: GNU
-- MKL OpenMP library: -fopenmp
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Brace yourself, we are building NNPACK
-- Performing Test NNPACK_ARCH_IS_X86_32
-- Performing Test NNPACK_ARCH_IS_X86_32 - Failed
-- Found PythonInterp: /home/ubuntu/miniconda3/envs/comfyui/bin/python (found version "3.12.9")
-- NNPACK backend is x86-64
-- Downloading six (Python package) to /home/ubuntu/pytorch/build/confu-srcs/six (define PYTHON_SIX_SOURCE_DIR to avoid it)
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/ubuntu/pytorch/build/confu-deps/six-download
[1/9] Creating directories for 'six'
[2/9] Performing download step (download, verify and extract) for 'six'
-- Downloading...
   dst='/home/ubuntu/pytorch/build/confu-deps/six-download/six-prefix/src/six-1.11.0.tar.gz'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://pypi.python.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz'```


```[4580/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/scaled-dot-product-attention.c.o
[4581/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/softmax.c.o
[4582/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/convolution-2d.c.o
[4583/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/depthwise-convolution-2d.c.o
[4584/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/space-to-depth-2d.c.o
[4585/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/static-constant-pad.c.o
[4586/7946] Building C object confu-deps/XNNPACK/CMakeFiles/operators.dir/src/operators/deconvolution-nhwc.c.o
[4587/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/static-resize-bilinear-2d.c.o
[4588/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/static-transpose.c.o
[4589/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/unpooling-2d.c.o
[4590/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/validation.c.o
[4591/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/static-slice.c.o
[4592/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/static-reduce.c.o
[4593/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/unary.c.o
[4594/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph/fully-connected.c.o
[4595/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/runtime.c.o
[4596/7946] Building C object confu-deps/XNNPACK/CMakeFiles/operators.dir/src/operators/convolution-nhwc.c.o
[4597/7946] Building C object confu-deps/XNNPACK/CMakeFiles/operators.dir/src/operators/fully-connected-nc.c.o
[4598/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/tensor.c.o
[4599/7946] Building C object confu-deps/XNNPACK/CMakeFiles/subgraph.dir/src/subgraph.c.o
[4600/7946] Building C object confu-deps/XNNPACK/CMakeFiles/operator-run.dir/src/operator-run.c.o
[4601/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_name.cc.o
[4602/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/sleep.cc.o
[4603/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/counter.cc.o
[4604/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/perf_counters.cc.o
[4605/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/reporter.cc.o
[4606/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_api_internal.cc.o
[4607/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/ExecuteKernel.cc.o
[4608/7946] Linking C static library lib/libmicrokernels-all.a
[4609/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
[4610/7946] Building CXX object third_party/googletest/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[4611/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/colorprint.cc.o
[4612/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/csv_reporter.cc.o
[4613/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/console_reporter.cc.o
[4614/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o
[4615/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/commandlineflags.cc.o
[4616/7946] Building CXX object confu-deps/XNNPACK/CMakeFiles/reference-ukernels.dir/src/reference/unary-elementwise.cc.o
[4617/7946] Building CXX object third_party/googletest/googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
[4618/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmBfloat16Convert.cc.o
[4619/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o
[4620/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/complexity.cc.o
[4621/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmFloat16Convert.cc.o
[4622/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/json_reporter.cc.o
[4623/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/statistics.cc.o
[4624/7946] Building CXX object confu-deps/XNNPACK/CMakeFiles/reference-ukernels.dir/src/reference/binary-elementwise.cc.o
[4625/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
[4626/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmI8Spmdm.cc.o
[4627/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmSparseDense.cc.o
[4628/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_runner.cc.o
[4629/7946] Building CXX object confu-deps/XNNPACK/CMakeFiles/packing.dir/src/reference/packing.cc.o
[4630/7946] Generating build_identifier.c
[4631/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/argmaxpool-config.c.o
[4632/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackAMatrix.cc.o
[4633/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/avgpool-config.c.o
[4634/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/binary-elementwise-config.c.o
[4635/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/cmul-config.c.o
[4636/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/conv-hwc2chw-config.c.o
[4637/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmFPCommon.cc.o
[4638/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/dwconv2d-chw-config.c.o
[4639/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/dwconv-config.c.o
[4640/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/experiments-config.c.o
[4641/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/ibilinear-config.c.o
[4642/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/ibilinear-chw-config.c.o
[4643/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/lut32norm-config.c.o
[4644/7946] Building CXX object third_party/googletest/googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[4645/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackAWithQuantRowOffset.cc.o
[4646/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/pavgpool-config.c.o
[4647/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/pack-lh-config.c.o
[4648/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmFP16.cc.o
[4649/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/maxpool-config.c.o
[4650/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/raddstoreexpminusmax-config.c.o
[4651/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/spmm-config.c.o
[4652/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/gemm-config.c.o
[4653/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/rmax-config.c.o
[4654/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/reduce-config.c.o
[4655/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/unpool-config.c.o
[4656/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/transpose-config.c.o
[4657/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/xx-fill-config.c.o
[4658/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/vmulcaddc-config.c.o
[4659/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/xx-pad-config.c.o
[4660/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/x8-lut-config.c.o
[4661/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/params.c.o
[4662/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernel.cc.o
[4663/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/build_identifier.c.o
[4664/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/zip-config.c.o
[4665/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/init.c.o
[4666/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16.cc.o
[4667/7946] Building C object confu-deps/XNNPACK/CMakeFiles/XNNPACK.dir/src/configs/unary-elementwise-config.c.o
[4668/7946] Linking CXX static library lib/libXNNPACK.a
[4669/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackAWithIm2Col.cc.o
[4670/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16Avx512.cc.o
[4671/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmConv.cc.o
[4672/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16Avx512VNNI.cc.o
[4673/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx2.cc.o
[4674/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark.cc.o
[4675/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackAWithRowOffset.cc.o
[4676/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/TransposeUtils.cc.o
[4677/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC32.cc.o
[4678/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackBMatrix.cc.o
[4679/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmI64.cc.o
[4680/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC32Avx512VNNI.cc.o
[4681/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackMatrix.cc.o
[4682/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelDirectConvU8S8S32ACC32.cc.o
[4683/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackWeightsForConv.cc.o
[4684/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx512.cc.o
[4685/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/spmmUtils.cc.o
[4686/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/EmbeddingSpMDMAvx2.cc.o
[4687/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/QuantUtils.cc.o
[4688/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmBfloat16ConvertAvx2.cc.o
[4689/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmFloat16ConvertAvx2.cc.o
[4690/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/OptimizedKernelsAvx2.cc.o
[4691/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmSparseDenseAvx2.cc.o
[4692/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/PackDepthwiseConvMatrixAvx2.cc.o
[4693/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmI8DepthwisePerChannelQuantAvx2.cc.o
[4694/7946] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o
[4695/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmSparseDenseInt8Avx2.cc.o
[4696/7946] Linking CXX static library lib/libbenchmark.a
[4697/7946] Linking CXX static library lib/libbenchmark_main.a
[4698/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/FbgemmFloat16ConvertAvx512.cc.o
[4699/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/FbgemmBfloat16ConvertAvx512.cc.o
[4700/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/FbgemmSparseDenseAvx512.cc.o
[4701/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/EmbeddingSpMDMAvx512.cc.o
[4702/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackWeightMatrixForGConv.cc.o
[4703/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/SparseAdagrad.cc.o
[4704/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/UtilsAvx2.cc.o
[4705/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateI8Depthwise.cc.o
[4706/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConv.cc.o
[4707/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackWeightsForDirectConv.cc.o
[4708/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/archtraits.cpp.o
[4709/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmFP16UKernelsAvx2.cc.o
[4710/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/assembler.cpp.o
[4711/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/FbgemmSparseDenseVectorInt8Avx512.cc.o
[4712/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/spmmUtilsAvx2.cc.o
[4713/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/codewriter.cpp.o
[4714/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/builder.cpp.o
[4715/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/constpool.cpp.o
[4716/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/cpuinfo.cpp.o
[4717/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/codeholder.cpp.o
[4718/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/emitter.cpp.o
[4719/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/environment.cpp.o
[4720/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/emithelper.cpp.o
[4721/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/emitterutils.cpp.o
[4722/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/errorhandler.cpp.o
[4723/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/FbgemmSparseDenseInt8Avx512.cc.o
[4724/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/compiler.cpp.o
[4725/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/globals.cpp.o
[4726/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/inst.cpp.o
[4727/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/operand.cpp.o
[4728/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/FbgemmFP16UKernelsAvx512.cc.o
[4729/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/osutils.cpp.o
[4730/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/jitruntime.cpp.o
[4731/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/formatter.cpp.o
[4732/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/funcargscontext.cpp.o
[4733/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/func.cpp.o
[4734/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/logger.cpp.o
[4735/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/FbgemmFP16UKernelsAvx512_256.cc.o
[4736/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/Utils.cc.o
[4737/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/support.cpp.o
[4738/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/UtilsAvx512.cc.o
FAILED: third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/UtilsAvx512.cc.o 
/usr/bin/c++ -DFBGEMM_STATIC -I/home/ubuntu/pytorch/third_party/cpuinfo/include -I/home/ubuntu/pytorch/third_party/fbgemm/third_party/asmjit/src -I/home/ubuntu/pytorch/third_party/fbgemm/include -I/home/ubuntu/pytorch/third_party/fbgemm -I/home/ubuntu/pytorch/cmake/../third_party/benchmark/include -isystem /home/ubuntu/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /home/ubuntu/pytorch/cmake/../third_party/googletest/googletest/include -isystem /home/ubuntu/pytorch/third_party/protobuf/src -isystem /home/ubuntu/miniconda3/envs/comfyui/include -isystem /home/ubuntu/pytorch/third_party/XNNPACK/include -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -Wall -Wextra -Werror -Wno-deprecated-declarations -Wimplicit-fallthrough -O3 -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -DMKL_HAS_SBGEMM -DMKL_HAS_SHGEMM -m64 -mavx2 -mfma -mavx512f -mavx512bw -mavx512dq -mavx512vl -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/UtilsAvx512.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/UtilsAvx512.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/UtilsAvx512.cc.o -c /home/ubuntu/pytorch/third_party/fbgemm/src/UtilsAvx512.cc
In function ‘void fbgemm::internal::transpose_contiguous_16x2_block(const float*, float*, int64_t, int)’,
    inlined from ‘void fbgemm::internal::transpose_avx512_contiguous_thin(int64_t, int64_t, const T*, int64_t, T*, int64_t) [with T = float]’ at /home/ubuntu/pytorch/third_party/fbgemm/src/UtilsAvx512.cc:1827:38:
/home/ubuntu/pytorch/third_party/fbgemm/src/UtilsAvx512.cc:970:35: error: ‘r’ may be used uninitialized [-Werror=maybe-uninitialized]
  970 |   d[0] = _mm512_permutex2var_epi32(r[0], index1, r[1]);
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/home/ubuntu/pytorch/third_party/fbgemm/src/UtilsAvx512.cc: In function ‘void fbgemm::internal::transpose_avx512_contiguous_thin(int64_t, int64_t, const T*, int64_t, T*, int64_t) [with T = float]’:
/home/ubuntu/pytorch/third_party/fbgemm/src/UtilsAvx512.cc:922:11: note: ‘r’ declared here
  922 |   __m512i r[2], d[2];
      |           ^
cc1plus: all warnings being treated as errors
[4739/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/jitallocator.cpp.o
[4740/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/target.cpp.o
[4741/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/zone.cpp.o
[4742/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/string.cpp.o
[4743/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/rastack.cpp.o
[4744/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/zonelist.cpp.o
[4745/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/zonetree.cpp.o
[4746/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/virtmem.cpp.o
[4747/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/type.cpp.o
[4748/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/zonestack.cpp.o
[4749/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/zonehash.cpp.o
[4750/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/zonevector.cpp.o
[4751/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/ralocal.cpp.o
[4752/7946] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/rapass.cpp.o
[4753/7946] Building CXX object third_party/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[4754/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/Fbgemm.cc.o
[4755/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/RowWiseSparseAdagradFused.cc.o
[4756/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/RefImplementations.cc.o
[4757/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/QuantUtilsAvx512.cc.o
[4758/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/EmbeddingSpMDMNBit.cc.o
[4759/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/QuantUtilsAvx2.cc.o
[4760/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/ExecuteKernelU8S8.cc.o
[4761/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/EmbeddingSpMDM.cc.o
[4762/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmI8Depthwise3DAvx2.cc.o
[4763/7946] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmI8DepthwiseAvx2.cc.o
ninja: build stopped: subcommand failed.
Building wheel torch-2.8.0a0+gitfdacf3c
-- Building version 2.8.0a0+gitfdacf3c
-- Checkout nccl release tag: v2.26.2-1
cmake -GNinja -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/ubuntu/pytorch/torch -DCMAKE_PREFIX_PATH=/home/ubuntu/miniconda3/envs/comfyui/lib/python3.12/site-packages;/home/ubuntu/miniconda3/envs/comfyui:/home/ubuntu/miniconda3/envs/comfyui: -DGLIBCXX_USE_CXX11_ABI=1 -DPython_EXECUTABLE=/home/ubuntu/miniconda3/envs/comfyui/bin/python -DTORCH_BUILD_VERSION=2.8.0a0+gitfdacf3c -DUSE_CUDA=0 -DUSE_NUMPY=True -DUSE_XPU=0 /home/ubuntu/pytorch
cmake --build . --target install --config Release```</code></pre>

username: ptrblck
cooked: <pre><code class="lang-auto">FAILED: third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/UtilsAvx512.cc.o 
/usr/bin/c++ -DFBGEMM_STATIC -I/home/ubuntu/pytorch/third_party/cpuinfo/include -I/home/ubuntu/pytorch/third_party/fbgemm/third_party/asmjit/src -I/home/ubuntu/pytorch/third_party/fbgemm/include -I/home/ubuntu/pytorch/third_party/fbgemm -I/home/ubuntu/pytorch/cmake/../third_party/benchmark/include -isystem /home/ubuntu/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /home/ubuntu/pytorch/cmake/../third_party/googletest/googletest/include -isystem /home/ubuntu/pytorch/third_party/protobuf/src -isystem /home/ubuntu/miniconda3/envs/comfyui/include -isystem /home/ubuntu/pytorch/third_party/XNNPACK/include -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -Wall -Wextra -Werror -Wno-deprecated-declarations -Wimplicit-fallthrough -O3 -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -DMKL_HAS_SBGEMM -DMKL_HAS_SHGEMM -m64 -mavx2 -mfma -mavx512f -mavx512bw -mavx512dq -mavx512vl -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/UtilsAvx512.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/UtilsAvx512.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/UtilsAvx512.cc.o -c /home/ubuntu/pytorch/third_party/fbgemm/src/UtilsAvx512.cc
In function ‘void fbgemm::internal::transpose_contiguous_16x2_block(const float*, float*, int64_t, int)’,
    inlined from ‘void fbgemm::internal::transpose_avx512_contiguous_thin(int64_t, int64_t, const T*, int64_t, T*, int64_t) [with T = float]’ at /home/ubuntu/pytorch/third_party/fbgemm/src/UtilsAvx512.cc:1827:38:
/home/ubuntu/pytorch/third_party/fbgemm/src/UtilsAvx512.cc:970:35: error: ‘r’ may be used uninitialized [-Werror=maybe-uninitialized]
  970 |   d[0] = _mm512_permutex2var_epi32(r[0], index1, r[1]);
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/home/ubuntu/pytorch/third_party/fbgemm/src/UtilsAvx512.cc: In function ‘void fbgemm::internal::transpose_avx512_contiguous_thin(int64_t, int64_t, const T*, int64_t, T*, int64_t) [with T = float]’:
/home/ubuntu/pytorch/third_party/fbgemm/src/UtilsAvx512.cc:922:11: note: ‘r’ declared here
  922 |   __m512i r[2], d[2];
      |           ^
cc1plus: all warnings being treated as errors
</code></pre>
<p>It seems you are treating all warnings as errors and might want to relax it or you could also try to fix the warning itself in <code>fbgemm</code>.</p>

username: Krytern
cooked: <p>Are the warnings something that can be ignored? How do I go about relaxing them? To be honest I’ve no idea what it means</p>

username: ptrblck
cooked: <p><a href="https://github.com/pytorch/FBGEMM/pull/3804">fbgemm#3804</a> should fix this, which is being picked into the submodule update in <a href="https://github.com/pytorch/pytorch/pull/149213">this PR</a>. You could thus cherry-pick it or wait until it gets merged before pulling from <code>main</code>.</p>

username: genofog
cooked: <p>Hi <a class="mention" href="/u/ptrblck">@ptrblck</a> , I see that these PRs have been merged and closed. I’ve restarted my “Build from source” process, but I’m still seeing the same errors. When I go and check my FBGEMM submodule git logs, it says that I’m having all the latest commits as of Sept. 5 (this PR was merged before).</p>
<p>Could you please give me any suggestions on what I should do? Thank you.</p>
<p>I’m on GCC (13.1.0), NVCC (12.6).</p>