Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932124 - games-emulation/duckstation-9999 - error: too many arguments to function call & no member named 'shaderc_compilation_status_to_string' in the global namespace
Summary: games-emulation/duckstation-9999 - error: too many arguments to function call...
Status: UNCONFIRMED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Haelwenn (lanodan) Monnier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-18 01:09 UTC by Neko-san
Modified: 2025-04-09 10:08 UTC (History)
2 users (show)

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


Attachments
Build Log (emerge_duckstation_build.log,189.76 KB, text/x-log)
2024-05-18 02:21 UTC, Neko-san
Details
Patch to build against vanilla shaderc (duckstation-9999-vanilla-shaderc.patch,2.87 KB, patch)
2024-05-25 15:18 UTC, Michael Cook
Details | Diff
vanilla-shaderc.patch (vanilla-shaderc.patch,2.87 KB, patch)
2024-07-02 05:29 UTC, Alex Barker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Neko-san 2024-05-18 01:09:51 UTC
Building duckstation on every commit since (and including) the last official release fails with at least these three errors.

Reproducible: Always

Steps to Reproduce:
1. USE="X dbus discord egl evdev -fbdev gamepad gbm -nogui qt6 retroachievements wayland" emerge dusckstation
Actual Results:  
Compilation fails with three errors.

Expected Results:  
Compilation to succeed.

