Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 698114

Summary: x11-drivers/xf86-video-ati-19.1.0 - radeon_present.c:281:21: error: dereferencing pointer to incomplete type 'struct radeon_pixmap'
Product: Gentoo Linux Reporter: Conrad Kostecki <conikost>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: alexander
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=112076
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Conrad Kostecki gentoo-dev 2019-10-20 14:51:15 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -c radeon_sync.c  -fPIC -DPIC -o .libs/radeon_sync.o
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri  -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -c -o radeon_bo_helper.lo radeon_bo_helper.c
radeon_present.c: In function 'radeon_present_check_flip':
radeon_present.c:281:21: error: dereferencing pointer to incomplete type 'struct radeon_pixmap'
  281 |     if (priv && priv->fb_failed)
      |                     ^~
make[2]: *** [Makefile:694: radeon_present.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -c radeon_vbo.c  -fPIC -DPIC -o .libs/radeon_vbo.o
radeon_dri2.c: In function 'radeon_dri2_exchange_buffers':
radeon_dri2.c:732:19: warning: unused variable 'info' [-Wunused-variable]
  732 |     RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(screen));
      |                   ^~~~
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wall -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -c radeon_bo_helper.c  -fPIC -DPIC -o .libs/radeon_bo_helper.o
In file included from radeon_exa.c:335:
radeon_exa_funcs.c: In function 'RADEONDownloadFromScreenCS':
radeon_exa_funcs.c:547:5: warning: 'src_pitch_offset' may be used uninitialized in this function [-Wmaybe-uninitialized]
  547 |     RADEONBlitChunk(pScrn, driver_priv->bo->bo.radeon, scratch, datatype,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  548 |       src_pitch_offset, scratch_pitch << 16, x, y, 0, 0, w, h,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  549 |                     RADEON_GEM_DOMAIN_VRAM | RADEON_GEM_DOMAIN_GTT,
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  550 |                     RADEON_GEM_DOMAIN_GTT);
      |                     ~~~~~~~~~~~~~~~~~~~~~~
