Bug 72307 - [radeonsi] radeonsi_dri.so undefined symbol: setupterm
Summary: [radeonsi] radeonsi_dri.so undefined symbol: setupterm
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-04 11:36 UTC by Tom
Modified: 2016-05-24 14:08 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg log (29.71 KB, text/plain)
2013-12-04 11:36 UTC, Tom
Details
dmesg log (128.33 KB, text/plain)
2013-12-04 11:37 UTC, Tom
Details

Description Tom 2013-12-04 11:36:16 UTC
Created attachment 90220 [details]
Xorg log

Hello. I can see following errors when starting Xorg:

failed to open /usr/lib64/dri/radeonsi_dri.so: /usr/lib64/dri/radeonsi_dri.so: undefined symbol: setupterm
gbm: failed to open any driver (search paths /usr/lib64/dri)failed to load driver: radeonsi
failed to load module: /usr/lib64/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
couldn't get display device

Program received signal SIGSEGV, Segmentation fault.
0x000000000020e116 in ?? ()

OS: Gentoo
User space packages:
media-libs/mesa git
sys-devel/llvm git
x11-libs/libdrm git
x11-libs/glamor git
x11-drivers/xf86-video-ati git
x11-base/xorg-server 1.14.3

Linux Kernel: 3.13.0-rc2

Mesa source config:
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-silent-rules --disable-dependency-tracking --enable-dri --enable-glx --enable-shared-glapi --enable-texture-float --disable-debug --enable-egl --enable-gbm --disable-gles1 --disable-gles2 --enable-glx-tls --disable-osmesa --enable-asm --without-llvm-shared-libs --with-dri-drivers=,swrast,radeon,r200 --with-gallium-drivers=,swrast,radeonsi,r300,r600 PYTHON2=/usr/bin/python2.7 --with-egl-platforms=x11,drm --enable-gallium-llvm --disable-openvg --disable-gallium-egl --enable-r600-llvm-compiler --enable-vdpau --disable-xa --disable-xvmc
Comment 1 Tom 2013-12-04 11:37:06 UTC
Created attachment 90221 [details]
dmesg log
Comment 2 Tom Stellard 2013-12-04 15:36:40 UTC
Are you using gentoo's -9999 ebuild for LLVM or are you building it yourself?

Can you post the output of llvm-config --ldflags and also equery u ncurses
Comment 3 Tom 2013-12-04 16:22:38 UTC
Yes It's gentoo's -9999 ebuild. The rest of packages (mesa-9999, libdrm-9999, glamor-9999, xf86 driver-9999) is from x11 overlay.
I reinstalled gentoo system with systemd and kde environment yesterday. It's a new gentoo system. I've never had such problem before (gnome 2 + openrc).

$ llvm-config --ldflags
-L/usr/lib/llvm  -lpthread -lffi -ldl -lm

ncurses flags enabled: cxx gpm unicode 
disabled: -ada -debug -doc -minimal -profile -static-libs -tinfo -trace

Update.
Thanks for a tip about ncurses. Gentoo KDE profile has set globally ncurses flag what carried it also to llvm.
Ncurses support built in llvm leads to this error.

I've disabled ncurses flag in llvm, rebuilt llvm and mesa and KDE desktop is working without any problem.
Comment 4 Oded Gabbay 2016-05-24 14:08:52 UTC
It was a bug in llvm with KDE and ncurses.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.