<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - 'real_dispatch_async_and_wait_f' in namespace '__tsan::__interception'; did you mean 'dispatch_async_and_wait_f'?"
   href="https://bugs.llvm.org/show_bug.cgi?id=47291">47291</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>'real_dispatch_async_and_wait_f' in namespace '__tsan::__interception'; did you mean 'dispatch_async_and_wait_f'?
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>tsan
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>soloturn@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>when compiling compiler-rt with clang on arch linux 

[571/768][ 74%][65.731s] Building CXX object
lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors_libdispatch.cpp.o
FAILED:
lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors_libdispatch.cpp.o 
/github/workspace/swift-language-git/src/build/buildbot_linux/llvm-linux-x86_64/./bin/clang++

-I/github/workspace/swift-language-git/src/llvm-project/compiler-rt/lib/tsan/..
-D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall
-std=c++14 -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 -fno-lto -O3 -gline-tables-only
-Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fPIE
-fno-rtti -msse3 -Wframe-larger-than=530 -Wglobal-constructors -fblocks
--sysroot=. -MD -MT
lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors_libdispatch.cpp.o
-MF
lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors_libdispatch.cpp.o.d
-o
lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors_libdispatch.cpp.o
-c
/github/workspace/swift-language-git/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp
/github/workspace/swift-language-git/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp:239:1:
error: no member named 'real_dispatch_async_and_wait_f' in namespace
'__tsan::__interception'; did you mean 'dispatch_async_and_wait_f'?
DISPATCH_INTERCEPT_SYNC_B(dispatch_async_and_wait, false)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/github/workspace/swift-language-git/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp:182:5:
note: expanded from macro 'DISPATCH_INTERCEPT_SYNC_B'
    REAL(name##_f)(q, &new_context, dispatch_callback_wrap);                 \
    ^~~~~~~~~~~~~~
/github/workspace/swift-language-git/src/llvm-project/compiler-rt/lib/tsan/../interception/interception.h:171:18:
note: expanded from macro 'REAL'
# define REAL(x) __interception::PTR_TO_REAL(x)
                 ^~~~~~~~~~~~~~~~
/github/workspace/swift-language-git/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp:236:28:
note: 'dispatch_async_and_wait_f' declared here
SANITIZER_WEAK_IMPORT void dispatch_async_and_wait_f(
                           ^
1 error generated.
[572/768][ 74%][65.986s] Building CXX object
lib/tsan/CMakeFiles/clang_rt.tsan_cxx-x86_64.dir/rtl/tsan_new_delete.cpp.o
[573/768][ 74%][70.809s] Building CXX object
lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors_posix.cpp.o
ninja: build stopped: subcommand failed.
[4163/4166][ 99%][10245.762s] Copying llvm-locstats into
/github/workspace/swift-language-git/src/build/buildbot_linux/llvm-linux-x86_64/./bin
FAILED: tools/clang/runtime/compiler-rt-stamps/compiler-rt-build 
cd
/github/workspace/swift-language-git/src/build/buildbot_linux/llvm-linux-x86_64/tools/clang/runtime/compiler-rt-bins
&& /usr/bin/cmake --build . && /usr/bin/cmake -E touch
/github/workspace/swift-language-git/src/build/buildbot_linux/llvm-linux-x86_64/tools/clang/runtime/compiler-rt-stamps//compiler-rt-build
ninja: build stopped: subcommand failed.
ERROR: command terminated with a non-zero exit status 1, aborting
Building the standard library for: swift-stdlib-linux-x86_64

Running Swift tests for: check-swift-all-linux-x86_64
check-swift-all-optimize-linux-x86_64
ERROR: command terminated with a non-zero exit status 1, aborting

==> ERROR: A failure occurred in build().
    Aborting...</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>