[waffle] Building Waffle with XCode?

Jeff Bland jksb at linux.com
Wed Jul 3 11:06:17 PDT 2013


Surprised it loaded in Xcode 3.1 since the project format is 3.2-compatable.

Apparently the GCC 4.2 that shipped with Xcode doesn't support thread local
storage on x86_64. You could try deleting the __thread bit on that line as
a temporary workaround, but it should work in a recent Xcode w/ clang. When
you tried the current Xcode, did you use clang, and did you get a similar
error?

I noticed an unrelated link error as well, the Xcode project is missing
src/waffle/core/wcore_attrib_list.c, I'll send in a patch for that.

On Wed, Jul 3, 2013 at 11:27 AM, Nigel Stewart <nigels.com at gmail.com> wrote:

> 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
> _______________________________________________
> waffle mailing list
> waffle at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/waffle
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/waffle/attachments/20130703/3f75bfec/attachment.html>


More information about the waffle mailing list