Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Fails to build sci-ml/caffe2

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
keen4e
n00b
n00b
Posts: 26
Joined: Sat Nov 20, 2021 5:13 pm

Fails to build sci-ml/caffe2

  • Quote

Post by keen4e » Sun Feb 01, 2026 11:22 am

Hello. I am unfortunately having trouble updating my pytorch package in Gentoo. The build seems to fail at the cmake prepare phase. Here is the log:

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'
Here is my make.conf

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"
It looks to me there is some problem with the CMakeLists file, but maybe I did misconfigure something. Please let me know.

Thanks a lot.
Top
damianb
n00b
n00b
Posts: 15
Joined: Thu Sep 21, 2023 12:31 pm

  • Quote

Post by damianb » Sat Feb 14, 2026 1:28 am

Do you have sci-libs/lapack installed? Seems like caffe2 config can't find it.

I did manage to get it working the nvidia box.

Now trying to get it going on the amd box with rocm. No luck so far.
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Sat Feb 14, 2026 8:29 pm

I've just been crawling ebuilds and it doesn't appear that lapack is guaranteed to be installed as part of "emerge caffe2". There are a lot of USE combinations, and from what I can see even virtual/lapack isn't guaranteed to install any package called "lapack". I reserve the right to be wrong, but I also know last time I tried to install caffe2 if failed along the way, I don't recall the exact reason right now. Last time I could get it installed was over a year ago, and succeeding versions have failed for me. It hasn't been an urgent thing so I haven't dug in and worked on it, I just check every now and then.

edit - To clarify, right now, "emerge -ptv caffe2" for me does not install any form of lapack, and upon further checking does not install virtual/lapack either.
.sigs waste space and bandwidth
Top
RayDude
Advocate
Advocate
User avatar
Posts: 2195
Joined: Sat May 29, 2004 6:11 am
Location: San Jose, CA

  • Quote

Post by RayDude » Sat Feb 21, 2026 10:23 pm

I'm having problems too, but I think it's different. Can someone decode this error for me?

I thought it was hipsparse, but that is installed and there's no hipsparcelt

nvtx3 should not be necessary since I'm not using an nvidia card.

It could be lapack, except it is installed and I have no idea why it can't find it.

Any ideas?

Code: Select all

Successfully preprocessed all matching files.                                              [ ok ]
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sci-ml/caffe2-2.10.0-r2/work/pytorch-2.10.0"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/sci-ml/caffe2-2.10.0-r2/work/pytorch-2.10.0_build"
cmake -C /var/tmp/portage/sci-ml/caffe2-2.10.0-r2/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=no -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_MIMALLOC=no -DUSE_MKLDNN=no -DUSE_MPI=no -DUSE_NCCL=OFF -DUSE_NNPACK=no -DUSE_NUMA=OFF -DUSE_NUMPY=yes -DUSE_OPENCL=yes -DUSE_OPENMP=yes -DUSE_PYTORCH_QNNPACK=no -DUSE_PYTORCH_METAL=OFF -DUSE_ROCM=yes -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_NCCL=no -DUSE_SYSTEM_NCCL=ON -DCMAKE_REQUIRE_FIND_PACKAGE_HIP=ON -DUSE_ROCM_CK_SDPA=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/sci-ml/caffe2-2.10.0-r2/work/pytorch-2.10.0_build/gentoo_toolchain.cmake /var/tmp/portage/sci-ml/caffe2-2.10.0-r2/work/pytorch-2.10.0
loading initial cache file /var/tmp/portage/sci-ml/caffe2-2.10.0-r2/work/pytorch-2.10.0_build/gentoo_common_config.cmake
-- The CXX compiler identification is GNU 15.2.1
-- The C compiler identification is GNU 15.2.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 ZLIB: /usr/lib64/libz.so (found version "1.3.1")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- 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.
INFOUSING OPENCL
-- Looking for CL_VERSION_3_0
-- Looking for CL_VERSION_3_0 - found
-- Found OpenCL: /usr/lib64/libOpenCL.so (found version "3.0")
-- 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
-- Could NOT find nvtx3 (missing: nvtx3_dir) 
CMake Warning at cmake/Dependencies.cmake:973 (message):
  Cannot find NVTX3, find old NVTX instead
Call Stack (most recent call first):
  CMakeLists.txt:931 (include)


Building PyTorch for GPU arch: gfx1030;gfx1031
-- Found HIP: /usr (found suitable version "7.1.52801-9999", minimum required is "1.0")
HIP VERSION: 7.1.52801-9999
hip VERSION: 7.1.52801
HIP version: 7.1.52801
-- Reading ROCM version from: /usr/include/rocm-core/rocm_version.h
-- Content: 

***** ROCm version from rocm_version.h ****

ROCM_VERSION_DEV: 7.1.0
ROCM_VERSION_DEV_MAJOR: 7
ROCM_VERSION_DEV_MINOR: 1
ROCM_VERSION_DEV_PATCH: 0
ROCM_VERSION_DEV_INT:   70100
HIP_VERSION_MAJOR: 7
HIP_VERSION_MINOR: 1
TORCH_HIP_VERSION: 701

***** Library versions from cmake find_package *****

amd_comgr VERSION: 3.0.0
rocrand VERSION: 4.1.0
hiprand VERSION: 3.1.0
rocblas VERSION: 5.1.0
hipblas VERSION: 3.1.0
miopen VERSION: 3.5.1
hipfft VERSION: 1.0.21
hipsparse VERSION: 4.1.0
rocprim VERSION: 4.1.0
hipcub VERSION: 4.1.0
rocthrust VERSION: 4.1.0
hipsolver VERSION: 3.0.0
rocsolver VERSION: 3.31.0
rocm_smi VERSION: 7.8.0.-local-build-0-unknown
CMake Warning at cmake/public/LoadHIP.cmake:186 (message):
  Work around hiprtc cmake failure for cmake >= 4
Call Stack (most recent call first):
  cmake/Dependencies.cmake:981 (include)
  CMakeLists.txt:931 (include)


hiprtc VERSION: 7.1.52801
hipblaslt VERSION: 1.1.0
rccl VERSION: 2.27.7
hsa-runtime64 VERSION: 1.18.0
CMake Warning at cmake/public/LoadHIP.cmake:67 (find_package):
  By not providing "Findhipsparselt.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "hipsparselt", but CMake did not find one.

  Could not find a package configuration file provided by "hipsparselt" with
  any of the following names:

    hipsparseltConfig.cmake
    hipsparselt-config.cmake

  Add the installation prefix of "hipsparselt" to CMAKE_PREFIX_PATH or set
  "hipsparselt_DIR" to a directory containing one of the above files.  If
  "hipsparselt" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  cmake/public/LoadHIP.cmake:201 (find_package_and_print_version)
  cmake/Dependencies.cmake:981 (include)
  CMakeLists.txt:931 (include)


Optional package hipsparselt not found
hipblaslt is using scale pointer outer vec
INFOCompiling with HIP for AMD.
TORCH_HIP_VERSION=701 is added as a compiler defines
-- Disabling Kernel Assert for ROCm
-- 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:931 (include)


disabling CUDA because NOT USE_CUDA is set
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:931 (include)
Some day there will only be free software.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic