Code: Select all
* Package: sci-ml/caffe2-2.10.0-r1:0
* Repository: gentoo
* Maintainer: tupone@gentoo.org
* USE: abi_x86_64 amd64 cuda elibc_glibc kernel_linux numpy openmp python_single_target_python3_13
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
* Using python3.13 to build
>>> Unpacking source...
>>> Unpacking 'pytorch-2.10.0.tar.gz' to /var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work
>>> Source unpacked in /var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work
>>> Preparing source in /var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0 ...
* Applying caffe2-2.5.1-unbundle_fmt.patch ... [ ok ]
* Applying caffe2-2.5.1-unbundle_kineto.patch ...
patching file torch/CMakeLists.txt
Hunk #1 succeeded at 66 (offset -1 lines).
patching file caffe2/CMakeLists.txt
Hunk #1 succeeded at 1322 with fuzz 1 (offset 137 lines).
patching file cmake/Dependencies.cmake
Hunk #1 succeeded at 1649 (offset -62 lines). [ ok ]
* Applying caffe2-2.8.0-unbundle_pocketfft.patch ... [ ok ]
* Applying caffe2-2.5.1-cudnn_include_fix.patch ... [ ok ]
* Applying caffe2-2.4.0-cpp-httplib.patch ... [ ok ]
* Applying caffe2-2.5.1-glog-0.6.0.patch ... [ ok ]
* Applying caffe2-2.6.0-rocm-fix-std-cpp17.patch ...
patching file c10/hip/CMakeLists.txt
Hunk #1 succeeded at 37 (offset 1 line).
patching file caffe2/CMakeLists.txt
Hunk #1 succeeded at 1770 (offset 86 lines).
Hunk #2 succeeded at 1996 (offset 109 lines).
patching file cmake/Dependencies.cmake
Hunk #1 succeeded at 1012 with fuzz 2 (offset -31 lines).
patching file cmake/public/utils.cmake
Hunk #1 succeeded at 254 (offset -13 lines). [ ok ]
* Applying caffe2-2.7.0-glog-0.7.1.patch ... [ ok ]
* Applying caffe2-2.7.1-aotriton-fixes.patch ... [ ok ]
* Applying caffe2-2.8.0-rocm-minus-flash.patch ... [ ok ]
* Applying caffe2-2.9.0-cmake.patch ...
patching file .ci/pytorch/test_example_code/CMakeLists.txt
patching file aten/src/ATen/native/quantized/cpu/qnnpack/CMakeLists.txt
patching file aten/src/ATen/test/test_install/CMakeLists.txt
patching file aten/src/ATen/nnapi/CMakeLists.txt
patching file android/pytorch_android_torchvision/CMakeLists.txt
Hunk #1 succeeded at 1 with fuzz 1.
patching file android/pytorch_android/CMakeLists.txt [ ok ]
* Applying caffe2-2.9.0-rocm-distributed-link.patch ... [ ok ]
* Applying caffe2-2.9.1-torch_cpu.patch ... [ ok ]
* Applying caffe2-2.10.0-gentoo.patch ... [ ok ]
* Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0"
* Build directory (BUILD_DIR): "/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0_build"
removed './cmake/Modules/FindBLAS.cmake'
removed './cmake/Modules/FindLAPACK.cmake'
* Hardcoded definition(s) removed in android/pytorch_android_torchvision/CMakeLists.txt:
* set(CMAKE_VERBOSE_MAKEFILE ON)
* Hardcoded definition(s) removed in android/pytorch_android/CMakeLists.txt:
* set(CMAKE_VERBOSE_MAKEFILE ON)
* Hardcoded definition(s) removed in test/cpp_extensions/open_registration_extension/torch_openreg/CMakeLists.txt:
* set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0 ...
* Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0"
* Build directory (BUILD_DIR): "/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0_build"
cmake -C /var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_CUSTOM_PROTOBUF=OFF -DBUILD_TEST=OFF -DLIBSHM_INSTALL_LIB_SUBDIR=/usr/lib64 -DPython_EXECUTABLE=/usr/bin/python3.13 -DTORCH_INSTALL_LIB_DIR=/usr/lib64 -DUSE_CCACHE=OFF -DUSE_CUDA=yes -DUSE_DISTRIBUTED=no -DUSE_FBGEMM=no -DUSE_FLASH_ATTENTION=no -DUSE_GFLAGS=ON -DUSE_GLOG=ON -DUSE_GLOO=no -DUSE_ITT=OFF -DUSE_KINETO=ON -DUSE_KLEIDIAI=OFF -DUSE_MAGMA=OFF -DUSE_MEM_EFF_ATTENTION=no -DUSE_MKLDNN=no -DUSE_MPI=no -DUSE_NCCL=OFF -DUSE_NNPACK=no -DUSE_NUMA=OFF -DUSE_NUMPY=yes -DUSE_OPENCL=no -DUSE_OPENMP=yes -DUSE_PYTORCH_QNNPACK=no -DUSE_PYTORCH_METAL=OFF -DUSE_ROCM=no -DUSE_SYSTEM_CPUINFO=ON -DUSE_SYSTEM_EIGEN_INSTALL=ON -DUSE_SYSTEM_FP16=ON -DUSE_SYSTEM_FXDIV=ON -DUSE_SYSTEM_GLOO=ON -DUSE_SYSTEM_NVTX=ON -DUSE_SYSTEM_ONNX=ON -DUSE_SYSTEM_PSIMD=ON -DUSE_SYSTEM_PTHREADPOOL=ON -DUSE_SYSTEM_PYBIND11=ON -DUSE_SYSTEM_SLEEF=ON -DUSE_SYSTEM_XNNPACK=no -DUSE_TENSORPIPE=no -DUSE_UCC=OFF -DUSE_VALGRIND=OFF -DUSE_XNNPACK=no -DUSE_XPU=OFF -Wno-dev -DBLAS=Generic -DBLAS_LIBRARIES= -DUSE_CUDNN=ON -DTORCH_CUDA_ARCH_LIST=7.5 -DUSE_NCCL=OFF -DCMAKE_CUDA_FLAGS=--compiler-bindir /usr/x86_64-pc-linux-gnu/gcc-bin/14 -DUSE_CUSPARSELT=no -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0_build/gentoo_toolchain.cmake -DUSE_SYSTEM_NVTX=ON /var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0
loading initial cache file /var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0_build/gentoo_common_config.cmake
-- The CXX compiler identification is GNU 14.3.1
-- The C compiler identification is GNU 14.3.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - 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/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Success
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - 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 - Success
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - 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 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
-- Performing Test CXX_HAS_ARM_BF16
-- Performing Test CXX_HAS_ARM_BF16 - Failed
-- No SVE processor on this machine.
-- Compiler does not support SVE extension. Will not build perfkernels.
-- Found CUDA: /opt/cuda (found version "12.9")
-- The CUDA compiler identification is NVIDIA 12.9.86 with host compiler GNU 14.3.1
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /opt/cuda/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Found CUDAToolkit: /opt/cuda/include (found version "12.9.86")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- PyTorch: CUDA detected: 12.9
-- PyTorch: CUDA nvcc is: /opt/cuda/bin/nvcc
-- PyTorch: CUDA toolkit directory: /opt/cuda
-- PyTorch: Header version is: 12.9
-- Found Python: /usr/bin/python3.13 (found version "3.13.11") found components: Interpreter
CMake Warning at cmake/public/cuda.cmake:149 (message):
Failed to compute shorthash for libnvrtc.so
Call Stack (most recent call first):
cmake/Dependencies.cmake:44 (include)
CMakeLists.txt:932 (include)
-- Found CUDNN: /opt/cuda/lib64/libcudnn.so
-- USE_CUSPARSELT is set to 0. Compiling without cuSPARSELt support
-- Could NOT find CUDSS (missing: CUDSS_LIBRARY_PATH CUDSS_INCLUDE_PATH)
CMake Warning at cmake/public/cuda.cmake:251 (message):
Cannot find CUDSS library. Turning the option off
Call Stack (most recent call first):
cmake/Dependencies.cmake:44 (include)
CMakeLists.txt:932 (include)
CMake Warning at cmake/public/cuda.cmake:332 (message):
pytorch is not compatible with `CMAKE_CUDA_ARCHITECTURES` and will ignore
its value. Please configure `TORCH_CUDA_ARCH_LIST` instead.
Call Stack (most recent call first):
cmake/Dependencies.cmake:44 (include)
CMakeLists.txt:932 (include)
-- Added CUDA NVCC flags for: -gencode;arch=compute_75,code=sm_75
-- Found ZLIB: /usr/lib64/libz.so (found version "1.3.1")
-- Caffe2: Found protobuf with new-style protobuf targets.
-- Caffe2 protobuf include directory: /usr/include
-- Trying to find preferred BLAS backend of choice: Generic
-- Using BLAS:
Found cpuinfo: /usr/lib64/libcpuinfo.so
-- Caffe2: Found gflags with new-style gflags target.
-- Caffe2: Found glog with new-style glog target.
-- Found system Eigen at /usr/include/eigen3
-- Found Python: /usr/bin/python3.13 (found version "3.13.11") found components: Interpreter Development.Module NumPy
-- Found pybind11: /usr/include (found version "3.0.1")
-- pybind11 include dirs: /usr/include;/usr/include/python3.13
-- Found OpenTelemetryApi: /usr
-- opentelemetry api include dirs: /usr
-- Check OMP with lib /usr/lib64/libomp.so and flags -fopenmp -v
-- Check OMP with lib /usr/lib64/libomp.so and flags -fopenmp -v
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Adding OpenMP CXX_FLAGS: -fopenmp
-- Will link against OpenMP libraries: /usr/lib64/libomp.so
-- Found nvtx3: /opt/cuda/include
-- Found CUB: /opt/cuda/include
-- Found onnx: /usr/lib64/libonnx.so /usr/lib64/libonnx_proto.so
-- Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor
-- Removing -DNDEBUG from compile flags
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- No SVE processor on this machine.
CMake Warning at cmake/Dependencies.cmake:1473 (find_package):
By not providing "FindLAPACK.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "LAPACK", but
CMake did not find one.
Could not find a package configuration file provided by "LAPACK" with any
of the following names:
LAPACKConfig.cmake
lapack-config.cmake
Add the installation prefix of "LAPACK" to CMAKE_PREFIX_PATH or set
"LAPACK_DIR" to a directory containing one of the above files. If "LAPACK"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMakeLists.txt:932 (include)
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
disabling MKLDNN because USE_MKLDNN is not set
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
CMake Error at cmake/Dependencies.cmake:1544 (CHECK_FUNCTION_EXISTS):
Unknown CMake command "CHECK_FUNCTION_EXISTS".
Call Stack (most recent call first):
CMakeLists.txt:932 (include)
-- Configuring incomplete, errors occurred!
* ERROR: sci-ml/caffe2-2.10.0-r1::gentoo failed (configure phase):
* cmake failed
*
* Call stack:
* ebuild.sh, line 143: Called src_configure
* environment, line 2915: Called cmake_src_configure
* environment, line 1604: Called die
* The specific snippet of code:
* "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
*
* If you need support, post the output of `emerge --info '=sci-ml/caffe2-2.10.0-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sci-ml/caffe2-2.10.0-r1::gentoo'`.
* The complete build log is located at '/var/log/portage/sci-ml:caffe2-2.10.0-r1:20260201-111638.log'.
* For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/temp/environment'.
* Working directory: '/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0_build'
* S: '/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0'
* Messages for package sci-ml/caffe2-2.10.0-r1:
* Log file: /var/log/portage/sci-ml:caffe2-2.10.0-r1:20260201-111638.log
* ERROR: sci-ml/caffe2-2.10.0-r1::gentoo failed (configure phase):
* cmake failed
* Call stack:
* ebuild.sh, line 143: Called src_configure
* environment, line 2915: Called cmake_src_configure
* environment, line 1604: Called die
* The specific snippet of code:
* "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
* If you need support, post the output of `emerge --info '=sci-ml/caffe2-2.10.0-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sci-ml/caffe2-2.10.0-r1::gentoo'`.
* The complete build log is located at '/var/log/portage/sci-ml:caffe2-2.10.0-r1:20260201-111638.log'.
* For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/temp/environment'.
* Working directory: '/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0_build'
* S: '/var/tmp/portage/sci-ml/caffe2-2.10.0-r1/work/pytorch-2.10.0'
Code: Select all
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j8"
USE="X xft alsa nvidia elogind xcb glib dbus mono \
nvidia multilib abi_x86_32 abi_x86_64 dist-kernel \
cairo joystick latex pulseaudio vulkan javafx \
-amd -cinnamon -wayland -accessibility -aqua -css -bluetooth \
-dvd -systemd -kde -gnome -ios -wext -pipewire -screencast \
"
GRUB_PLATFORMS="efi-64"
PYTHON_TARGETS="python3_12 python3_13"
PYTHON_SINGLE_TARGET="python3_13"
RUBY_TARGETS="ruby32"
ACCEPT_LICENSE="*"
VIDEO_CARDS="nvidia"
TORCH_CUDA_ARCH_LIST="7.5"
GENTOO_MIRRORS="rsync://ftp.fi.muni.cz/pub/linux/gentoo/"
# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
PORTAGE_LOGDIR="/var/log/portage"
SANE_BACKENDS="hp"
Thanks a lot.

