Status: Accepted
Owner: ----
New issue 35492 by
car...@google.com: Compile package dev-libs/glib failure
with clang syntax checking
http://code.google.com/p/chromium-os/issues/detail?id=35492
When build package dev-libs/glib with clang syntax checking
USE="chrome_internal" CFLAGS="-clang -print-cmdline" CXXFLAGS="-clang
-print-cmdline" emerge-x86-alex dev-libs/glib
I got a configuration failure or gatomic.c:618:2: error: G_ATOMIC_LOCK_FREE
defined, but incapable of lock-free
atomics.
#error G_ATOMIC_LOCK_FREE defined, but incapable of lock-free atomics.
^
It is because the configuration and gatomic.[hc] depends on gcc specific
__GCC_HAVE_SYNC_COMPARE_AND_SWAP and related implementations.
It can only be fixed with another set of portable lock-free atomic
implementations, or we avoid compiling it with clang.