Help compiling mesa/gallium from git!

Bill Spitzak spitzak at
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
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/".
Date: 2014-02-07 PST
[09:14:13.518] weston 1.4.0
                Bug reports to:
                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
on how to implement it.
[09:14:13.519] Using config file '/home/spitzak/.config/weston.ini'
[09:14:13.519] Loading module 
[09:14:13.619] initializing x11 backend
[09:14:13.621] Loading module 
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/ to 
module array
libEGL debug: added egl_dri2 to module array
libEGL debug: dlopen(/home/spitzak/install/lib/egl/
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>, 
     at common/egl_g3d.c:67
warning: Source file is more recent than executable.
67	}

This does appear to be in, 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:

  ./ --prefix=$WLD --enable-gles2 --disable-gallium-egl \
       --with-egl-platforms=wayland,x11,drm --enable-gbm \
--with-gallium-drivers=r300,r600,swrast,nouveau \
       --with-dri-drivers= --disable-dri3

Thanks for any help!

More information about the wayland-devel mailing list