Portage 3.0.63 (python 3.11.9-final-0, default/linux/amd64/23.0/split-usr/llvm, gcc-13, glibc-2.39-r6, 6.8.9-tkg-eevdf-gentoo-llvm-zen2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.8.9-tkg-eevdf-gentoo-llvm-zen2-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-glibc2.39
KiB Mem:    32771596 total,    946200 free
KiB Swap:   16777212 total,  15063804 free
Timestamp of repository gentoo: Fri, 17 May 2024 23:20:43 +0000
Head commit of repository gentoo: 72a90a161b58c9ced6ea39cde9147b209aa5d76c

Timestamp of repository guru: Fri, 17 May 2024 23:20:34 +0000
Head commit of repository guru: e3ec7b4e5eadfc17fb6cb14b03323c52f403f186

Timestamp of repository kde: Fri, 17 May 2024 20:03:38 +0000
Head commit of repository kde: 79ecf5897b47194a8d99b8dbe175c9506cc3c779

Timestamp of repository steam-overlay: Fri, 17 May 2024 12:20:53 +0000
Head commit of repository steam-overlay: 50cd00c3db1b246b78295a54101cc1b0ba385c64

Head commit of repository waffle-builds: d5f0d4b23666082bd84560353a401e919bda2d41

Head commit of repository bobwya: a8496a14aee3c337b0e547b97b546b08607242a8

Head commit of repository farmboy0: a0898c34517ee244b713b1b21f9cd85ff37105df

Head commit of repository librewolf: 169a056a843389d850501d1ff6639b7befd59b61

Head commit of repository oxen-overlay: caa06ee33866f344b827f2bf7105839272cd7b3e

Head commit of repository src_prepare-overlay: 7ae776e49cd792916bece4ef2694f162074b5cc6

Head commit of repository tatsh-overlay: 0745e13053ae70e837ad73a64884a95a9cd00d7f

Head commit of repository tezeta: c2bcc0b1d54a300f2f5f463be22fe5d3e439b4c8

Head commit of repository thegreatmcpain: 70942ad19a0c9b6183a1840656733f163ebe8dcf

Head commit of repository x0rzavi: e560dddb58c5baebc899623129a9db37f9a8da4b

Timestamp of repository xwing: Mon, 13 May 2024 08:05:39 +0000
Head commit of repository xwing: 2ff8ba0a9932279bf4a815365afe57de9fb853b5

sh lksh
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust:             1.77.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

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

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

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

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

waffle-builds
    location: /var/db/repos/waffle-builds
    sync-type: git
    sync-uri: https://github.com/FlyingWaffleDev/waffle-builds
    masters: gentoo
    volatile: False

bobwya
    location: /var/db/repos/bobwya
    sync-type: git
    sync-uri: https://github.com/bobwya/bobwya
    masters: gentoo
    priority: 50
    volatile: False

farmboy0
    location: /var/db/repos/farmboy0
    sync-type: git
    sync-uri: https://github.com/farmboy0/portage-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    priority: 50
    volatile: False

oxen-overlay
    location: /var/db/repos/oxen-overlay
    sync-type: git
    sync-uri: https://github.com/XutaxKamay/oxen-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

src_prepare-overlay
    location: /var/db/repos/src_prepare-overlay
    sync-type: git
    sync-uri: https://gitlab.com/src_prepare/src_prepare-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

tatsh-overlay
    location: /var/db/repos/tatsh-overlay
    sync-type: git
    sync-uri: https://github.com/Tatsh/tatsh-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

tezeta
    location: /var/db/repos/tezeta
    sync-type: git
    sync-uri: https://github.com/tezeta/tezeta-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

thegreatmcpain
    location: /var/db/repos/thegreatmcpain
    sync-type: git
    sync-uri: https://gitlab.com/TheGreatMcPain/thegreatmcpain-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

x0rzavi
    location: /var/db/repos/x0rzavi
    sync-type: git
    sync-uri: https://github.com/x0rzavi/x0rzavi-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="llvm-as"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=znver2 -pipe -minline-all-stringops -ftree-vectorize -O3 -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection -fPIC -ggdb3"
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"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-march=znver2 -pipe -minline-all-stringops -ftree-vectorize -O3 -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection -fPIC -ggdb3"
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=znver2 -pipe -minline-all-stringops -ftree-vectorize -O3 -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection -fPIC -ggdb3"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox pkgdir-index-trusted 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=znver2 -pipe -minline-all-stringops -ftree-vectorize -O3 -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection -fPIC -ggdb3"
GENTOO_MIRRORS="https://gentoo.osuosl.org/"
LANG="en_US.utf8"
LD="ld.lld"
LDFLAGS="-Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now"
LEX="flex"
MAKEOPTS="-j7"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-9 -R -p4"
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"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
RUSTFLAGS="-C opt-level=3 -C target-cpu=native -C codegen-units=1"
SHELL="/bin/bash"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="7z X a52 aac acl acpi activities alsa amd64 autotype bash-completion bluetooth branding browser browser-integration bzip2 cairo cdda cdr cet clang cli colord crash-handler crypt cups dbus declarative default-compiler-rt default-libcxx default-lld desktop-portal dhclient discover dri dts dvd dvdr echo-cancel elogind encode eselect-ldso exif ffmpeg firewall flac flatpak fluidsynth fortran gbm gdbm gif gles2 gles3 gpm gstreamer gtk gui hardened iconv icu ipv6 iwd jack jack-client jpeg kde kf6compat kwallet lcms legacy-systray libcxx libnotify libtirpc llvm-libunwind lm-sensors mad mgba mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openh264 openmp openssl opus pam pango pcre pdf pic pie pipewire pipewire-alsa plasma png policykit ppds pulseaudio qml qt5 raw readline resolvconf retroachievements rtc screencast sddm sdl seccomp sechash semantic-desktop share smart sound sound-server spell split-usr ssl startup-notification svg system-crontab system-man test-rust threads tiff timidity truetype udev udisks unicode upnp upower usb v4l vaapi vdpau vorbis vulkan wallpapers wav wayland widgets wired wxwidgets x264 xattr xcb xcsecurity xft xml xorg xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gcc_12" AMDGPU_TARGETS="gfx1101 gfx908 gfx90a" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby31" SANE_BACKENDS="hp" VIDEO_CARDS="fbdev vesa dummy v4l lavapipe amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
YACC="byacc"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, SIZE, YFLAGS

=================================================================
                        Package Settings
=================================================================

games-emulation/duckstation-9999::guru was built with the following:
USE="X dbus discord egl evdev gamepad gbm qt6 retroachievements wayland -fbdev -nogui" ABI_X86="(64)"
CFLAGS="-march=znver2 -mtune=znver2 -pipe -fno-plt -ftrivial-auto-var-init=pattern -fexceptions -minline-all-stringops -ftree-vectorize -O3 -Werror=array-bounds -Wp,-D_FORTIFY_SOURCE=3 -fstack-clash-protection -fstack-protector-strong -fcf-protection -Wformat -Werror=format-security -fPIC -ggdb3"
CXXFLAGS="-march=znver2 -mtune=znver2 -pipe -fno-plt -ftrivial-auto-var-init=pattern -fexceptions -minline-all-stringops -ftree-vectorize -O3 -Werror=array-bounds -Wp,-D_FORTIFY_SOURCE=3 -fstack-clash-protection -fstack-protector-strong -fcf-protection -Wformat -Werror=format-security -fPIC -ggdb3"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 1 Greg Kubaryk 2024-05-18 01:21:54 UTC
Needs build.log attached.
Comment 2 Neko-san 2024-05-18 02:21:04 UTC
Created attachment 893193 [details]
Build Log

Whoops, accidentally forgot the build log
Comment 3 Michael Cook 2024-05-21 02:38:42 UTC
Duckstation requires a patched shaderc sadly ... and they changed again so it's not as easy to patch out like the changes are in PCSX2 -.-
Comment 4 Michael Cook 2024-05-25 15:18:51 UTC
Created attachment 894358 [details, diff]
Patch to build against vanilla shaderc

Much like is done for PCSX2
Comment 5 Alex Barker 2024-07-02 05:21:28 UTC
I am struggling to make this patch work with the duckstation HEAD

/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/util/gpu_device.cpp:1327:3: error: ‘dyn_shaderc’ has not been declared
 1327 |   dyn_shaderc::shaderc_compile_options_set_generate_debug_info(options);
      |   ^~~~~~~~~~~
/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/util/gpu_device.cpp:1331:41: error: ‘dyn_shaderc’ has not been declared
 1331 |   shaderc_compilation_result_t result = dyn_shaderc::shaderc_compile_into_spv(
      |                                         ^~~~~~~~~~~
/var/tmp/portage/games-emulation/duckstation-9999/work/duckstation/src/util/gpu_device.cpp:1334:39: error: ‘dyn_shaderc’ has not been declared
 1334 |   shaderc_compilation_status status = dyn_shaderc::shaderc_result_get_compilation_status(result);
      |                                       ^~~~~~~~~~~
Comment 6 Alex Barker 2024-07-02 05:29:42 UTC
Created attachment 896747 [details, diff]
vanilla-shaderc.patch

Never mind, I figured out what I messed up.  I have attached the modified patch but vulkan is still broken.
Comment 7 Larry the Git Cow gentoo-dev 2025-04-09 10:08:05 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ef746c5a98f26ecb84f103c92980242aa5cf4a7f

commit ef746c5a98f26ecb84f103c92980242aa5cf4a7f
Author:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
AuthorDate: 2025-04-09 00:15:55 +0000
Commit:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
CommitDate: 2025-04-09 00:20:54 +0000

    profiles: last-rite games-emulation/duckstation
    
    Bug: https://bugs.gentoo.org/912996
    Bug: https://bugs.gentoo.org/916321
    Bug: https://bugs.gentoo.org/926268
    Bug: https://bugs.gentoo.org/932124
    Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>

 profiles/package.mask | 8 ++++++++
 1 file changed, 8 insertions(+)