Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 799134 - media-libs/opensubdiv-3.4.3: failed to compile as dependency for media-gfx/blender-2.93
Summary: media-libs/opensubdiv-3.4.3: failed to compile as dependency for media-gfx/bl...
Status: RESOLVED DUPLICATE of bug 744517
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-29 01:56 UTC by James K
Modified: 2021-06-29 12:19 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,171.00 KB, text/x-log)
2021-06-29 02:00 UTC, James K
Details
emerge --info '=media-gfx/blender-2.93::gentoo' (emerge-info-blender-2.93,8.06 KB, text/plain)
2021-06-29 02:02 UTC, James K
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James K 2021-06-29 01:56:12 UTC
I encounter the attached compile time error for opensubdiv-3.4.3 when emerging blender-2.93.

I noticed this line in the error:

`nvcc fatal   : Value 'compute_30' is not defined for option 'gpu-architecture'`

The build appears to be setting compute_30 for the architecture when, given my GPU below(1), I believe it should be 'compute_61'.

(1) NVIDIA GeForce GTX 1080 Ti

Note: opensubdiv[cuda] is built with gcc-8.4.0-r2 (set in package.env *only* for opensubdiv) as per the ebuild's <gcc-9 requirement. I'm unsure if this is relevant.

Reproducible: Always

Steps to Reproduce:
1. Create /etc/portage/env/gcc-8.4.0.conf containing:

   PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/8.4.0:${PATH}"
   CC="/usr/x86_64-pc-linux-gnu/gcc-bin/8.4.0/gcc"
   CXX="/usr/x86_64-pc-linux-gnu/gcc-bin/8.4.0/g++"

   and /etc/portage/package.env/oldgcc containing:

   =media-libs/opensubdiv-3.4.3 gcc-8.4.0.conf


2. emerge media-gfx/blender-2.93 with USE flags matching the attached emerge --info
Actual Results:  
The attached (see the build log) compile time error occurs.


emerge -pqv '=media-libs/opensubdiv-3.4.3::gentoo':
---------------------------------------------------
[ebuild  N    ] media-libs/opensubdiv-3.4.3  USE="cuda opencl openmp -doc -examples -ptex -tbb -test -tutorials"

emerge --info '=media-libs/opensubdiv-3.4.3::gentoo':
-----------------------------------------------------
Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1, gcc-10.3.0, glibc-2.33, 5.10.27-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.27-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-glibc2.33
KiB Mem:    16342840 total,   3949600 free
KiB Swap:     524284 total,    519420 free
Timestamp of repository gentoo: Mon, 28 Jun 2021 05:00:01 +0000
Head commit of repository gentoo: ae28e2356b8cb60892daeb782327a8c0119e55a2
Timestamp of repository brave-overlay: Wed, 23 Jun 2021 10:41:09 +0000
Head commit of repository brave-overlay: bb0407555b9b03ada5208cad1e352d6319791a3b

Timestamp of repository flewkey-overlay: Sat, 26 Jun 2021 17:26:43 +0000
Head commit of repository flewkey-overlay: 7a7b209c2526bb7e0970b0fd2c604c7fd48b22f1

Timestamp of repository glarbs-overlay: Wed, 23 Jun 2021 10:41:24 +0000
Head commit of repository glarbs-overlay: 1f898f67f391f72a6d980cf40e17b08ab9593995

Timestamp of repository guru: Sun, 27 Jun 2021 20:07:05 +0000
Head commit of repository guru: c5bd7273432e6bf21b8efd44c9d4f8d32e873330

Timestamp of repository haskell: Sun, 27 Jun 2021 23:37:25 +0000
Head commit of repository haskell: 245e08999382f0e58efe5fb82d6d9a5c1ddc5ad0

Timestamp of repository src_prepare-overlay: Sat, 26 Jun 2021 18:07:09 +0000
Head commit of repository src_prepare-overlay: 7384a729b6a8913c90066564674d48953833b3e3

Timestamp of repository steam-overlay: Sat, 26 Jun 2021 17:25:59 +0000
Head commit of repository steam-overlay: bbc6de86fd0fd55d0f4fa1723de3cacb6efffa93

sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.8.10_p2::gentoo, 3.9.5_p2::gentoo
dev-lang/rust:            1.52.1::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            8.4.0-r2::gentoo, 10.3.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

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

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

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

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

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

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

james-overlay
    location: /var/db/repos/james-overlay
    masters: gentoo

src_prepare-overlay
    location: /var/db/repos/src_prepare-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/src_prepare-overlay.git
    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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
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://gentoo.gossamerhost.com rsync://gentoo.gossamerhost.com/gentoo-distfiles/ ftp://mirrors.tera-byte.com/pub/gentoo http://gentoo.mirrors.tera-byte.com/ rsync://mirrors.tera-byte.com/gentoo ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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"
USE="X acl alsa alsa-plugin amd64 berkdb bluetooth bzip2 cli crypt dbus dri elogind fortran gdbm iconv ipv6 kdrive libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre pulseaudio readline seccomp split-usr ssl symlink tcpd threads tty-helpers udev unicode xattr xephyr 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="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 James K 2021-06-29 02:00:28 UTC
Created attachment 719943 [details]
build.log
Comment 2 James K 2021-06-29 02:02:54 UTC
Created attachment 719946 [details]
emerge --info '=media-gfx/blender-2.93::gentoo'
Comment 3 Ionen Wolkens gentoo-dev 2021-06-29 12:19:27 UTC
As a workaround, try something along the lines of:

MYCMAKEARGS="-DOSD_CUDA_NVCC_FLAGS='--gpu-architecture;sm_35'" \
    emerge -1 opensubdiv

*** This bug has been marked as a duplicate of bug 744517 ***