[libcxx] [libcxxabi] [llvm] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 11:36:31 PDT 2024


jdoerfert wrote:

I run the builder locally, it did not reproduce the errors we see here.
Nothing in the error seems to be related to openmp anyway.
```
FAILED: libcxx/src/CMakeFiles/cxx_static.dir/filesystem/operations.cpp.o 
/home/runner/_work/llvm-project/llvm-project/build/generic-pstl-openmp/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBCXX_BUILDING_LIBCXXABI -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D_LIBCPP_LINK_PTHREAD_LIB -D_LIBCPP_LINK_RT_LIB -D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/runner/_work/llvm-project/llvm-project/libcxx/src -I/home/runner/_work/llvm-project/llvm-project/build/generic-pstl-openmp/include/x86_64-unknown-linux-gnu/c++/v1 -I/home/runner/_work/llvm-project/llvm-project/build/generic-pstl-openmp/include/c++/v1 -I/home/runner/_work/llvm-project/llvm-project/libcxxabi/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O2 -g -DNDEBUG -faligned-allocation -nostdinc++ -fvisibility-inlines-hidden -fvisibility=hidden -fopenmp -Wall -Wextra -Wnewline-eof -Wshadow -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Werror=return-type -Wextra-semi -Wundef -Wunused-template -Wformat-nonliteral -Wno-user-defined-literals -Wno-covered-switch-default -Wno-suggest-override -Werror -std=c++2b -MD -MT libcxx/src/CMakeFiles/cxx_static.dir/filesystem/operations.cpp.o -MF libcxx/src/CMakeFiles/cxx_static.dir/filesystem/operations.cpp.o.d -o libcxx/src/CMakeFiles/cxx_static.dir/filesystem/operations.cpp.o -c /home/runner/_work/llvm-project/llvm-project/libcxx/src/filesystem/operations.cpp
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /home/runner/_work/llvm-project/llvm-project/build/generic-pstl-openmp/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBCXX_BUILDING_LIBCXXABI -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D_LIBCPP_LINK_PTHREAD_LIB -D_LIBCPP_LINK_RT_LIB -D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/runner/_work/llvm-project/llvm-project/libcxx/src -I/home/runner/_work/llvm-project/llvm-project/build/generic-pstl-openmp/include/x86_64-unknown-linux-gnu/c++/v1 -I/home/runner/_work/llvm-project/llvm-project/build/generic-pstl-openmp/include/c++/v1 -I/home/runner/_work/llvm-project/llvm-project/libcxxabi/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O2 -g -DNDEBUG -faligned-allocation -nostdinc++ -fvisibility-inlines-hidden -fvisibility=hidden -fopenmp -Wall -Wextra -Wnewline-eof -Wshadow -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Werror=return-type -Wextra-semi -Wundef -Wunused-template -Wformat-nonliteral -Wno-user-defined-literals -Wno-covered-switch-default -Wno-suggest-override -Werror -std=c++2b -MD -MT libcxx/src/CMakeFiles/cxx_static.dir/filesystem/operations.cpp.o -MF libcxx/src/CMakeFiles/cxx_static.dir/filesystem/operations.cpp.o.d -o libcxx/src/CMakeFiles/cxx_static.dir/filesystem/operations.cpp.o -c /home/runner/_work/llvm-project/llvm-project/libcxx/src/filesystem/operations.cpp
1.	<eof> parser at end of file
2.	Per-file LLVM IR generation
3.	/home/runner/_work/llvm-project/llvm-project/build/generic-pstl-openmp/include/c++/v1/string:1850:3: Generating code for declaration 'std::basic_string<char>::__set_short_size'
#0 0x000055d30970f368 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:13
#1 0x000055d30970d570 llvm::sys::RunSignalHandlers() /home/runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:106:18
#2 0x000055d3096909b9 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) /home/runner/_work/llvm-project/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:73:5
#3 0x000055d3096909b9 CrashRecoverySignalHandler(int) /home/runner/_work/llvm-project/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:390:51
#4 0x00007fb76eb59520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#5 0x000055d309bb3841 clang::AtomicType::classof(clang::Type const*) /home/runner/_work/llvm-project/llvm-project/clang/include/clang/AST/Type.h:6993:30
#6 0x000055d309bb3841 llvm::isa_impl<clang::AtomicType, clang::Type, void>::doit(clang::Type const&) /home/runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:64:53
#7 0x000055d309bb3841 llvm::isa_impl_cl<clang::AtomicType, clang::Type const*>::doit(clang::Type const*) /home/runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:110:12
#8 0x000055d309bb3841 llvm::isa_impl_wrap<clang::AtomicType, clang::Type const*, clang::Type const*>::doit(clang::Type const* const&) /home/runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:137:12
#9 0x000055d309bb3841 llvm::isa_impl_wrap<clang::AtomicType, clang::Type const* const, clang::Type const*>::doit(clang::Type const* const&) /home/runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:127:12
#10 0x000055d309bb3841 llvm::CastIsPossible<clang::AtomicType, clang::Type const*, void>::isPossible(clang::Type const* const&) /home/runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:255:12
#11 0x000055d309bb3841 llvm::CastInfo<clang::AtomicType, clang::QualType const, void>::isPossible(clang::QualType const&) /home/runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:509:12
#12 0x000055d309bb3841 bool llvm::isa<clang::AtomicType, clang::QualType>(clang::QualType const&) /home/runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:549:10
#13 0x000055d309bb3841 clang::AtomicType const* clang::Type::getAs<clang::AtomicType>() const /home/runner/_work/llvm-project/llvm-project/clang/include/clang/AST/Type.h:7922:8
#14 0x000055d314449c50 
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 19.0.0git (https://github.com/llvm/llvm-project b0ff6ebc3d3ad79fb6661b3b38c4abd8020f42ef)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/runner/_work/llvm-project/llvm-project/build/generic-pstl-openmp/bin
clang++: note: diagnostic msg: 
********************
```

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


More information about the llvm-commits mailing list