[llvm-bugs] [Bug 47291] New: 'real_dispatch_async_and_wait_f' in namespace '__tsan::__interception'; did you mean 'dispatch_async_and_wait_f'?

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Aug 23 09:20:49 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47291

            Bug ID: 47291
           Summary: 'real_dispatch_async_and_wait_f' in namespace
                    '__tsan::__interception'; did you mean
                    'dispatch_async_and_wait_f'?
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: tsan
          Assignee: unassignedbugs at nondot.org
          Reporter: soloturn at gmail.com
                CC: llvm-bugs at lists.llvm.org

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...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200823/a50945ba/attachment-0001.html>


More information about the llvm-bugs mailing list