New issue
Advanced search Search tips

Issue 835217 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Blocking:
issue 834010



Sign in to add a comment

Clang ToT Win bots failing with "atomic_compare_exchange_strong already has a body"

Project Member Reported by h...@chromium.org, Apr 20 2018

Issue description

Started here: https://ci.chromium.org/buildbot/chromium.clang/ToTWin/1379


FAILED: projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.x86_64.dir/sanitizer_common.cc.obj 
C:\b\c\win_toolchain\vs_files\1180cb75833ea365097e279efb2d5d7a42dee4b0\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\cl.exe   /nologo /TP -DHAVE_RPC_XDR_H=0 -DHAVE_TIRPC_RPC_XDR_H=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects\compiler-rt\lib\sanitizer_common -IC:\b\c\b\ToTWin\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common -Iinclude -IC:\b\c\b\ToTWin\src\third_party\llvm\include -IC:\b\c\b\ToTWin\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common\.. -DLLVM_FORCE_HEAD_REVISION /Z7 /GS- /Zc:inline /Zc:strictStrings /Oi /Zc:rvalueCast -wd4141 -wd4146 -wd4180 -wd4244 -wd4258 -wd4267 -wd4291 -wd4345 -wd4351 -wd4355 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4800 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4324 -w14062 -we4238 /W4 /MT /O2 /Ob2   -UNDEBUG  -DLLVM_FORCE_HEAD_REVISION /Z7 /GS- /Zc:inline /Zc:strictStrings /Oi /Zc:rvalueCast -wd4141 -wd4146 -wd4180 -wd4244 -wd4258 -wd4267 -wd4291 -wd4345 -wd4351 -wd4355 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4800 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4324 -w14062 -we4238 /W4 /Oy- /GS- /Zc:threadSafeInit- /Z7 /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 /GR- /showIncludes /Foprojects\compiler-rt\lib\sanitizer_common\CMakeFiles\RTSanitizerCommon.x86_64.dir\sanitizer_common.cc.obj /Fdprojects\compiler-rt\lib\sanitizer_common\CMakeFiles\RTSanitizerCommon.x86_64.dir\ /FS -c C:\b\c\b\ToTWin\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_common.cc
c:\b\c\b\totwin\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_atomic_msvc.h(246): error C2084: function 'bool __sanitizer::atomic_compare_exchange_strong(volatile __sanitizer::atomic_uintptr_t *,__sanitizer::uptr *,__sanitizer::uptr,__sanitizer::memory_order)' already has a body
c:\b\c\b\totwin\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_atomic_msvc.h(204): note: see previous definition of 'atomic_compare_exchange_strong'
[2015/3857] Building CXX object projects\compiler-rt\lib\sanitizer_common\CMakeFiles\RTSanitizerCommon.x86_64.dir\sanitizer_allocator.cc.obj
FAILED: projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.x86_64.dir/sanitizer_allocator.cc.obj 
C:\b\c\win_toolchain\vs_files\1180cb75833ea365097e279efb2d5d7a42dee4b0\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\cl.exe   /nologo /TP -DHAVE_RPC_XDR_H=0 -DHAVE_TIRPC_RPC_XDR_H=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects\compiler-rt\lib\sanitizer_common -IC:\b\c\b\ToTWin\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common -Iinclude -IC:\b\c\b\ToTWin\src\third_party\llvm\include -IC:\b\c\b\ToTWin\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common\.. -DLLVM_FORCE_HEAD_REVISION /Z7 /GS- /Zc:inline /Zc:strictStrings /Oi /Zc:rvalueCast -wd4141 -wd4146 -wd4180 -wd4244 -wd4258 -wd4267 -wd4291 -wd4345 -wd4351 -wd4355 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4800 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4324 -w14062 -we4238 /W4 /MT /O2 /Ob2   -UNDEBUG  -DLLVM_FORCE_HEAD_REVISION /Z7 /GS- /Zc:inline /Zc:strictStrings /Oi /Zc:rvalueCast -wd4141 -wd4146 -wd4180 -wd4244 -wd4258 -wd4267 -wd4291 -wd4345 -wd4351 -wd4355 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4800 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4324 -w14062 -we4238 /W4 /Oy- /GS- /Zc:threadSafeInit- /Z7 /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 /GR- /showIncludes /Foprojects\compiler-rt\lib\sanitizer_common\CMakeFiles\RTSanitizerCommon.x86_64.dir\sanitizer_allocator.cc.obj /Fdprojects\compiler-rt\lib\sanitizer_common\CMakeFiles\RTSanitizerCommon.x86_64.dir\ /FS -c C:\b\c\b\ToTWin\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_allocator.cc
c:\b\c\b\totwin\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_atomic_msvc.h(246): error C2084: function 'bool __sanitizer::atomic_compare_exchange_strong(volatile __sanitizer::atomic_uintptr_t *,__sanitizer::uptr *,__sanitizer::uptr,__sanitizer::memory_order)' already has a body
c:\b\c\b\totwin\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_atomic_msvc.h(204): note: see previous definition of 'atomic_compare_exchange_strong'
C:\b\c\b\ToTWin\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_allocator.cc(260): warning C4646: function declared with 'noreturn' has non-void return type
C:\b\c\b\ToTWin\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_allocator.cc(264): warning C4646: function declared with 'noreturn' has non-void return type

 

Comment 1 by h...@chromium.org, Apr 20 2018

Owner: h...@chromium.org
Status: Started (was: Available)
It's this one:

------------------------------------------------------------------------
r330376 | kuba.brecka | 2018-04-20 01:00:43 +0200 (Fri, 20 Apr 2018) | 5 lines

[sanitizer] Generalize atomic_uint8_t, atomic_uint16_t, ... into a template. NFC.

Differential Revision: https://reviews.llvm.org/D44246


------------------------------------------------------------------------

Comment 2 by h...@chromium.org, Apr 20 2018

It also broke the upstream bot: http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/10130

Comment 3 by h...@chromium.org, Apr 20 2018

Status: Fixed (was: Started)
Reverted in r330395.

Sign in to add a comment