Created attachment 660342 [details] build.log of emerge pytorch::science emerge pytorch::science fails with: * --------------------------- ACCESS VIOLATION SUMMARY --------------------------- * LOG FILE: "/var/tmp/portage/sci-libs/pytorch-1.6.0/temp/sandbox.log" * VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: open_wr S: deny P: /dev/nvidiactl A: /dev/nvidiactl R: /dev/nvidiactl C: /var/tmp/portage/sci-libs/pytorch-1.6.0/work/pytorch-1.6.0_build/CMakeFiles/CMakeTmp/cmTC_87ed9 F: open_wr S: deny P: /dev/nvidiactl A: /dev/nvidiactl R: /dev/nvidiactl C: /var/tmp/portage/sci-libs/pytorch-1.6.0/work/pytorch-1.6.0_build/CMakeFiles/CMakeTmp/cmTC_4bc14 F: open_wr S: deny P: /dev/nvidiactl A: /dev/nvidiactl R: /dev/nvidiactl C: /var/tmp/portage/sci-libs/pytorch-1.6.0/work/pytorch-1.6.0_build/CMakeFiles/CMakeTmp/cmTC_dfe8f * --------------------------------------------------------------------------------
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to * paste the emerge info as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Created attachment 660867 [details] emerge info
(In reply to Jonas Stein from comment #1) > Thank you for the report. We need to have all information at hand before > ticket assignment. That is why I ask you to > * paste the emerge info > as described on > https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket of course, sorry # emerge --info sci-libs/pytorch::science Portage 3.0.6 (python 3.6.12-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-10.2.0, glibc-2.32-r1, 5.8.7-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.8.7-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2630_v4_@_2.20GHz-with-gentoo-2.7 KiB Mem: 131922376 total, 78169144 free KiB Swap: 131071996 total, 131071996 free Timestamp of repository gentoo: Tue, 15 Sep 2020 06:30:01 +0000 Head commit of repository gentoo: 3182fd9c8674b3fb465ec8149597ad7e5b90199a Head commit of repository science: 7d6aa4dbca97f173f8dde73ff20091565cb0d95a Head commit of repository chymeric: 50af288bacede676b17a72dc4f1cf9100e846ebd sh bash 5.0_p18 ld GNU ld (Gentoo 2.34 p6) 2.34.0 app-shells/bash: 5.0_p18::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.30.3-r1::gentoo dev-lang/python: 2.7.18-r1::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc1::gentoo dev-util/cmake: 3.18.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.2::gentoo sys-devel/binutils: 2.34-r2::gentoo sys-devel/gcc: 8.4.0-r1::gentoo, 10.2.0-r1::gentoo sys-devel/gcc-config: 2.3.2::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: science location: /var/db/repos/science sync-type: git sync-uri: git://git.gentoo.org/proj/sci.git masters: gentoo chymeric location: /var/db/repos/chymeric sync-type: git sync-uri: https://github.com/TheChymera/overlay.git masters: gentoo science priority: 8888 hendrik_localrepo location: /var/db/repos/hendrik_localrepo masters: gentoo priority: 8888 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going" 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="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks 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="-march=native -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j20" PKGDIR="/usr/portage/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" USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cli colord crypt cups dbus dri dts dvd dvdr eds emboss encode evo exif fat flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg latex lcms libglvnd libnotify libsecret libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ntfs ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline science sdl seccomp spell split-usr ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7 python3_6" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= sci-libs/pytorch-1.6.0::science was built with the following: USE="fbgemm gloo nnpack numpy observers openblas openmp python qnnpack -asan -atlas -cuda -eigen -ffmpeg -gflags -glog -leveldb -lmdb -mkl -mkldnn -mpi -namedtensor -numa -opencl -opencv -redis -static -test -tools -zeromq" ABI_X86="(64)" PYTHON_TARGETS="python3_6"
I think `addpredict` is needed, because pytorch need to access /dev for identifying GPU.
Created attachment 669737 [details, diff] pytorch ebuild patch Thanks. 'addpredict' is indeed the correct solution. This patch fixed it for me.
Created attachment 669740 [details, diff] fixed ebuild patch Sorry - this is the patch that fixes the ebuild. The last one was reversed.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/sci.git/commit/?id=051efe62ff7b5696889b5fe99a6cccb60848ac44 commit 051efe62ff7b5696889b5fe99a6cccb60848ac44 Author: Benda Xu <heroxbd@gentoo.org> AuthorDate: 2020-11-08 15:24:20 +0000 Commit: Benda Xu <heroxbd@gentoo.org> CommitDate: 2020-11-08 15:24:38 +0000 sci-libs/pytorch: give cmake a fake /dev/nvidiactl. This disables the auto detection of CUDA compute capabilities. Reported-by: Hendrik Klug Suggested-by: Simon Detheridge Closes: https://bugs.gentoo.org/742617 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Benda Xu <heroxbd@gentoo.org> sci-libs/pytorch/pytorch-1.6.0-r1.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)