[cfe-dev] Building Wine with clang on Mac OS X 10.6

Török Edwin edwintorok at gmail.com
Mon Oct 19 07:38:43 PDT 2009


On 2009-10-19 17:35, Charles Davis wrote:
> Hi,
>
> I tried to build the latest Wine sources (the ones from git) with clang
> on Mac OS X 10.6.1, and I'm encountering issues with inline functions.
>
> Specifically, I get this message:
>
> clang -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__
> -D_REENTRANT -fPIC -Wall -pipe -Wpointer-arith  -g -O2  -o interlocked.o
> interlocked.c
> /var/folders/Vv/Vvv1iGUYFBiWfsCkpG71-U+++TI/-Tmp-/cc-XxETkM.s:71:FATAL:Symbol
> _interlocked_cmpxchg already defined.
> clang: error: assembler command failed with exit code 1 (use -v to see
> invocation)
>
> Looking at the wine sources, I found out that interlocked_cmpxchg() is
> defined "extern inline" in include/wine/port.h, and is redefined in
> libs/port/interlocked.c. I suspect this is LLVM bug 2742, except that it
> compiles fine with llvm-gcc.
>   

Does it compile with -std=gnu89? (clang defaults to gnu99 I think).

Best regards,
--Edwin



More information about the cfe-dev mailing list