[clang] Fix MSVC build after #206326 (again) (PR #207335)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 3 12:28:01 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu-no-asserts` running on `doug-worker-6` while building `clang` at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/202/builds/2

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
2.633 [366/18/450] Linking CXX static library /home/buildbot/buildbot-root/gcc-no-asserts/build/lib/clang/23/lib/x86_64-unknown-linux-gnu/libclang_rt.hwasan-preinit.a
2.637 [365/18/451] Generating exported symbols for clang_rt.hwasan_cxx-x86_64
2.640 [364/18/452] Copying hwasan_ignorelist.txt...
2.642 [363/18/453] Building CXX object compiler-rt/lib/hwasan/CMakeFiles/RTHwasanAliases_dynamic.x86_64.dir/hwasan_thread.cpp.o
2.643 [362/18/454] Copying hwasan_symbolize...
2.649 [361/18/455] Generating exported symbols for clang_rt.hwasan_aliases_cxx-x86_64
2.695 [360/18/456] Building CXX object compiler-rt/lib/hwasan/CMakeFiles/RTHwasanAliases_dynamic.x86_64.dir/hwasan_linux.cpp.o
2.703 [359/18/457] Building CXX object compiler-rt/lib/hwasan/CMakeFiles/RTHwasanAliases_dynamic.x86_64.dir/hwasan.cpp.o
2.738 [358/18/458] Building CXX object compiler-rt/lib/hwasan/CMakeFiles/RTHwasanAliases.x86_64.dir/hwasan_report.cpp.o
2.760 [357/18/459] Building CXX object compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_interceptors.cpp.o
FAILED: compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_interceptors.cpp.o 
/home/buildbot/buildbot-root/gcc-no-asserts/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/compiler-rt/lib/tsan/dd/../.. -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -Wall -Wno-unused-parameter -O3 -DNDEBUG -m64 -fno-lto -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -nostdinc++ -fno-rtti -std=c++17 -MD -MT compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_interceptors.cpp.o -MF compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_interceptors.cpp.o.d -o compiler-rt/lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_interceptors.cpp.o -c /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/compiler-rt/lib/tsan/dd/dd_interceptors.cpp
<inline asm>:11:5: error: 32 bit reloc applied to a field with a different size
   11 | jmp __interceptor_pthread_mutex_destroy at plt
      |     ^
<inline asm>:21:5: error: 32 bit reloc applied to a field with a different size
   21 | jmp __interceptor_pthread_mutex_lock at plt
      |     ^
<inline asm>:31:5: error: 32 bit reloc applied to a field with a different size
   31 | jmp __interceptor_pthread_mutex_trylock at plt
      |     ^
<inline asm>:41:5: error: 32 bit reloc applied to a field with a different size
   41 | jmp __interceptor_pthread_mutex_unlock at plt
      |     ^
<inline asm>:51:5: error: 32 bit reloc applied to a field with a different size
   51 | jmp __interceptor_pthread_spin_destroy at plt
      |     ^
<inline asm>:61:5: error: 32 bit reloc applied to a field with a different size
   61 | jmp __interceptor_pthread_spin_lock at plt
      |     ^
<inline asm>:71:5: error: 32 bit reloc applied to a field with a different size
   71 | jmp __interceptor_pthread_spin_trylock at plt
      |     ^
<inline asm>:81:5: error: 32 bit reloc applied to a field with a different size
   81 | jmp __interceptor_pthread_spin_unlock at plt
      |     ^
<inline asm>:91:5: error: 32 bit reloc applied to a field with a different size
   91 | jmp __interceptor_pthread_rwlock_destroy at plt
      |     ^
<inline asm>:101:5: error: 32 bit reloc applied to a field with a different size
  101 | jmp __interceptor_pthread_rwlock_rdlock at plt
      |     ^
<inline asm>:111:5: error: 32 bit reloc applied to a field with a different size
  111 | jmp __interceptor_pthread_rwlock_tryrdlock at plt
      |     ^
<inline asm>:121:5: error: 32 bit reloc applied to a field with a different size
  121 | jmp __interceptor_pthread_rwlock_timedrdlock at plt
      |     ^
<inline asm>:131:5: error: 32 bit reloc applied to a field with a different size

```

</details>

https://github.com/llvm/llvm-project/pull/207335


More information about the cfe-commits mailing list