Help compiling mesa/gallium from git!
Bill Spitzak
spitzak at gmail.com
Fri Feb 7 09:30:21 PST 2014
In order to try to compile the new xserver for wayland, I updated mesa
to the latest git version, and now wayland does not work at all!
Considering it has worked for a long time I would like to try to fix
this, it is really unfortunate.
It does appear the problem is in egl gallium and it's software fallback.
Pekka you were just talking about this in another thread so I thought
you may have an idea what is wrong, or perhaps what I should do to get
around it.
Running weston in the debugger with the debug symbols turned on produces
this (this is from inside a terminal on X so I am using the X11 compositor):
Starting program: /home/spitzak/install/bin/weston --modules=xwayland.so
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Date: 2014-02-07 PST
[09:14:13.518] weston 1.4.0
http://wayland.freedesktop.org/
Bug reports to:
https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.4.0
Build: 1.4.0-59-gc94d622 compositor: Move view
repositioning logic into shell (2014-02-05 17:36:00 -0800)
[09:14:13.518] OS: Linux, 3.2.0-58-generic, #88-Ubuntu SMP Tue Dec 3
17:37:58 UTC 2013, x86_64
[09:14:13.518] warning: XDG_RUNTIME_DIR "/run/shm" is not configured
correctly. Unix access mode must be 0700 (current mode is 777),
and must be owned by the user (current owner is UID 0).
Refer to your distribution on how to get it, or
http://www.freedesktop.org/wiki/Specifications/basedir-spec
on how to implement it.
[09:14:13.519] Using config file '/home/spitzak/.config/weston.ini'
[09:14:13.519] Loading module
'/home/spitzak/install/lib/weston/x11-backend.so'
[09:14:13.619] initializing x11 backend
[09:14:13.621] Loading module
'/home/spitzak/install/lib/weston/gl-renderer.so'
libEGL debug: Native platform type: x11 (autodetected)
libEGL debug: EGL search path is /home/spitzak/install/lib/egl
libEGL debug: added /home/spitzak/install/lib/egl/egl_gallium.so to
module array
libEGL debug: added egl_dri2 to module array
libEGL debug: dlopen(/home/spitzak/install/lib/egl/egl_gallium.so)
libEGL info: use X11 for display 0x632e40
libEGL info: use software fallback
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff1b980af in egl_g3d_new_sw_screen (ndpy=<optimized out>,
ws=0x654040)
at common/egl_g3d.c:67
warning: Source file is more recent than executable.
67 }
This does appear to be in egl_gallium.so, which is recently compiled, I
am not sure why I get the "Source file is more recent" error.
Mesa is built with the following config line, which is ridiculous
complex and probably the source of my troubles, but I really have no
idea what any of this means:
./autogen.sh --prefix=$WLD --enable-gles2 --disable-gallium-egl \
--with-egl-platforms=wayland,x11,drm --enable-gbm \
--enable-shared-glapi
--with-gallium-drivers=r300,r600,swrast,nouveau \
--with-dri-drivers= --disable-dri3
Thanks for any help!
More information about the wayland-devel
mailing list