Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835589 - media-libs/opensubdiv-3.4.4-r1: fails to build with cuda support on gcc 8.5.0 (nvcc fatal : Value 'compute_30' is not defined for option 'gpu-architecture')
Summary: media-libs/opensubdiv-3.4.4-r1: fails to build with cuda support on gcc 8.5.0...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Adrian
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 835590
Blocks:
  Show dependency tree
 
Reported: 2022-03-18 15:40 UTC by Austin Kilgore
Modified: 2024-01-20 12:32 UTC (History)
6 users (show)

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


Attachments
build.log (opensubdiv-build.log,167.18 KB, text/plain)
2022-03-18 15:40 UTC, Austin Kilgore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Austin Kilgore 2022-03-18 15:40:12 UTC
Created attachment 767349 [details]
build.log

Trying to build opensubdiv with cuda support using gcc 8.5.0 on my 3050ti mobile card with sm80 arch.

All I've done so far is unmask cuda, video_cards_nvidia, and nvenc, emerge -a1 gcc v8.5.0, eselect set to that version of gcc, refresh profile, and lastly try to emerge opensubdiv.

Reproducible: Always

Steps to Reproduce:
Emerging the package with cuda enabled causes the failure.

Actual Results:  
Fails to build.

Expected Results:  
Package should build.

Emerge --info:
Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/no-multilib, gcc-8.5.0, glibc-2.33-r13, 5.15.7-gentoo-dist x86_64)
=================================================================
System uname: Linux-5.15.7-gentoo-dist-x86_64-AMD_Ryzen_9_5900HS_with_Radeon_Graphics-with-glibc2.33
KiB Mem:    15841192 total,  10673688 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 18 Mar 2022 14:49:47 +0000
Head commit of repository gentoo: f4a0fc4cfd3daf8b89a6fc80d6119a07855de51b

Timestamp of repository einflay: Wed, 16 Mar 2022 21:49:30 +0000
Head commit of repository einflay: 37c0a7b8c5e881277054fb29958679d3090524b7

Timestamp of repository guru: Fri, 18 Mar 2022 06:49:05 +0000
Head commit of repository guru: 967fcbf52bbc306a08542a5035de7a62059c9b04

Timestamp of repository menelkir: Wed, 16 Mar 2022 21:49:29 +0000
Head commit of repository menelkir: 089d3cf8652d56a41ade6ef684b0ac068cff390f

Timestamp of repository mva: Fri, 18 Mar 2022 01:49:33 +0000
Head commit of repository mva: 842c8beb5c2fb7ceb978e236998356c257f331fb

Timestamp of repository src_prepare-overlay: Fri, 18 Mar 2022 01:49:36 +0000
Head commit of repository src_prepare-overlay: 367dcfc4f14e4ceee2eb46f1ae8b85f108aad063

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p14::gentoo, 3.9.9-r1::gentoo, 3.10.2_p1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           12.0.1::gentoo, 13.0.1::gentoo
sys-devel/gcc:             8.5.0-r1::gentoo, 11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/llvm:            12.0.1::gentoo, 13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r13::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000
    sync-git-verify-commit-signature: true

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

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

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

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

crossdev
    location: /var/db/repos/portage-crossdev
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -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"
CXXFLAGS="-march=native -O3 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --with-bdeps y --complete-graph y"
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 -O3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live candy 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 -O3 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
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/fish"
USE="10bit 12bit 24-bit-color 24bpp 256-color 7z 7za 7zip 8bit X a52 aac aacplus aacs acl aio airdrop-ng airgraph-ng alsa amd64 aom apm archive asm bash-completion bdplus bluetooth bluez bluray bzip2 cairo cg cli crypt cuda cups dbus declarative docker dri dri3 elogind encode fortran gdbm git github glew gold gtk iconv ipv6 jpeg jpeg2k libglvnd libkms libtirpc libv4l libvirt libvirtd lm-sensors lto mp3 ncurses networkmanager nls nptl nvdec nvenc opengl openmp opus pam pcre pgo policykit pulseaudio qemu qml qt5 rar readline sdl seccomp spice split-usr ssl theora threads udev udisks unicode upower usb usbredir v4l v4l2 v4lutils vaapi vainfo vbox vboxwebsrv vdpau vhost-net vhost-user-fs vhosts vim vim-syntax virgl virt-network virtfs virtualbox visualizer vkd3d vlc vmware vnc vnc-client vocoder vorbis vpx vulkan vulkan-overlay wavpack webcam widgets x264 x265 xa xattr xen xfs xml xorg xrandr xvid yaml zip zip-encryption zlib zsh-completion 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" 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 wacom synaptics evdev vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU 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_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="arm x86_64 i386 aarch64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon nvidia qxl virgl virtualbox vmware" 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:  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, LINGUAS, 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 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-18 15:52:07 UTC
Why are you using such an old GCC? It's about to be masked and it's no longer supported upstrea--

oh, I see, we need to stable a newer version. What about opensubdiv-3.4.4-r3?
Comment 2 Austin Kilgore 2022-03-18 16:19:55 UTC
Just tried it and I can confirm that opensubdiv-3.4.4.-r3 builds fine with gcc-11.2.1.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-18 16:54:08 UTC
(In reply to Austin Kilgore from comment #2)
> Just tried it and I can confirm that opensubdiv-3.4.4.-r3 builds fine with
> gcc-11.2.1.

Thank you!
Comment 4 Alexey Korepanov 2023-02-20 13:16:04 UTC
I'm hitting this trying to recompile 3.4.4-r3 with gcc-12.2.1:

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

My card is not compute_35
Comment 5 Thomas Scheiblauer 2023-02-21 10:19:22 UTC
(In reply to Alexey Korepanov from comment #4)

I have the same problem.
Comment 6 Larry the Git Cow gentoo-dev 2024-01-20 12:32:37 UTC
The bug has been closed via the following commit(s):

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

commit c645a8f22e320746e5111d59a500fe37acdd9179
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2023-12-08 14:19:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-20 12:29:43 +0000

    media-libs/opensubdiv: add 3.5.1, 3.6.0
    
    Closes: https://bugs.gentoo.org/903982
    Closes: https://bugs.gentoo.org/891301
    Closes: https://bugs.gentoo.org/884463
    Closes: https://bugs.gentoo.org/835589
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/34546
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/opensubdiv/Manifest                |   2 +
 media-libs/opensubdiv/opensubdiv-3.5.1.ebuild | 121 ++++++++++++++++++++++++++
 media-libs/opensubdiv/opensubdiv-3.6.0.ebuild | 121 ++++++++++++++++++++++++++
 3 files changed, 244 insertions(+)