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

Charles Davis cdavis at mymail.mines.edu
Mon Oct 19 07:35:12 PDT 2009


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.

Should I file a bug, or is this a known issue (like bug 2742)?

Thanks.

Chip




More information about the cfe-dev mailing list