[llvm-commits] [compiler-rt] r153735 - /compiler-rt/trunk/lib/atomic.c

Alexander Potapenko glider at google.com
Fri Mar 30 01:53:35 PDT 2012


We're seeing several compilation failures on the ASan bot while building LLVM:

/usr/local/google/home/asanbot/b2/slave/linux/build/llvm/projects/compiler-rt/lib/atomic.c:149:3:
error: use of undeclared identifier '__uint128_t'
  LOCK_FREE_CASES();
  ^
  COMPILE:   clang_linux/full-i386/i386:
/usr/local/google/home/asanbot/b2/slave/linux/build/llvm/projects/compiler-rt/lib/comparedf2.c
/usr/local/google/home/asanbot/b2/slave/linux/build/llvm/projects/compiler-rt/lib/atomic.c:137:26:
note: expanded from macro 'LOCK_FREE_CASES'
        LOCK_FREE_ACTION(__uint128_t);\
...
/usr/local/google/home/asanbot/b2/slave/linux/build/llvm/projects/compiler-rt/lib/atomic.c:153:3:
error: implicitly declaring library function 'memcpy' with type 'void
*(void *, const void *, unsigned int)' [-Werror]
  memcpy(dest, src, size);
  ^
/usr/local/google/home/asanbot/b2/slave/linux/build/llvm/projects/compiler-rt/lib/atomic.c:153:3:
note: please include the header <string.h> or explicitly provide a
declaration for 'memcpy'
...
/usr/local/google/home/asanbot/b2/slave/linux/build/llvm/projects/compiler-rt/lib/atomic.c:185:7:
error: implicitly declaring library function 'memcmp' with type 'int
(const void *, const void *, unsigned int)' [-Werror]
  if (memcmp(ptr, expected, size) == 0) {
      ^
/usr/local/google/home/asanbot/b2/slave/linux/build/llvm/projects/compiler-rt/lib/atomic.c:185:7:
note: please include the header <string.h> or explicitly provide a
declaration for 'memcmp'
...
/usr/local/google/home/asanbot/b2/slave/linux/build/llvm/projects/compiler-rt/lib/atomic.c:247:1:
error: unknown type name '__uint128_t'
OPTIMISED_CASES
^
/usr/local/google/home/asanbot/b2/slave/linux/build/llvm/projects/compiler-rt/lib/atomic.c:220:39:
note: expanded from macro 'OPTIMISED_CASES'
  OPTIMISED_CASE(16, IS_LOCK_FREE_16, __uint128_t)\
                                      ^
/usr/local/google/home/asanbot/b2/slave/linux/build/llvm/projects/compiler-rt/lib/atomic.c:236:26:
note: expanded from macro 'OPTIMISED_CASE'
void  __atomic_store_##n(type *dest, type val, int model) {\
                         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]



More information about the llvm-commits mailing list