Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733882 - media-libs/libsdl2-2.0.10 USE=vulkan compile error
Summary: media-libs/libsdl2-2.0.10 USE=vulkan compile error
Status: RESOLVED DUPLICATE of bug 721954
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-25 11:16 UTC by rkuchiki
Modified: 2020-08-07 01:31 UTC (History)
2 users (show)

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


Attachments
unmodified build.log (build.log,158.49 KB, text/plain)
2020-07-25 15:16 UTC, rkuchiki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rkuchiki 2020-07-25 11:16:23 UTC
When attempting to build libsdl2 with USE=vulkan, the build fails.

Possibly a result of "libsdl2-2.0.10-static-libs.patch" removing a bunch of vulkan headers? (static-libs USE flag is not enabled, but this patch still appears to run)

Reproducible: Always

Steps to Reproduce:
1. Built initially with USE="X alsa dbus joystick libsamplerate opengl pulseaudio sound threads udev video (-altivec) (-aqua) (-custom-cflags) -gles2 -haptic -kms -nas -oss -static-libs -tslib -vulkan -wayland -xinerama -xscreensaver" 

2. Add vulkan USE flag and do `sudo emerge --ask --update --newuse --deep @world`

3. Error when emerge rebuild process reaches libsdl
Actual Results:  
Compile error:
/var/tmp/portage/media-libs/libsdl2-2.0.10-r1/work/SDL2-2.0.10/src/video/SDL_vulkan_utils.c:88:10: error: ‘VK_RESULT_RANGE_SIZE’ undeclared (first use in this function)

Expected Results:  
Build to complete successfully

Portage 2.3.103 (python 3.7.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.30-r8, 5.4.48-gentoo-x86_64 x86_64)                                                                                                       =================================================================
                         System Settings
=================================================================                                                                                                                                                                            System uname: Linux-5.4.48-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.6                                                                                                                                      KiB Mem:    12258340 total,   6163236 free                                                                                                                                                                                                   KiB Swap:    1951740 total,   1951740 free                                                                                                                                                                                                   Timestamp of repository gentoo: Fri, 24 Jul 2020 18:00:01 +0000                                                                                                                                                                              Head commit of repository gentoo: 3012e223aedb3fd495e5e66d340681c7e562a5d2                                                                                                                                                                   sh bash 5.0_p17                                                                                                                                                                                                                              ld GNU ld (Gentoo 2.33.1 p2) 2.33.1                                                                                                                                                                                                          app-shells/bash:          5.0_p17::gentoo                                                                                                                                                                                                    dev-java/java-config:     2.3.1::gentoo                                                                                                                                                                                                      dev-lang/perl:            5.30.3::gentoo                                                                                                                                                                                                     dev-lang/python:          2.7.18-r1::gentoo, 3.7.8-r2::gentoo, 3.8.4-r1::gentoo                                                                                                                                                              dev-util/cmake:           3.16.5::gentoo                                                                                                                                                                                                     sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo                                                                                                                                                                                                   sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=ivybridge -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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=ivybridge -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="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=ivybridge -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=ivybridge -O2 -pipe"
GENTOO_MIRRORS="https://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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 a52 aac aalib acl acpi activities alsa amd64 ao aom archive audiofile bash-completion berkdb bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr chromium cli connman cracklib crypt css cups curl cxx dbus declarative dri dts dv dvd dvdr elogind emboss encode exif faad fdk ffmpeg fftw flac fluidsynth fontconfig fortran gd gdbm geoip geolocation gif git gpm gsm gstreamer gzip hddtemp http http2 iconv icu imagemagick initramfs ios ipv6 jack java jit joystick jpeg jpeg2k kde kipi kwallet lame lcms ldap libaom libass libdrm libnotify librtmp libsamplerate libsoxr libtirpc libv4l libxml2 lm-sensors lua lzma lzo mad magic matroska mmap mng modplug mp3 mp4 mpeg mpi mplayer mtp multilib musepack mysqli ncurses nfs nls nptl nsplugin offensive ogg openal opencl opengl openh264 openmp openssl opus pam pango pcre pdf perl phonon php plasma png policykit ppds pulseaudio python qml qrcode qt4 qt5 raw rdp readline rss samba sasl sdl seccomp semantic-desktop session sftp shout sid skins smp sndfile sockets socks5 sound soxr speex spell split-usr sqlite srt ssh ssl startup-notification svg szip taglib tcl tcpd themes theora threads tidy tiff truetype twolame udev udisks unicode upnp upower usb v4l vaapi vcd vdpau vorbis vpx vulkan wavpack webkit webp widgets wifi wxwidgets x264 x265 xattr xcb xml xv xvid zip zlib zsh-completion" 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="aes avx f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" 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" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu intel radeonsi vesa" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

media-libs/libsdl2-2.0.10-r1::gentoo was built with the following:
USE="X alsa dbus joystick libsamplerate opengl pulseaudio sound threads udev video (-altivec) (-aqua) (-custom-cflags) -gles2 -haptic -kms -nas -oss -static-libs -tslib -vulkan -wayland -xinerama -xscreensaver" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx sse sse2 -3dnow" VIDEO_CARDS="(-vc4)"
Comment 1 Ionen Wolkens gentoo-dev 2020-07-25 12:32:14 UTC
Looks like same issue as bug #721954 but stable version (2.0.10-r1) never received the fix and vulkan-headers-1.2.143 that led to the issue been stabilized.
Comment 2 rkuchiki 2020-07-25 14:30:49 UTC
(In reply to Ionen Wolkens from comment #1)
> Looks like same issue as bug #721954 but stable version (2.0.10-r1) never
> received the fix and vulkan-headers-1.2.143 that led to the issue been
> stabilized.

Thank you, I did not find that bug when searching (I did search, honest!). Adding the patch attached to the bug you linked to /etc/portage/patches/media-libs/libsdl2-2.0.10-r1/0000-workaround.patch has fixed the issue for me.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-07-25 14:44:43 UTC
Please include the full build.log.
Comment 4 rkuchiki 2020-07-25 15:16:24 UTC
Created attachment 650718 [details]
unmodified build.log

failed build
Comment 5 Ionen Wolkens gentoo-dev 2020-07-25 20:34:22 UTC
(In reply to rkuchiki from comment #2)
> Thank you, I did not find that bug when searching (I did search, honest!).
By default it doesn't search for closed bugs as they should (hopefully) no longer be relevant -- but this is fine, this is now its own problem that need to be fixed either by adding the fix to 2.0.10  or stabilizing libsdl2-2.0.12-r1.
Comment 6 Ben 2020-08-06 08:57:45 UTC
Ran into this issue as well, appears indeed to be the same as bug #721954 and the  same fix allows libsdl2-2.0.10-r1 to build properly.

Should this patch be backported (just add the 2.0.12 patch into the ebuild, seems to work for me) or will 2.0.12-r1 be stabilized soon?
Comment 7 Andreas Sturmlechner gentoo-dev 2020-08-06 22:34:22 UTC

*** This bug has been marked as a duplicate of bug 721954 ***
Comment 8 Ionen Wolkens gentoo-dev 2020-08-07 01:31:10 UTC
For the record a stable request was also opened at bug #736186, so leftover issues with 2.0.10 will become irrelevant.