Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange error after changing from fglrx to radeon
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
deltamalloc
Apprentice
Apprentice


Joined: 18 Jan 2013
Posts: 279

PostPosted: Sun Jun 15, 2014 3:31 am    Post subject: Strange error after changing from fglrx to radeon Reply with quote

What is the cause of this?

Code:

$ glxgears
libGL error: dlopen /usr/lib32/dri/swrast_dri.so failed (/usr/lib32/dri/swrast_dri.so: wrong ELF class: ELFCLASS32)


Code:

$ neverball
libGL error: dlopen /usr/lib32/dri/swrast_dri.so failed (/usr/lib32/dri/swrast_dri.so: wrong ELF class: ELFCLASS32)


Glxgears starts and looks ok, but the performance is slow. Neverball starts, but doesn't work, it flickers badly and runs extremely slow.

Code:

$ file /usr/lib32/dri/swrast_dri.so
/usr/lib32/dri/swrast_dri.so: symbolic link to `../mesa/swrastg_dri.so'
$ file /usr/lib32/mesa/swrastg_dri.so
/usr/lib32/mesa/swrastg_dri.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped


I tried to emerge mesa again after checking which package this file belongs to:

Code:

$ equery belongs swrastg_dri.so
 * Searching for swrastg_dri.so ...
media-libs/mesa-10.2.1 (/usr/lib64/mesa/swrastg_dri.so)
media-libs/mesa-10.2.1 (/usr/lib32/dri/swrastg_dri.so -> ../mesa/swrastg_dri.so)
media-libs/mesa-10.2.1 (/usr/lib32/mesa/swrastg_dri.so)
media-libs/mesa-10.2.1 (/usr/lib64/dri/swrastg_dri.so -> ../mesa/swrastg_dri.so)


But I still get the same problem.

In my Xorg.log I have:

Code:

 (EE) RADEON(0): glamor detected, failed to initialize EGL.
 (EE) AIGLX: reverting to software rendering
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13845

PostPosted: Sun Jun 15, 2014 3:45 pm    Post subject: Reply with quote

You are running a 64-bit program and it cannot load a 32-bit library. You need to find why the 64-bit programs are even looking at 32-bit libraries, because they should not. What is the output of /usr/bin/env? What are the versions of the other packages involved?
Back to top
View user's profile Send private message
deltamalloc
Apprentice
Apprentice


Joined: 18 Jan 2013
Posts: 279

PostPosted: Sun Jun 15, 2014 6:43 pm    Post subject: Reply with quote

Hu wrote:
You are running a 64-bit program and it cannot load a 32-bit library. You need to find why the 64-bit programs are even looking at 32-bit libraries, because they should not. What is the output of /usr/bin/env? What are the versions of the other packages involved?


Output of /usr/bin/env

Code:

MANPATH=/home/dmalloc/.gentoo/java-config-2/current-user-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.24/man:/etc/java-config-2/current-system-vm/man/
SSH_AGENT_PID=3955
GPG_AGENT_INFO=/tmp/gpg-OkTqSX/S.gpg-agent:3955:1
GLADE_PIXMAP_PATH=:
SHELL=/bin/bash
TERM=xterm
XDG_MENU_PREFIX=xfce-
XDG_SESSION_COOKIE=762c8bc9320568423cc048955204235a-1402817018.560455-1492054254
PERL5LIB=/home/dmalloc/perl5/lib/perl5:
VBOX_APP_HOME=/usr/lib64/virtualbox
WINDOWID=65011725
PERL_MB_OPT=--install_base /home/dmalloc/perl5
ANT_HOME=/usr/share/ant
XTERM_SHELL=/bin/bash
USER=dmalloc
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
PRELINK_PATH_MASK=/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so
LIBGL_DRIVERS_PATH=/usr/lib32/dri:/usr/lib64/dri
GUILE_LOAD_PATH=/usr/share/guile/1.8
GLADE_MODULE_PATH=:
SSH_AUTH_SOCK=/tmp/gpg-4Z7glY/S.gpg-agent.ssh
SESSION_MANAGER=local/i7_920:@/tmp/.ICE-unix/3946,unix/i7_920:/tmp/.ICE-unix/3946
CONFIG_PROTECT_MASK=/etc/gentoo-release /etc/sandbox.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild
PAGER=/usr/bin/less
XDG_CONFIG_DIRS=/etc/xdg:/etc/xdg
PATH=/home/dmalloc/perl5/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2:/usr/games/bin
MAIL=/var/mail/dmalloc
DESKTOP_SESSION=xfce
PWD=/home/dmalloc
JAVA_HOME=/home/dmalloc/.gentoo/java-config-2/current-user-vm
EDITOR=/bin/nano
JAVAC=/home/dmalloc/.gentoo/java-config-2/current-user-vm/bin/javac
LANG=en_US
GSETTINGS_BACKEND=gconf
QT_GRAPHICSSYSTEM=raster
XTERM_LOCALE=en_US
XTERM_VERSION=XTerm(304)
SHLVL=2
HOME=/home/dmalloc
JDK_HOME=/home/dmalloc/.gentoo/java-config-2/current-user-vm
PERL_LOCAL_LIB_ROOT=:/home/dmalloc/perl5
LOGNAME=dmalloc
LESS=-R -M --shift 5
GCC_SPECS=
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-KN5iofj4ui,guid=4df6b8e3f9c6790868a17381539d49fa
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share
GOPATH=/home/dmalloc/programs/go
LESSOPEN=|lesspipe %s
INFOPATH=/usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.24/info
DISPLAY=:0.0
LADSPA_PATH=/usr/lib64/ladspa
OPENGL_PROFILE=xorg-x11
GLADE_CATALOG_PATH=:
PERL_MM_OPT=INSTALL_BASE=/home/dmalloc/perl5
CONFIG_PROTECT=/usr/share/gnupg/qualified.txt
XAUTHORITY=/home/dmalloc/.Xauthority
OPENCL_PROFILE=amd
_=/usr/bin/env


I'm not sure what packages you are referring to, but since this file belongs to mesa I'm using mesa 10.2.1.
Back to top
View user's profile Send private message
deltamalloc
Apprentice
Apprentice


Joined: 18 Jan 2013
Posts: 279

PostPosted: Tue Jun 17, 2014 1:45 am    Post subject: Reply with quote

Hu wrote:
You are running a 64-bit program and it cannot load a 32-bit library. You need to find why the 64-bit programs are even looking at 32-bit libraries, because they should not. What is the output of /usr/bin/env? What are the versions of the other packages involved?


What about my Xorg.log error? That appears to be an issue that presents itself even before I start any opengl program. Is that not related? Shouldn't problems related to starting X be dealt with before trying to use programs that (possibly) depend on X having been initialized correctly?
Back to top
View user's profile Send private message
deltamalloc
Apprentice
Apprentice


Joined: 18 Jan 2013
Posts: 279

PostPosted: Tue Jun 17, 2014 2:46 am    Post subject: Reply with quote

After receiving help, the way to fix the Xorg log issues is to include radeonsi as well as radeon in VIDEO_CARDS ... I overlooked that.

This actually fixes almost everything. I still have the same error as before though:

Code:

$ glxgears
libGL error: dlopen /usr/lib32/dri/swrast_dri.so failed (/usr/lib32/dri/swrast_dri.so: wrong ELF class: ELFCLASS32)


But now it appears that hardware acceleration works as normal. I don't understand why I still have this error.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum