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

Sedat Dilek sedat.dilek at googlemail.com
Sat Apr 9 03:52:15 PDT 2011


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 -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mesa-with-clang.log.xz
Type: application/octet-stream
Size: 13244 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110409/8d974177/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mesa-with-clang.log.xz.sha256sum
Type: application/octet-stream
Size: 88 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110409/8d974177/attachment-0003.obj>


More information about the mesa-dev mailing list