radeon_exa_funcs.c: In function 'RADEONUploadToScreenCS':
radeon_exa_funcs.c:464:2: warning: 'dst_pitch_offset' may be used uninitialized in this function [-Wmaybe-uninitialized]
  464 |  RADEONBlitChunk(pScrn, scratch, driver_priv->bo->bo.radeon, datatype, scratch_pitch << 16,
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |    dst_pitch_offset, 0, 0, x, y, w, h,
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |    RADEON_GEM_DOMAIN_GTT, RADEON_GEM_DOMAIN_VRAM);
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-ati-19.1.0/work/xf86-video-ati-19.1.0/src'
make[1]: *** [Makefile:462: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-ati-19.1.0/work/xf86-video-ati-19.1.0'
make: *** [Makefile:394: all] Error 2
 * ERROR: x11-drivers/xf86-video-ati-19.1.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/xf86-video-ati-19.1.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/xf86-video-ati-19.1.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-ati-19.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-ati-19.1.0/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/xf86-video-ati-19.1.0/work/xf86-video-ati-19.1.0'
 * S: '/var/tmp/portage/x11-drivers/xf86-video-ati-19.1.0/work/xf86-video-ati-19.1.0'
Comment 1 Conrad Kostecki gentoo-dev 2019-10-20 14:52:02 UTC
Portage 2.3.77 (python 3.6.9-final-0, default/linux/amd64/17.1, gcc-9.2.0, glibc-2.29-r6, 5.3.6-gentoo-r1 x86_64)
=================================================================
System uname: Linux-5.3.6-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_X_990_@_3.47GHz-with-gentoo-2.6
KiB Mem:    49339200 total,   2224268 free
KiB Swap:   25690108 total,  25687280 free
Timestamp of repository gentoo: Sun, 20 Oct 2019 10:15:01 +0000
Head commit of repository gentoo: 207fabf6ce392e5e85eef580116afc553739f92b
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.4 [enabled]
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.5.7::gentoo, 3.6.9::gentoo, 3.7.5-r1::gentoo
dev-util/ccache:          3.7.4::gentoo
dev-util/cmake:           3.15.4::gentoo
dev-util/pkgconfig:       0.29.2::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.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.de.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: --exclude-from=/etc/portage/rsync_excludes

bl4ckb0x
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/teamspeak3-server/ts3server.ini /etc/teamspeak3-server/ts3server_mariadb.ini /etc/teamspeak3-server/tsdns_settings.ini /opt/fhem /usr/share/gnupg/qualified.txt /var/lib/fhem"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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="-frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-frecord-gcc-switches"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/"
INSTALL_MASK="/etc/systemd/* /etc/xinetd.d/* /usr/lib/systemd/system/*"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--sort-common -Wl,-z,now"
LINGUAS="de de_DE"
MAKEOPTS="-j13 -l12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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 aalib acl alsa amd64 avahi berkdb bzip2 cairo caps cddb cdinstall cjk cracklib crypt cups curl cvs cxx dbus dedicated dga djvu encode exif fbcon ffmpeg fftw flac flite fontconfig ftp gd gif git gmp gnutls gphoto2 gpm graphviz gsm gstreamer iconv icu idn imagemagick imlib inotify introspection ipv6 java javascript jbig jemalloc jit joystick jpeg jpeg2k lcms ldap libcaca libnotify libsamplerate lm-sensors lzma lzo maildir mbox mhash mikmod mmap mng modplug mp3 mysql mysqli ncurses nls nntp nptl nsplugin offensive ogg openal openexr opengl openmp orc oss pam pcre pdf perl pie png posix postproc postscript pulseaudio python qt4 qt5 raw readline rtmp samba scanner sdl session slang sndfile sockets sound speex spell split-usr sqlite ssl subversion suid svg symlink syslog tcpd theora threads tiff timidity truetype udev unicode upnp usb v4l vaapi vcd vdpau vhosts vim-syntax vnc vorbis wavpack webkit webp wmf x264 xattr xcb xface xft xml xmlrpc xmp xmpp xpm xscreensaver xv xvid zeroconf zlib zsh-completion zstd" ABI_X86="32 64" COLLECTD_PLUGINS="cgroups conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat exec filecount hddtemp hugepages interface ipc iptables irq java load memory mysql netlink nfs nginx numa openvpn ping postgresql processes protocols rrdcached sensors serial smart swap syslog tcpconns thermal turbostat unixsock uptime users" CPU_FLAGS_X86="aes mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LLVM_TARGETS="AMDGPU" NGINX_MODULES_HTTP="access auth_basic autoindex brotli browser charset fancyindex fastcgi geo geoip geoip2 gunzip gzip headers_more limit_conn proxy realip referer rewrite sticky stub_status upstream_keepalive vhost_traffic_status" NGINX_MODULES_STREAM="access geo geoip geoip2 limit_conn realip return ssl_preread" PHP_TARGETS="php7-3" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon"
Unset:  CC, CPPFLAGS, CTARGET, CXX, PORTAGE_BINHOST
Comment 2 Conrad Kostecki gentoo-dev 2019-10-20 14:52:15 UTC
Created attachment 593390 [details]
build.log
Comment 3 Alexander Tsoy 2019-10-20 21:46:07 UTC
https://bugs.freedesktop.org/show_bug.cgi?id=112076
Comment 4 Conrad Kostecki gentoo-dev 2019-10-23 11:34:05 UTC
Thanks. With enable glamor, I was able to compile.
Comment 5 Larry the Git Cow gentoo-dev 2019-11-03 22:12:48 UTC
The bug has been closed via the following commit(s):

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

commit 61f5f2eb1e4fcb968ac4e3faac38d6d70fed5de8
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-11-03 22:09:01 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-11-03 22:12:34 +0000

    profiles: Drop IUSE=glamor
    
    libepoxy is stable on s390, so remove those masks entirely.
    
    Closes: https://bugs.gentoo.org/698114
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 profiles/arch/m68k/package.use.mask    | 3 +--
 profiles/arch/s390/package.use.mask    | 5 -----
 profiles/arch/sh/package.use.mask      | 3 +--
 profiles/targets/desktop/make.defaults | 2 +-
 4 files changed, 3 insertions(+), 10 deletions(-)

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

commit d12b997419cdaefed32901d40039e98689258edc
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-11-03 22:07:01 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-11-03 22:12:33 +0000

    x11-base/xorg-drivers: Update dep for IUSE=glamor removal
    
    Closes: https://bugs.gentoo.org/698114
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-base/xorg-drivers/xorg-drivers-1.20.ebuild | 10 +++++-----
 x11-base/xorg-drivers/xorg-drivers-9999.ebuild | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

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

commit 31a4af30aa5170f62e70639c4fab35b76e304446
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-11-03 22:03:47 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-11-03 22:12:33 +0000

    x11-drivers/xf86-video-amdgpu: Update dep for IUSE=glamor removal
    
    Closes: https://bugs.gentoo.org/698114
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-19.0.1.ebuild | 2 +-
 x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-19.1.0.ebuild | 2 +-
 x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-9999.ebuild   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

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

commit 973e7833b16816c19d0f6015fec49cc26bc376d3
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-11-03 22:02:49 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-11-03 22:12:33 +0000

    x11-drivers/xf86-video-ati: Drop glamor USE flag
    
    Closes: https://bugs.gentoo.org/698114
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-drivers/xf86-video-ati/metadata.xml                 | 3 ---
 x11-drivers/xf86-video-ati/xf86-video-ati-19.0.1.ebuild | 6 +++---
 x11-drivers/xf86-video-ati/xf86-video-ati-19.1.0.ebuild | 6 +++---
 x11-drivers/xf86-video-ati/xf86-video-ati-9999.ebuild   | 6 +++---
 4 files changed, 9 insertions(+), 12 deletions(-)

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

commit dba654a63339bddce214386c83330c39e443fd06
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-11-03 21:55:57 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-11-03 22:12:33 +0000

    x11-base/xorg-server: Enable glamor with USE=-minimal
    
    It only adds a dependency on media-libs/libepoxy which is small and used
    by many other packages. glamor can be disabled at runtime with Option
    "AccelMethod" in xorg.conf.
    
    Closes: https://bugs.gentoo.org/698114
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-base/xorg-server/metadata.xml              |  1 -
 x11-base/xorg-server/xorg-server-1.20.5.ebuild | 17 +++++++----------
 x11-base/xorg-server/xorg-server-9999.ebuild   | 18 ++++++++----------
 3 files changed, 15 insertions(+), 21 deletions(-)