Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950260 - dev-libs/cudnn-frontend-1.8.0::gentoo fails to build
Summary: dev-libs/cudnn-frontend-1.8.0::gentoo fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-25 02:57 UTC by Benjamin Schulz
Modified: 2025-02-25 07:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,5.78 KB, text/plain)
2025-02-25 03:12 UTC, Benjamin Schulz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Schulz 2025-02-25 02:57:46 UTC
* Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * cudnn-frontend-1.8.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                           [ ok ]
>>> Unpacking source...
>>> Unpacking cudnn-frontend-1.8.0.tar.gz to /var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work
>>> Source unpacked in /var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work
>>> Preparing source in /var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0_build"
 * Applying cudnn-frontend-1.8.0-gentoo.patch ...                                                                                                                                                                                    [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0_build"
cmake -C /var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCUDNN_FRONTEND_BUILD_TESTS=no -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0_build/gentoo_toolchain.cmake /var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0
loading initial cache file /var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- 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
-- 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
-- Found CUDAToolkit: /opt/cuda/targets/x86_64-linux/include (found version "12.8.61")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
[1/9] Creating directories for 'catch2-populate'
[1/9] Performing download step (git clone) for 'catch2-populate'
Cloning into 'catch2-src'...
fatal: unable to access 'https://github.com/catchorg/Catch2.git/': Could not resolve host: github.com
Cloning into 'catch2-src'...
fatal: unable to access 'https://github.com/catchorg/Catch2.git/': Could not resolve host: github.com
Cloning into 'catch2-src'...
fatal: unable to access 'https://github.com/catchorg/Catch2.git/': Could not resolve host: github.com
Had to git clone more than once: 3 times.
CMake Error at catch2-subbuild/catch2-populate-prefix/tmp/catch2-populate-gitclone.cmake:50 (message):
  Failed to clone repository: 'https://github.com/catchorg/Catch2.git'


FAILED: catch2-populate-prefix/src/catch2-populate-stamp/catch2-populate-download /var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0_build/_deps/catch2-subbuild/catch2-populate-prefix/src/catch2-populate-stamp/catch2-populate-download 
cd /var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0_build/_deps && /usr/bin/cmake -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -P /var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0_build/_deps/catch2-subbuild/catch2-populate-prefix/tmp/catch2-populate-gitclone.cmake && /usr/bin/cmake -E touch /var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0_build/_deps/catch2-subbuild/catch2-populate-prefix/src/catch2-populate-stamp/catch2-populate-download
ninja: build stopped: subcommand failed.

CMake Error at /usr/share/cmake/Modules/FetchContent.cmake:1918 (message):
  Build step for catch2 failed: 1
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FetchContent.cmake:1609 (__FetchContent_populateSubbuild)
  /usr/share/cmake/Modules/FetchContent.cmake:2145:EVAL:2 (__FetchContent_doPopulation)
  /usr/share/cmake/Modules/FetchContent.cmake:2145 (cmake_language)
  /usr/share/cmake/Modules/FetchContent.cmake:2384 (__FetchContent_Populate)
  samples/CMakeLists.txt:15 (FetchContent_MakeAvailable)


-- Configuring incomplete, errors occurred!
 * ERROR: dev-libs/cudnn-frontend-1.8.0::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 1888:  Called cmake_src_configure
 *   environment, line  933:  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 '=dev-libs/cudnn-frontend-1.8.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/cudnn-frontend-1.8.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0_build'
 * S: '/var/tmp/portage/dev-libs/cudnn-frontend-1.8.0/work/cudnn-frontend-1.8.0'


Reproducible: Always




 emerge --info
Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/desktop/plasma, gcc-14, glibc-2.41, 6.13.4-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.13.4-gentoo-dist-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.41
KiB Mem:    32774852 total,  27078512 free
KiB Swap:   31249404 total,  30098984 free
Timestamp of repository gentoo: Tue, 25 Feb 2025 01:15:00 +0000
Head commit of repository gentoo: a3ecf3ed756ee4d0022043de2ff019a8bafde96b
Timestamp of repository escpr2: Mon, 17 Feb 2025 22:03:49 +0000
Head commit of repository escpr2: 3a0bfb762bab55175082284a4836a459b88c6f47

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.31.5::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.12.9::gentoo, 3.13.2::gentoo
dev-lang/rust-bin:         1.84.0::gentoo, 1.84.1-r1::gentoo, 1.85.0::gentoo
llvm-core/clang:           18.1.8-r6::gentoo, 19.1.7::gentoo, 20.0.0_pre20250122::gentoo
llvm-core/lld:             19.1.7::gentoo, 20.0.0_pre20250122::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.7::gentoo, 20.0.0_pre20250122::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.56::gentoo
sys-apps/sandbox:          2.45::gentoo
sys-devel/binutils:        2.43-r2::gentoo, 2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20241220::gentoo, 14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.13::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo
    volatile: False

escpr2
    location: /var/db/repos/escpr2
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/escpr2.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 9999
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE NVIDIA-CUDA NVIDIA EPSON-EULA NVIDIA-cuDNN google-chrome all-rights-reserved android"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance binpkg-request-signature buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 blas bluetooth branding bzip2 cairo cdda cdr cet contrib crypt cuda cudnn cups d dbus debuginfod declarative dist-kernel dracut dri dts dvd dvdr dvi elogind encode eps eselect-ldso exif fits flac fortran gdbm gdbui gif gnutls go gphoto2 gpm graphite grub gtk gui iconv icu ipv6 jit jpeg kde kf6compat kwallet lapack lapacke lcms libnotify libtirpc llvm-libunwind lm-sensors lto mad mng modula2 modules-sign mp3 mp4 mpeg multilib ncurses networkmanager nls nvenc objc objc++ offload ogg ompt opencl opencv opengl openmp pam pango pcre pdf pipewire plasma png policykit postscript ppds pulseaudio qml qt5 qt6 raw readline rust screencast sdl seccomp semantic-desktop sound spell ssl startup-notification subversion svg symlink systemtap test-rust threads tiff tpm truetype udev udisks uefi unicode upower usb v4l valgrind vorbis vtv vulkan wayland wcs widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" CURL_QUIC="ngtcp2" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86 NVPTX WEBASSEMBLY" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Benjamin Schulz 2025-02-25 02:58:14 UTC
my internet connection works, by the way. so it is not something on my end
Comment 2 Greg Kubaryk 2025-02-25 03:06:43 UTC
You seem to have cut off the top of the output (or this is not a build.log) but there is intentionally a network sandbox in place during src_compile, so as you suspected this is not related to your internet connection.

Probably a missing dep on dev-cpp/catch.
Comment 3 Benjamin Schulz 2025-02-25 03:11:34 UTC
note that ive this installed:


 dev-util/nvidia-cuda-toolkit-12.8.0-r2:0/12.8.0::gentoo  USE="debugger examples profiler rdma sanitizer" PYTHON_TARGETS="python3_12 -python3_10 -python3_11 -python3_13" 0 KiB


perhaps it has something to do with that?
Comment 4 Benjamin Schulz 2025-02-25 03:12:10 UTC
Created attachment 919877 [details]
build.log
Comment 5 Larry the Git Cow gentoo-dev 2025-02-25 07:48:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94cb72d6b1434b38c288d29ff2bdb258da0409fa

commit 94cb72d6b1434b38c288d29ff2bdb258da0409fa
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2025-02-25 07:47:11 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2025-02-25 07:47:49 +0000

    dev-libs/cudnn-frontend: do not build samples
    
    Closes: https://bugs.gentoo.org/950260
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 dev-libs/cudnn-frontend/cudnn-frontend-1.8.0.ebuild | 1 +
 1 file changed, 1 insertion(+)