I am trying to build mesa from git. It was working fine for a week. Yesterday this error keeps poping up when I try to compile some tests.
I re-installed mesa. It didn't work.
I re-installed Ubuntu 14.04. It didn't work.
Nothing is getting compiled, the binaries glxinfo, glxgears are also throwing the same error.
I re-installed Ubuntu 14.04.1 and did not check "install updates" during installation.
Install and Upgrade all the packages.
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev
clone the mesa repo.
sudo apt-get install bison flex python-mako x11proto-dri3-dev x11proto-present-dev libudev-dev libexpat1-dev expat llvm
It came back!
Try reconfiguring with --enable-glx-tls and rebuilding.
As Brian pointed out try building with --enable-tls.
If that does not work, explain step by step what you're doing.
Getting the output when LIBGL_DEBUG=verbose and LD_DEBUG=libs are set would be nice. You can try with glxgears or any other program of your choice.
> build it.
If the issue happens when you ask Mesa to build with the _glapi_tls_Dispatch (using --enable-glx-tls), attach also your config.log in addition to already requested LIBGL_DEBUG & LD_DEBUG output.
PS. There's somewhat similar older bug 73778. Bug 72902 is also marginally related.
This issue seems obsoleted due to the 1.5 years of time elapsed since the last comment. Can I mark it as RESOLVED--WONTFIX ?
I would rather use resolved/invalid cause this sounds just like a missing configuration option to me.
Anyway let's close this one.