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

Sedat Dilek sedat.dilek at googlemail.com
Sat Apr 9 04:28:33 PDT 2011


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 -
>


More information about the mesa-dev mailing list