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

Bug 703324

Summary: xf86-video-ati undefined symbol exaGetPixmapDriverPrivate
Product: Gentoo Linux Reporter: Riccardo <multix>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Riccardo 2019-12-19 00:10:51 UTC
startx fails with

(==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec 16 08:49:59 2019
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) [KMS] Kernel modesetting enabled.
/usr/bin/X: symbol lookup error: /usr/lib/xorg/modules/drivers/radeon_drv.so: undefined symbol: exaGetPixmapDriverPrivate
xinit: giving up 


Reproducible: Always

Steps to Reproduce:
just "startx"

xorg.conf.d  contains no specific setting. HW acceleration is not disabled



This happens both on a ThinkPad R52 as well as on my workstation with a "ATI Radeon X850 XT (R480)"
Comment 1 Riccardo 2019-12-19 00:13:26 UTC
this bug happens on my ThinkPad which is i386 and on my workstation which is amd64.


workstation emerge --info is:
emerge --info
Portage 2.3.79 (python 3.6.9-final-0, default/linux/amd64/17.0, gcc-8.2.0, glibc-2.30-r2, 5.2.10-gentoo x86_64)
=================================================================
System uname: Linux-5.2.10-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-gentoo-2.6
KiB Mem:     4038120 total,   3807368 free
KiB Swap:    5859476 total,   5859476 free
Timestamp of repository gentoo: Thu, 14 Nov 2019 21:30:01 +0000
Head commit of repository gentoo: 0a03cde4b2efff47e902c7f6b7564ec6ee4d1e39
sh bash 5.0_p11
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
ccache version 3.7.5 [disabled]
app-shells/bash:          5.0_p11::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17::gentoo, 3.5.9::gentoo, 3.6.9::gentoo, 3.7.5::gentoo, 3.8.0::gentoo
dev-util/ccache:          3.7.5::gentoo
dev-util/cmake:           3.15.5::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.16.1-r2::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo, 2.32-r1::gentoo, 2.33.1::gentoo
sys-devel/gcc:            6.5.0-r1::gentoo, 8.2.0-r6::gentoo, 8.3.0-r1::gentoo, 9.1.0-r1::gentoo, 9.2.0-r2::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-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r2::gentoo
Repositories:


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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE PUEL linux-firmware MSttfEULA bh-luxi freedist"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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="-O2 -pipe -march=core2"
DISTDIR="/usr/portage/distfiles"
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="-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 protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.unina.it/pub/linux/distributions/gentoo "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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 amd64 berkdb bzip2 cli crypt cxx dbus dri gdbm hal iconv ipv6 libtirpc mmx multilib ncurses nls nptl objc objc++ openmp pam pcre readline seccomp split-usr sse sse2 ssl tcpd threads unicode xattr 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 sse3" 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" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="ati r300" 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, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Ionen Wolkens gentoo-dev 2019-12-19 00:46:23 UTC
It would've been more appropriate to update your previous bug report at bug #703236 (what now? just move on to this one?)

For reference I'll link your forums thread here, not that it has a solution yet:
https://forums.gentoo.org/viewtopic-t-1105430.html
Comment 3 Riccardo 2019-12-19 07:26:43 UTC
Sorry - the previous bug disappeared in my list, I thought there was an error entering. Even my searching in "my" bugs and by entering the exact search term "exaGetPixmapDriverPrivate" in bugzilla, so I opened a new one.
Comment 4 Riccardo 2019-12-19 07:31:50 UTC
Since I can reproduce the issue on both my laptop (older card and i386) and my workstation (newer card and amd64) which have different ATI cards, we have the proof that this is not a single computer issue specific to that hardware or setup.

I think thus it is a bug in the driver or in the X11 + driver setup gentoo has, difficult to say now.

I wonder though that so few people have this issue!

If you consider this not a "Bug" because it is a runtime bug and not an build bug, we can continue using the forum.
Comment 5 Ionen Wolkens gentoo-dev 2019-12-19 08:26:23 UTC
That's because the bug was closed for the time being, and by default search only look for open bugs. And run time bugs are perfectly suitable here, there's no sense in something having built successfully if it doesn't work.

That aside, I don't use this driver/card so I can't help much. I just know this symbol should be provided by xorg/modules/libexa.so, however this is not meant to be loaded manually and the driver should be throwing an error if it tried and failed, maybe it choose not to load it.

Looking at the source, seems to not get to the exa loading if radeon_glamor_pre_init() is successful and recently glamor was enabled by default in gentoo for xorg (USE flag was removed, and is just enabled).. could this be related? But sounds like a driver bug rather than gentoo's if it's still trying to use exa.

Anyhow, just wait for the bug to be reviewed and possibly assigned to someone who'll know better than me.
Comment 6 Ionen Wolkens gentoo-dev 2019-12-19 08:55:40 UTC
Or, while waiting and for interest's sake, try to emerge xorg with
EXTRA_ECONF=--disable-glamor emerge -1 xorg-server

That would rule out my hypothesis if still doesn't work
Comment 7 Ionen Wolkens gentoo-dev 2019-12-19 09:04:37 UTC
Or well, maybe the driver instead (or both, ultimately should have the same result):
EXTRA_ECONF=--disable-glamor emerge -1 xf86-video-ati

Not that I'm very convinced it's caused by this.
Comment 8 Jonas Stein gentoo-dev 2019-12-19 19:25:06 UTC

*** This bug has been marked as a duplicate of bug 703236 ***
Comment 9 Riccardo 2019-12-19 20:38:17 UTC
Thanks for the info.
I fixed the issue - which was trivial, but the error message is really "bad".

HW acceleration was indeed disabled, but not by "choice" but because the kernel was not loading the necessary firmware.

According to https://wiki.gentoo.org/wiki/Radeon only for R600 and newer Firmware is needed.
My thinkpad has R300, my workstation R420. However, dmesg showed they were trying to load the firmware but failed. I compiled the fw blob in the kernel by using CONFIG_EXTRA_FIRMWARE in the kernel config. Rebuilt the kernel and now in chain, the FW is loaded, X works.

So the wiki page is perhaps outdated?

I would mark my bug as "invalid" since the error was somewhere else and the radeon driver spits out just a very stupid message, but that is not gentoo's fault!