[Mesa-dev] mesa-from-git: build with clang(++) and --enable-glx-tls

Jeremy Huddleston jeremyhu at freedesktop.org
Fri May 6 18:13:14 PDT 2011


See:
http://cgit.freedesktop.org/xorg/xserver/commit/?id=bb4d145bd25e2aee988b100ecf1105ea3b6a40b8

I suggest you do something similar for mesa.

On Apr 9, 2011, at 04:28, Sedat Dilek wrote:

> Just as an addendum to configure-option "--enable-glx-tls" (see [1] and [2]).
> 
> - Sedat -
> 
> [1] http://git.debian.org/?p=pkg-xorg/lib/mesa.git;a=blob;f=debian/rules;hb=refs/tags/mesa-7.10.1-1#l107
> [2] http://git.debian.org/?p=pkg-xorg/xserver/xorg-server.git;a=blob;f=debian/rules;hb=refs/tags/xorg-server-2_1.10.0.901-1#l124
> 
> On Sat, Apr 9, 2011 at 12:52 PM, Sedat Dilek <sedat.dilek at googlemail.com> wrote:
>> Hi,
>> 
>> I am currently playing with clang-3.0svn (and llvm) and mesa-from-git
>> builds just fine.
>> ( I tried also -O3 as {C,CXX}FLAGS and so on. )
>> 
>> Unfortunately, when turning on "--enable-glx-tls", I see warnings like this:
>> ...
>> In file included from glapi_dispatch.c:40:
>> In file included from ../../../src/mapi/glapi/glapi_priv.h:52:
>> ../../../src/mapi/glapi/glapi.h:84:20: warning: unknown attribute
>> 'tls_model' ignored [-Wunknown-attributes]
>>    __attribute__((tls_model("initial-exec")));
>>                   ^
>> ../../../src/mapi/glapi/glapi.h:87:20: warning: unknown attribute
>> 'tls_model' ignored [-Wunknown-attributes]
>>    __attribute__((tls_model("initial-exec")));
>>                   ^
>> 2 warnings generated.
>> ...
>> 
>> Just FYI:
>> Debian builds its xserver with "--enable-glx-tls", too (and IIRC this
>> is a pre-condition for mesa).
>> 
>> If this info matters: I am here on Debian's xorg-server-1.10.0.901 (1.10.1 RC1).
>> ( BTW, -O2 or -O3 does not matter. )
>> 
>> I have attached my full build.log.
>> 
>> Regards,
>> - Sedat -
>> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list