Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 872818 - dev-util/nvidia-cuda-toolkit-11.7.0-r2 needs ~11GB in TMPDIR but only checks for 6800MB
Summary: dev-util/nvidia-cuda-toolkit-11.7.0-r2 needs ~11GB in TMPDIR but only checks ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-25 11:27 UTC by Michael Moon
Modified: 2023-06-27 14:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Moon 2022-09-25 11:27:07 UTC
dev-util/nvidia-cuda-toolkit-11.7.0-r2 needs ~11GB in TMPDIR but only checks for 6800MB in pre-merge

Had to add it to my notmpfs list when it passed pre-merge but failed with "no space left on device" with an (otherwise empty) 8GB /var/tmp/portage.

Ran while sleep 1; do du -sh nvidia-cuda-toolkit-11.7.0-r2; done on its build dir and the output peaked at 11GB:

/var/notmpfs/portage/portage/dev-util # while sleep 1; do du -sh nvidia-cuda-toolkit-11.7.0-r2; done
3.1G    nvidia-cuda-toolkit-11.7.0-r2
3.2G    nvidia-cuda-toolkit-11.7.0-r2
3.4G    nvidia-cuda-toolkit-11.7.0-r2
3.5G    nvidia-cuda-toolkit-11.7.0-r2
3.7G    nvidia-cuda-toolkit-11.7.0-r2
3.8G    nvidia-cuda-toolkit-11.7.0-r2
4.0G    nvidia-cuda-toolkit-11.7.0-r2
4.2G    nvidia-cuda-toolkit-11.7.0-r2
4.4G    nvidia-cuda-toolkit-11.7.0-r2
4.6G    nvidia-cuda-toolkit-11.7.0-r2
4.9G    nvidia-cuda-toolkit-11.7.0-r2
5.1G    nvidia-cuda-toolkit-11.7.0-r2
5.3G    nvidia-cuda-toolkit-11.7.0-r2
5.4G    nvidia-cuda-toolkit-11.7.0-r2
5.6G    nvidia-cuda-toolkit-11.7.0-r2
5.7G    nvidia-cuda-toolkit-11.7.0-r2
5.8G    nvidia-cuda-toolkit-11.7.0-r2
5.9G    nvidia-cuda-toolkit-11.7.0-r2
9.3G    nvidia-cuda-toolkit-11.7.0-r2
9.5G    nvidia-cuda-toolkit-11.7.0-r2
9.5G    nvidia-cuda-toolkit-11.7.0-r2
9.5G    nvidia-cuda-toolkit-11.7.0-r2
9.6G    nvidia-cuda-toolkit-11.7.0-r2
11G     nvidia-cuda-toolkit-11.7.0-r2
11G     nvidia-cuda-toolkit-11.7.0-r2
11G     nvidia-cuda-toolkit-11.7.0-r2
11G     nvidia-cuda-toolkit-11.7.0-r2
11G     nvidia-cuda-toolkit-11.7.0-r2
9.5G    nvidia-cuda-toolkit-11.7.0-r2
10G     nvidia-cuda-toolkit-11.7.0-r2
9.5G    nvidia-cuda-toolkit-11.7.0-r2
9.5G    nvidia-cuda-toolkit-11.7.0-r2
9.3G    nvidia-cuda-toolkit-11.7.0-r2
8.9G    nvidia-cuda-toolkit-11.7.0-r2
8.1G    nvidia-cuda-toolkit-11.7.0-r2
7.2G    nvidia-cuda-toolkit-11.7.0-r2
6.8G    nvidia-cuda-toolkit-11.7.0-r2
5.8G    nvidia-cuda-toolkit-11.7.0-r2
5.8G    nvidia-cuda-toolkit-11.7.0-r2
5.8G    nvidia-cuda-toolkit-11.7.0-r2
5.8G    nvidia-cuda-toolkit-11.7.0-r2
5.8G    nvidia-cuda-toolkit-11.7.0-r2
5.8G    nvidia-cuda-toolkit-11.7.0-r2
du: cannot access 'nvidia-cuda-toolkit-11.7.0-r2': No such file or directory

I don't have a more precise figure for the exact space requirement, but it's quite a bit more than 6800MB - upping the requirement to 12GB (CHECKREQS_DISK_BUILD="6800M" ⇒ CHECKREQS_DISK_BUILD="12000M") would probably be sensible, and offer a small modicum of future-proofing

Relevant use flags:

$ emerge -pv1O nvidia-cuda-toolkit

[ebuild   R   ~] dev-util/nvidia-cuda-toolkit-11.7.0-r2:0/11.7.0::gentoo  USE="-debugger -nsight profiler -sanitizer -vis-profiler" 0 KiB

emerge --info:

$ emerge --info
Portage 3.0.36 (python 3.10.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.3.0, glibc-2.35-r8, 5.19.9-dorellan x86_64)
=================================================================
System uname: Linux-5.19.9-dorellan-x86_64-Intel-R-_Core-TM-_i7-7700K_CPU_@_4.20GHz-with-glibc2.35
KiB Mem:    32772928 total,    714028 free
KiB Swap:   67633144 total,  65474912 free
Head commit of repository gentoo: f9bc040b2c381e4907ebde81b5499db5452c92f0

Timestamp of repository flussence: Sat, 17 Sep 2022 03:01:45 +0000
Head commit of repository flussence: f7d16b8e3420585a2bb623e3572e5cfdf8a121c4

Timestamp of repository gentoo-zh: Mon, 19 Sep 2022 14:46:52 +0000
Head commit of repository gentoo-zh: 605988e9fc4cbdb8746932661d9a09fd710ec66d

Timestamp of repository guru: Mon, 19 Sep 2022 06:31:45 +0000
Head commit of repository guru: f7c8bab90df3ae80e0bdf51fdcdcf90cee6a7cb4

Timestamp of repository pentoo: Sat, 17 Sep 2022 08:03:22 +0000
Head commit of repository pentoo: 0212599c9c74decc45434d59289a2456c476f567

Timestamp of repository pg_overlay: Mon, 19 Sep 2022 10:46:46 +0000
Head commit of repository pg_overlay: d43f84a2afda9f7fe0eb4c1251e0cff236378f70

Head commit of repository polymc: 358b12bcc57c42066a9aba8292898a2abb69656a

Timestamp of repository steam-overlay: Wed, 07 Sep 2022 08:26:00 +0000
Head commit of repository steam-overlay: 78208ca83614c4cc031ca8f8ec9b023a5c9c3b1e

Timestamp of repository tatsh-overlay: Sun, 18 Sep 2022 15:01:52 +0000
Head commit of repository tatsh-overlay: b7eed213c4d41ebf3199ef2f37633e65a9747971

sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.38 p4) 2.38
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.5.1 [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           2.7.18_p15::gentoo, 3.8.13_p8::gentoo, 3.9.13_p6::gentoo, 3.10.6_p4::gentoo
dev-lang/rust:             1.62.1::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.23.3::gentoo
dev-util/meson:            0.63.2-r1::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
sys-libs/libselinux:       3.4::gentoo
Repositories:

gentoo
location: /var/db/repos/gentoo
sync-type: git
sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git
priority: -1000

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

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

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

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

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

polymc
location: /var/db/repos/polymc
sync-type: git
sync-uri: https://gitlab.com/flowln/polymc-gentoo
masters: gentoo

steam-overlay
location: /var/db/repos/steam-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
masters: gentoo

tatsh-overlay
location: /var/db/repos/tatsh-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/tatsh-overlay.git
masters: gentoo

crossdev
location: /usr/local/portage-crossdev
masters: gentoo
priority: 10

local
location: /usr/local/portage
masters: gentoo
priority: 999

Installed sets: @esteam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/portage/savedconfig /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /lib/modules"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --load-average=8 --autounmask=y --autounmask-write=n --verbose-conflicts --backtrack=100 --autounmask-backtrack=y --unordered-display"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live candy config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en-GB en_US zh_CN"
MAKEOPTS="-j9 -l8 --output-sync"
PKGDIR="/var/cache/packages"
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="MSP430 Mips WebAssembly X a52 aac acl acpi activities aio alsa amd64 apng av1 bitcoin_policy_spamfilter bittorrent bluetooth bluray branding btrfs bzip2 cairo cdda cddb cdr chm cjk cli client conntrack corefonts cpudetection cpufreq_bench crossdev crypt cryptsetup cups cxx cycles d3d9 dbus declarative dhcp dhcp-tools dist-kernel dlz dnsretry dri drm dts dvd dvdr eap-sim eap-tls echo-cancel elogind encode epub evdev exif expat fat fcitx4 ffmpeg fftw flac fluidsynth fontconfig fortran ftdi fuse gd gdbm geoip2 gif gimp github gles1 gles2 gphoto2 gpm grub gstreamer gtk gui haptic havege hcitop hddtemp http2 hwaccel iconv icu id3tag imagemagick imlib inotify io-uring iproute2 ipv6 ithreads jack jpeg json jumbo-build kde kwallet ladspa latex lcms libass libglvnd libinput libkms libnotify libtirpc libusb ljr lm_sensors logrotate lv2 lxc lz4 lzma lzo mad markdown matroska mdnsresponder-compat midi mikmod mingw minizip mjpeg mng mobi mobile mod mp3 mp4 mpeg mtp multilib multimedia nano ncurses nethacknetlink nftables nls nptl ntfs ntp nvme ocr ogg onigurama oniguruma opencl opengl openh264 openimageio openmp openssl pam pango pcre pcre16 pdf pdf-writer pdfimport pipewire pipewire-alsa plasma png policykit postproc postscript ppds printsupport qml qt5 qtmedia rar rdp readline redfish rendering rle rustfmt s3tc samba sasl scanner sdl sdl2 seccomp secure-delete semantic-desktop smp socks5 sound-server spell split-usr sqlite ssh ssl sslv3 startup-notification subtitles svc svg sync-plugin-portage system-llvm system-vulkan taglib tcl text theora tiff tk tracepath truetype tty-helpers udev udf udisks uefi unicode unicode3 unit-mm update_drivedb upnp upower urandom usb usbredir utils uvm v4l vaapi vcd vdpau virt-network virtualbox vkd3d vnc vorbis vpxvulkan vulkan-overlay webp widgets winbind wireshark-plugins wps x264 x265 xattr xcb xcomposite xft xinerama xkb xla xml xmp xnasong xnest xrandr xv xvfb xvid xvmc zeroconf zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias http2" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse synaptics evdev mutouch" KERNEL="linux" L10N="en en-GB en-US zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU ARM BPF NVPTX X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_9 python3_10" QEMU_SOFTMMU_TARGETS="arm" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby27" SANE_BACKENDS="abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx kvs40xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_usb mustek_usb2 nec net niash p5 pie pixma plustek plustek_pp pnm qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 {-test} u12 umax umax1220u umax_pp xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nvidia intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnatlogmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 claws 2022-10-22 00:16:47 UTC
dev-util/nvidia-cuda-toolkit-11-8.0 needs around 13GB, bit ridiculous
Comment 2 Larry the Git Cow gentoo-dev 2023-03-30 08:52:51 UTC
The bug has been referenced in the following commit(s):

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

commit efa52de0ceeb2877954a5fda14a8e0d27b4944cc
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-03-30 08:52:36 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-03-30 08:52:36 +0000

    dev-util/nvidia-cuda-toolkit: add 12.1.0
    
    Bug: https://bugs.gentoo.org/872818
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-util/nvidia-cuda-toolkit/Manifest              |   1 +
 dev-util/nvidia-cuda-toolkit/metadata.xml          |   1 +
 .../nvidia-cuda-toolkit-12.1.0.ebuild              | 308 +++++++++++++++++++++
 3 files changed, 310 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2023-06-27 14:26:14 UTC
The bug has been closed via the following commit(s):

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

commit c0a1278a3822994f985db2e40f69ae86c800cfda
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-06-27 14:26:07 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-06-27 14:26:07 +0000

    dev-util/nvidia-cuda-toolkit: add missing RDEPENDs
    
    Closes: https://bugs.gentoo.org/904504
    Closes: https://bugs.gentoo.org/872818
    Signed-off-by: David Seifert <soap@gentoo.org>

 ...ebuild => nvidia-cuda-toolkit-11.8.0-r4.ebuild} |  8 +++----
 ...ebuild => nvidia-cuda-toolkit-12.1.1-r1.ebuild} | 25 +++++++++++++++-------
 2 files changed, 20 insertions(+), 13 deletions(-)