[waffle] Building Waffle with XCode?

Nigel Stewart nigels.com at gmail.com
Wed Jul 3 10:27:16 PDT 2013


Hi all,

I came across something a bit mysterious on the Mac just now.
Using cmake and gcc from MacPorts, Waffle builds just fine.
However, building with XCode gcc...

src/waffle/src/core/wcore_tinfo.c
src/waffle/src/core/wcore_tinfo.c:56: error: thread-local storage not
supported for this target
src/waffle/src/core/wcore_tinfo.c:56: warning: ‘tls_model’ attribute ignored

The complete command-line is:

ccache  /XCode3.1.4/usr/bin/gcc-4.2 --std=c99 -no-cpp-precomp -dynamic
-Wall -fvisibility=hidden -arch x86_64 -mmacosx-version-min=10.5
-isysroot /XCode3.1.4/SDKs/MacOSX10.5.sdk    -I. -Isrc/waffle/include
-Isrc/waffle/src/core -Isrc/waffle/src/api -Isrc/waffle/src/glx
-Isrc/waffle/src/x11 -Isrc/waffle/src/linux -Isrc/waffle/src/egl  -g3
-DDEBUG          -DWAFFLE_HAS_CGL -DWAFFLE_HAS_TLS_MODEL_INITIAL_EXEC
-DFIXED_BYTE_ORDER      -DFIXED_BYTE_ORDER   -o
../nstewart-lion/sw/../../regal/built/wafflelib_Darwin_leopard_x86_64_debug/wcore_tinfo.o
-c src/waffle/src/core/wcore_tinfo.c
src/waffle/src/core/wcore_tinfo.c:56: error: thread-local storage not
supported for this target
src/waffle/src/core/wcore_tinfo.c:56: warning: ‘tls_model’ attribute ignored

Using the current XCode doesn't seem to help either.
Anyone else come across this?

- Nigel


More information about the waffle mailing list