<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
<div dir="auto">Hello everyone,
<div dir="auto">As the default clang is outputting false positives when running openmp program I wanted to compile openmp with TSAN (thread sanitizer) support. Unfortunately when I tried to compile openmp I got an error that says: "TSAN functionality requested but not available". What does it mean not available? Should I install something extra (what if it is the case)? (maybe helps: currently when compiling`clang -fsanitize=thread <span style="caret-color: rgb(39, 39, 40);"> </span><span style="caret-color: rgb(39, 39, 40);">-g -O1</span> tiny_race.c` I get no error). Running on macOS 10.14.4 (18E226). Here is the output of `<span style="color: rgb(0, 0, 0);">cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLIBOMP_TSAN_SUPPORT=1 ../openmp`</span> (the openmp repository is cloned from <span style="color: rgb(0, 0, 0);">https://github.com/llvm/llvm-project)</span>:</div>
<div dir="auto"><br /></div>
<div dir="auto">Thank you for any hints how to fix this error.</div>
<div dir="auto">Regards,</div>
<div dir="auto">Jan</div>
<div dir="auto"><br /></div>
<div dir="auto">
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- The C compiler identification is Clang 8.0.0</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- The CXX compiler identification is Clang 8.0.0</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Check for working C compiler: /usr/local/opt/llvm/bin/clang</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Check for working C compiler: /usr/local/opt/llvm/bin/clang -- works</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Detecting C compiler ABI info</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Detecting C compiler ABI info - done</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Detecting C compile features</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Detecting C compile features - done</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Check for working CXX compiler: /usr/local/opt/llvm/bin/clang++</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Check for working CXX compiler: /usr/local/opt/llvm/bin/clang++ -- works</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Detecting CXX compiler ABI info</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Detecting CXX compiler ABI info - done</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Detecting CXX compile features</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Detecting CXX compile features - done</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test OPENMP_HAVE_WERROR_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test OPENMP_HAVE_WERROR_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test OPENMP_HAVE_STD_GNUPP11_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test OPENMP_HAVE_STD_GNUPP11_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test OPENMP_HAVE_STD_CPP11_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test OPENMP_HAVE_STD_CPP11_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Found PythonInterp: /usr/bin/python (found version "2.7.10") </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Cannot find llvm-lit.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Please put llvm-lit in your PATH, set OPENMP_LLVM_LIT_EXECUTABLE to its full path, or point OPENMP_LLVM_TOOLS_DIR to its directory.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">CMake Warning at cmake/OpenMPTesting.cmake:22 (message):</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">  The check targets will not be available!</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">Call Stack (most recent call first):</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">  cmake/OpenMPTesting.cmake:40 (find_standalone_test_dependencies)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">  CMakeLists.txt:49 (include)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_FNO_EXCEPTIONS_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_FNO_EXCEPTIONS_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_FNO_RTTI_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_FNO_RTTI_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_X_CPP_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_X_CPP_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WCAST_QUAL_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WCAST_QUAL_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_UNUSED_FUNCTION_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_UNUSED_FUNCTION_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_UNUSED_LOCAL_TYPEDEF_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_UNUSED_LOCAL_TYPEDEF_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_UNUSED_VALUE_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_UNUSED_VALUE_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_UNUSED_VARIABLE_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_UNUSED_VARIABLE_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_SWITCH_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_SWITCH_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_COVERED_SWITCH_DEFAULT_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_COVERED_SWITCH_DEFAULT_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_DEPRECATED_REGISTER_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_DEPRECATED_REGISTER_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_SIGN_COMPARE_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_SIGN_COMPARE_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_GNU_ANONYMOUS_STRUCT_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_GNU_ANONYMOUS_STRUCT_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_UNKNOWN_PRAGMAS_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_UNKNOWN_PRAGMAS_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_MISSING_FIELD_INITIALIZERS_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_MISSING_FIELD_INITIALIZERS_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_MISSING_BRACES_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_MISSING_BRACES_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_COMMENT_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_COMMENT_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_SELF_ASSIGN_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_SELF_ASSIGN_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_VLA_EXTENSION_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_VLA_EXTENSION_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_FORMAT_PEDANTIC_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WNO_FORMAT_PEDANTIC_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WSTRINGOP_OVERFLOW_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WSTRINGOP_OVERFLOW_FLAG - Failed</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_MSSE2_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_MSSE2_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_FTLS_MODEL_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_FTLS_MODEL_FLAG - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_MMIC_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_MMIC_FLAG - Failed</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_M32_FLAG</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_M32_FLAG - Failed</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Looking for pthread.h</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Looking for pthread.h - found</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Looking for pthread_create</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Looking for pthread_create - found</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Found Threads: TRUE  </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Found Perl: /usr/bin/perl (found version "5.18.2") </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_VERSION_SYMBOLS</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_VERSION_SYMBOLS - Failed</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE___BUILTIN_FRAME_ADDRESS</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE___BUILTIN_FRAME_ADDRESS - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WEAK_ATTRIBUTE</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Performing Test LIBOMP_HAVE_WEAK_ATTRIBUTE - Success</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Looking for include files windows.h, psapi.h</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Looking for include files windows.h, psapi.h - not found</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Looking for EnumProcessModules in psapi</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Looking for EnumProcessModules in psapi - not found</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">CMake Error at runtime/cmake/LibompUtils.cmake:26 (message):</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">  LIBOMP: TSAN functionality requested but not available</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">Call Stack (most recent call first):</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">  runtime/CMakeLists.txt:325 (libomp_error_say)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;"><br /></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">-- Configuring incomplete, errors occurred!</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">See also "/tmp/llvm-project/build/CMakeFiles/CMakeOutput.log".</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px;color: #000000;">See also "/tmp/llvm-project/build/CMakeFiles/CMakeError.log".</p>
</div>
</div>
</div>
</body>
</html>