intel / llvm

Intel staging area for llvm.org contribution. Home for Intel LLVM-based projects.
Other
1.21k stars 715 forks source link

Cannot compile recent commits with CUDA backend #14202

Closed Hitman4Reason closed 1 week ago

Hitman4Reason commented 1 month ago

Describe the bug

Am unable to compile the most recent commits with CUDA backend. Have been trying for the past week. Was however able to install the release: https://github.com/intel/llvm/releases/tag/2022-12 with CUDA backend.

All the recent commits I tried to install failed on step 3006/3886. Any advice on how to get it to compile would be apreciated. I do not know if its an issue with my process or if the most recent commits aren't supposed to be working with "--cuda" configure flag.

Thanks in advance

To reproduce

The console output can be accessed here:

output.txt

The whole output is on the txt file but regardless, "python3 $DPCPP_HOME/llvm/buildbot/compile.py" output the following:

[goncalocosta@adriana sycl_workspace]$ python3 $DPCPP_HOME/llvm/buildbot/compile.py
args:Namespace(base_branch=None, branch=None, build_number=None, build_parallelism=None, build_target='deploy-sycl-toolchain', builder_dir=None, obj_dir=None, pr_number=None, src_dir=None, verbose=False)
[Cmake Command]: cmake --build /home/goncalocosta/sycl_workspace/llvm/build -- deploy-sycl-toolchain -j 8
[0/2] Re-checking globbed directories...
[1631/3886] Building CXX object lib/SYCLLowerIR/CMakeFiles/LLVMSYCLLowerIR.dir/DeviceGlobals.cpp.o
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/lib/SYCLLowerIR/DeviceGlobals.cpp:12:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h: In function ‘bool llvm::detail::toBool(llvm::StringRef)’:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h:60:59: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
   60 | inline bool toBool(StringRef Value) { return !Value.equals("false"); }
      |                                               ~~~~~~~~~~~~^~~~~~~~~
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/IR/PassManager.h:43,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/lib/SYCLLowerIR/DeviceGlobals.cpp:12:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/StringRef.h:165:46: note: declared here
  165 |                                   "==") bool equals(StringRef RHS) const {
      |                                              ^~~~~~
[1633/3886] Building CXX object lib/SYCLLowerIR/CMakeFiles/LLVMSYCLLowerIR.dir/HostPipes.cpp.o
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/lib/SYCLLowerIR/HostPipes.cpp:12:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h: In function ‘bool llvm::detail::toBool(llvm::StringRef)’:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h:60:59: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
   60 | inline bool toBool(StringRef Value) { return !Value.equals("false"); }
      |                                               ~~~~~~~~~~~~^~~~~~~~~
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/IR/PassManager.h:43,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/lib/SYCLLowerIR/HostPipes.cpp:12:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/StringRef.h:165:46: note: declared here
  165 |                                   "==") bool equals(StringRef RHS) const {
      |                                              ^~~~~~
[1634/3886] Building CXX object lib/SYCLLowerIR/CMakeFiles/LLVMSYCLLowerIR.dir/CompileTimePropertiesPass.cpp.o
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/lib/SYCLLowerIR/CompileTimePropertiesPass.cpp:11:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h: In function ‘bool llvm::detail::toBool(llvm::StringRef)’:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h:60:59: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
   60 | inline bool toBool(StringRef Value) { return !Value.equals("false"); }
      |                                               ~~~~~~~~~~~~^~~~~~~~~
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/IR/PassManager.h:43,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/lib/SYCLLowerIR/CompileTimePropertiesPass.cpp:11:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/StringRef.h:165:46: note: declared here
  165 |                                   "==") bool equals(StringRef RHS) const {
      |                                              ^~~~~~
[1640/3886] Building CXX object lib/SYCLLowerIR/CMakeFiles/LLVMSYCLLowerIR.dir/ESIMD/LowerESIMD.cpp.o
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/Passes/PassBuilder.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/lib/SYCLLowerIR/ESIMD/LowerESIMD.cpp:37:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/Analysis/CGSCCPassManager.h:109: warning: "DEBUG_TYPE" redefined
  109 | #define DEBUG_TYPE "cgscc"
      |
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/lib/SYCLLowerIR/ESIMD/LowerESIMD.cpp:20:
/home/goncalocosta/sycl_workspace/llvm/llvm/lib/SYCLLowerIR/ESIMD/../../IR/ConstantsContext.h:39: note: this is the location of the previous definition
   39 | #define DEBUG_TYPE "ir"
      |
[1765/3886] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/lib/Passes/PassBuilder.cpp:116:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h: In function ‘bool llvm::detail::toBool(llvm::StringRef)’:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h:60:59: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
   60 | inline bool toBool(StringRef Value) { return !Value.equals("false"); }
      |                                               ~~~~~~~~~~~~^~~~~~~~~
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/Analysis/LazyCallGraph.h:42,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/Analysis/CGSCCPassManager.h:92,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/Passes/PassBuilder.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/lib/Passes/PassBuilder.cpp:17:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/StringRef.h:165:46: note: declared here
  165 |                                   "==") bool equals(StringRef RHS) const {
      |                                              ^~~~~~
[2242/3886] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/BackendUtil.cpp.o
In file included from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/BackendUtil.cpp:51:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h: In function ‘bool llvm::detail::toBool(llvm::StringRef)’:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h:60:59: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
   60 | inline bool toBool(StringRef Value) { return !Value.equals("false"); }
      |                                               ~~~~~~~~~~~~^~~~~~~~~
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/SmallString.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/IR/ModuleSummaryIndex.h:21,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/CodeGen/BackendUtil.h:13,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/BackendUtil.cpp:9:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/StringRef.h:165:46: note: declared here
  165 |                                   "==") bool equals(StringRef RHS) const {
      |                                              ^~~~~~
[2263/3886] Building CXX object tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/DeclBase.cpp.o
In member function ‘clang::DeclListNode::Decls* clang::StoredDeclsList::erase_if(Fn) [with Fn = clang::StoredDeclsList::replaceExternalDecls(llvm::ArrayRef<clang::NamedDecl*>)::<lambda(clang::NamedDecl*)>]’:
cc1plus: warning: function may return address of local variable [-Wreturn-local-addr]
In file included from /home/goncalocosta/sycl_workspace/llvm/clang/lib/AST/DeclBase.cpp:21:
/home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/DeclContextInternals.h:52:25: note: declared here
   52 |     DeclListNode::Decls NewHead = nullptr;
      |                         ^~~~~~~
[2413/3886] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCall.cpp.o
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/cassert:44,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/IR/InlineAsm.h:23,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:41:
/home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp: In function ‘int32_t convertFPAccuracyToAspect(llvm::StringRef)’:
/home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:1884:30: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
 1884 |   assert(FPAccuracyStr.equals("high") || FPAccuracyStr.equals("medium") ||
      |          ~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Basic/DiagnosticIDs.h:19,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Basic/Diagnostic.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/NestedNameSpecifier.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/Type.h:21,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/Address.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGValue.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:14:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/StringRef.h:165:46: note: declared here
  165 |                                   "==") bool equals(StringRef RHS) const {
      |                                              ^~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/cassert:44,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/IR/InlineAsm.h:23,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:41:
/home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:1884:62: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
 1884 |   assert(FPAccuracyStr.equals("high") || FPAccuracyStr.equals("medium") ||
      |                                          ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Basic/DiagnosticIDs.h:19,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Basic/Diagnostic.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/NestedNameSpecifier.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/Type.h:21,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/Address.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGValue.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:14:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/StringRef.h:165:46: note: declared here
  165 |                                   "==") bool equals(StringRef RHS) const {
      |                                              ^~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/cassert:44,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/IR/InlineAsm.h:23,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:41:
/home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:1885:30: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
 1885 |          FPAccuracyStr.equals("low") || FPAccuracyStr.equals("sycl") ||
      |          ~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Basic/DiagnosticIDs.h:19,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Basic/Diagnostic.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/NestedNameSpecifier.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/Type.h:21,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/Address.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGValue.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:14:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/StringRef.h:165:46: note: declared here
  165 |                                   "==") bool equals(StringRef RHS) const {
      |                                              ^~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/cassert:44,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/IR/InlineAsm.h:23,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:41:
/home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:1885:61: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
 1885 |          FPAccuracyStr.equals("low") || FPAccuracyStr.equals("sycl") ||
      |                                         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Basic/DiagnosticIDs.h:19,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Basic/Diagnostic.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/NestedNameSpecifier.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/Type.h:21,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/Address.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGValue.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:14:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/StringRef.h:165:46: note: declared here
  165 |                                   "==") bool equals(StringRef RHS) const {
      |                                              ^~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/cassert:44,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/IR/InlineAsm.h:23,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:41:
/home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:1886:30: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
 1886 |          FPAccuracyStr.equals("cuda"));
      |          ~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Basic/DiagnosticIDs.h:19,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Basic/Diagnostic.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/NestedNameSpecifier.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/Type.h:21,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/Address.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGValue.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGCall.cpp:14:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/StringRef.h:165:46: note: declared here
  165 |                                   "==") bool equals(StringRef RHS) const {
      |                                              ^~~~~~
[2421/3886] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGExpr.cpp.o
/home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGExpr.cpp: In member function ‘void clang::CodeGen::CodeGenFunction::EmitTrapCheck(llvm::Value*, clang::CodeGen::SanitizerHandler)’:
/home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/CGExpr.cpp:3857:48: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
 3856 |         llvm::ConstantInt::get(CGM.Int8Ty, ClSanitizeDebugDeoptimization
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 3857 |                                                ? TrapBB->getParent()->size()
      |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 3858 |                                                : CheckHandlerID));
      |                                                ~~~~~~~~~~~~~~~~
[2480/3886] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/SPIR.cpp.o
/home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/Targets/SPIR.cpp: In member function ‘virtual llvm::Type* {anonymous}::CommonSPIRTargetCodeGenInfo::getOpenCLType(clang::CodeGen::CodeGenModule&, const clang::Type*) const’:
/home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/Targets/SPIR.cpp:317:32: warning: ‘bool llvm::LLVMContext::supportsTypedPointers() const’ is deprecated: Always returns false [-Wdeprecated-declarations]
  317 |   if (Ctx.supportsTypedPointers())
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/IR/Metadata.h:27,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/Frontend/HLSL/HLSLResource.h:16,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/Attr.h:31,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/ABIInfo.h:12,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/ABIInfoImpl.h:12,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/CodeGen/Targets/SPIR.cpp:9:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/IR/LLVMContext.h:328:8: note: declared here
  328 |   bool supportsTypedPointers() const;
      |        ^~~~~~~~~~~~~~~~~~~~~
[2588/3886] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/CommonArgs.cpp.o
/home/goncalocosta/sycl_workspace/llvm/clang/lib/Driver/ToolChains/CommonArgs.cpp: In function ‘bool clang::driver::tools::addOpenMPRuntime(const clang::driver::Compilation&, llvm::opt::ArgStringList&, const clang::driver::ToolChain&, const llvm::opt::ArgList&, bool, bool, bool)’:
/home/goncalocosta/sycl_workspace/llvm/clang/lib/Driver/ToolChains/CommonArgs.cpp:1167:10: warning: enumeration value ‘OMPRT_Unknown’ not handled in switch [-Wswitch]
 1167 |   switch (RTKind) {
      |          ^
/home/goncalocosta/sycl_workspace/llvm/clang/lib/Driver/ToolChains/CommonArgs.cpp: In function ‘void AddUnwindLibrary(const clang::driver::ToolChain&, const clang::driver::Driver&, llvm::opt::ArgStringList&, const llvm::opt::ArgList&)’:
/home/goncalocosta/sycl_workspace/llvm/clang/lib/Driver/ToolChains/CommonArgs.cpp:2105:10: warning: enumeration value ‘UNW_None’ not handled in switch [-Wswitch]
 2105 |   switch (UNW) {
      |          ^
[2648/3886] Building CXX object tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/CompilerInvocation.cpp.o
/home/goncalocosta/sycl_workspace/llvm/clang/lib/Frontend/CompilerInvocation.cpp: In static member function ‘static void clang::CompilerInvocation::ParseFpAccuracyArgs(clang::LangOptions&, llvm::opt::ArgList&, clang::DiagnosticsEngine&)’:
/home/goncalocosta/sycl_workspace/llvm/clang/lib/Frontend/CompilerInvocation.cpp:3861:38: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
 3861 |             if (!ValElement[0].equals("default")) {
      |                  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Basic/Sanitizers.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Basic/CodeGenOptions.h:16,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Frontend/CompilerInvocation.h:13,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/Frontend/CompilerInvocation.cpp:9:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/StringRef.h:165:46: note: declared here
  165 |                                   "==") bool equals(StringRef RHS) const {
      |                                              ^~~~~~
[2763/3886] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaOpenMP.cpp.o
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/APFloat.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/APNumericStorage.h:12,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/Decl.h:16,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/AST/Attr.h:18,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/include/clang/Sema/SemaOpenMP.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/clang/lib/Sema/SemaOpenMP.cpp:14:
In destructor ‘llvm::APInt::~APInt()’,
    inlined from ‘llvm::APSInt::~APSInt()’ at /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/APSInt.h:23:21,
    inlined from ‘bool checkOMPArraySectionConstantForReduction(clang::ASTContext&, const clang::ArraySectionExpr*, bool&, llvm::SmallVectorImpl<llvm::APSInt>&)’ at /home/goncalocosta/sycl_workspace/llvm/clang/lib/Sema/SemaOpenMP.cpp:19737:45,
    inlined from ‘bool actOnOMPReductionKindClause(clang::Sema&, {anonymous}::DSAStackTy*, clang::OpenMPClauseKind, llvm::ArrayRef<clang::Expr*>, clang::SourceLocation, clang::SourceLocation, clang::SourceLocation, clang::SourceLocation, clang::CXXScopeSpec&, const clang::DeclarationNameInfo&, llvm::ArrayRef<clang::Expr*>, {anonymous}::ReductionData&)’ at /home/goncalocosta/sycl_workspace/llvm/clang/lib/Sema/SemaOpenMP.cpp:20114:68:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/APInt.h:170:18: warning: ‘void operator delete [](void*)’ called on a pointer to an unallocated object ‘1’ [-Wfree-nonheap-object]
  170 |       delete[] U.pVal;
      |                  ^~~~
In destructor ‘llvm::APInt::~APInt()’,
    inlined from ‘llvm::APSInt::~APSInt()’ at /home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/APSInt.h:23:21,
    inlined from ‘bool checkOMPArraySectionConstantForReduction(clang::ASTContext&, const clang::ArraySectionExpr*, bool&, llvm::SmallVectorImpl<llvm::APSInt>&)’ at /home/goncalocosta/sycl_workspace/llvm/clang/lib/Sema/SemaOpenMP.cpp:19756:45,
    inlined from ‘bool actOnOMPReductionKindClause(clang::Sema&, {anonymous}::DSAStackTy*, clang::OpenMPClauseKind, llvm::ArrayRef<clang::Expr*>, clang::SourceLocation, clang::SourceLocation, clang::SourceLocation, clang::SourceLocation, clang::CXXScopeSpec&, const clang::DeclarationNameInfo&, llvm::ArrayRef<clang::Expr*>, {anonymous}::ReductionData&)’ at /home/goncalocosta/sycl_workspace/llvm/clang/lib/Sema/SemaOpenMP.cpp:20114:68:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/APInt.h:170:18: warning: ‘void operator delete [](void*)’ called on a pointer to an unallocated object ‘1’ [-Wfree-nonheap-object]
  170 |       delete[] U.pVal;
      |                  ^~~~
[2989/3886] Building CXX object tools/sycl-post-link/CMakeFiles/sycl-post-link.dir/sycl-post-link.cpp.o
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/tools/sycl-post-link/sycl-post-link.cpp:37:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h: In function ‘bool llvm::detail::toBool(llvm::StringRef)’:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/SYCLLowerIR/CompileTimePropertiesPass.h:60:59: warning: ‘bool llvm::StringRef::equals(llvm::StringRef) const’ is deprecated: Use == instead [-Wdeprecated-declarations]
   60 | inline bool toBool(StringRef Value) { return !Value.equals("false"); }
      |                                               ~~~~~~~~~~~~^~~~~~~~~
In file included from /home/goncalocosta/sycl_workspace/llvm/llvm/tools/sycl-post-link/SYCLKernelParamOptInfo.h:17,
                 from /home/goncalocosta/sycl_workspace/llvm/llvm/tools/sycl-post-link/sycl-post-link.cpp:17:
/home/goncalocosta/sycl_workspace/llvm/llvm/include/llvm/ADT/StringRef.h:165:46: note: declared here
  165 |                                   "==") bool equals(StringRef RHS) const {
      |                                              ^~~~~~
[2992/3886] Building C object _deps/ocl-icd-build/CMakeFiles/OpenCL.dir/loader/icd_dispatch.c.o
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd_dispatch.c: In function ‘clGetICDLoaderInfoOCLICD’:
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd_dispatch.c:44:14: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
   44 |         pv = (void *)cl_icdl_ ## name;                                         \
      |              ^
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd_dispatch.c:48:5: note: in expansion of macro ‘KHR_ICD_CASE_STRING_PARAM_NAME’
   48 |     KHR_ICD_CASE_STRING_PARAM_NAME(OCL_VERSION);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd_dispatch.c:44:14: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
   44 |         pv = (void *)cl_icdl_ ## name;                                         \
      |              ^
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd_dispatch.c:49:5: note: in expansion of macro ‘KHR_ICD_CASE_STRING_PARAM_NAME’
   49 |     KHR_ICD_CASE_STRING_PARAM_NAME(VERSION);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd_dispatch.c:44:14: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
   44 |         pv = (void *)cl_icdl_ ## name;                                         \
      |              ^
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd_dispatch.c:50:5: note: in expansion of macro ‘KHR_ICD_CASE_STRING_PARAM_NAME’
   50 |     KHR_ICD_CASE_STRING_PARAM_NAME(NAME);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd_dispatch.c:44:14: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
   44 |         pv = (void *)cl_icdl_ ## name;                                         \
      |              ^
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd_dispatch.c:51:5: note: in expansion of macro ‘KHR_ICD_CASE_STRING_PARAM_NAME’
   51 |     KHR_ICD_CASE_STRING_PARAM_NAME(VENDOR);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2993/3886] Building C object _deps/ocl-icd-build/CMakeFiles/OpenCL.dir/loader/icd.c.o
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd.c: In function ‘khrIcdLayerAdd’:
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd.c:315:14: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
  315 |             ((void **)layerDispatch)[i] ?
      |              ^
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd.c:316:18: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
  316 |                 ((void **)layerDispatch)[i] : ((void **)targetDispatch)[i];
      |                  ^
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd.c:316:48: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
  316 |                 ((void **)layerDispatch)[i] : ((void **)targetDispatch)[i];
      |                                                ^
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd.c:319:45: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
  319 |         ((void **)&(layer->dispatch))[i] = ((void **)targetDispatch)[i];
      |                                             ^
[2995/3886] Building C object _deps/ocl-icd-build/CMakeFiles/OpenCL.dir/loader/linux/icd_linux.c.o
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c: In function ‘compareDirElem’:
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c:132:21: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
  132 |     return strcoll(((struct dirElem *)a)->d_name, ((struct dirElem *)b)->d_name);
      |                     ^
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c:132:52: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual]
  132 |     return strcoll(((struct dirElem *)a)->d_name, ((struct dirElem *)b)->d_name);
      |                                                    ^
In file included from /home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd.h:22,
                 from /home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c:19:
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c: In function ‘khrIcdOsVendorsEnumerate’:
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd_platform.h:30:25: warning: passing argument 1 of ‘khrIcdOsDirEnumerate’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   30 | #define ICD_VENDOR_PATH "/etc/OpenCL/vendors"
      |                         ^~~~~~~~~~~~~~~~~~~~~
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c:219:26: note: in expansion of macro ‘ICD_VENDOR_PATH’
  219 |     khrIcdOsDirEnumerate(ICD_VENDOR_PATH, "OCL_ICD_VENDORS", ".icd", khrIcdVendorAdd, 0);
      |                          ^~~~~~~~~~~~~~~
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c:135:47: note: expected ‘char *’ but argument is of type ‘const char *’
  135 | static inline void khrIcdOsDirEnumerate(char *path, char *env, const char *extension,
      |                                         ~~~~~~^~~~
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c:219:43: warning: passing argument 2 of ‘khrIcdOsDirEnumerate’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  219 |     khrIcdOsDirEnumerate(ICD_VENDOR_PATH, "OCL_ICD_VENDORS", ".icd", khrIcdVendorAdd, 0);
      |                                           ^~~~~~~~~~~~~~~~~
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c:135:59: note: expected ‘char *’ but argument is of type ‘const char *’
  135 | static inline void khrIcdOsDirEnumerate(char *path, char *env, const char *extension,
      |                                                     ~~~~~~^~~
In file included from /home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd.h:22,
                 from /home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c:19:
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/icd_platform.h:31:20: warning: passing argument 1 of ‘khrIcdOsDirEnumerate’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   31 | #define LAYER_PATH "/etc/OpenCL/layers"
      |                    ^~~~~~~~~~~~~~~~~~~~
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c:223:26: note: in expansion of macro ‘LAYER_PATH’
  223 |     khrIcdOsDirEnumerate(LAYER_PATH, "OPENCL_LAYER_PATH", ".lay", khrIcdLayerAdd, 1);
      |                          ^~~~~~~~~~
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c:135:47: note: expected ‘char *’ but argument is of type ‘const char *’
  135 | static inline void khrIcdOsDirEnumerate(char *path, char *env, const char *extension,
      |                                         ~~~~~~^~~~
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c:223:38: warning: passing argument 2 of ‘khrIcdOsDirEnumerate’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  223 |     khrIcdOsDirEnumerate(LAYER_PATH, "OPENCL_LAYER_PATH", ".lay", khrIcdLayerAdd, 1);
      |                                      ^~~~~~~~~~~~~~~~~~~
/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-icd-src/loader/linux/icd_linux.c:135:59: note: expected ‘char *’ but argument is of type ‘const char *’
  135 | static inline void khrIcdOsDirEnumerate(char *path, char *env, const char *extension,
      |                                                     ~~~~~~^~~
[2999/3886] Building CXX object tools/sycl/plugins/unified_runtime/CMakeFiles/pi_unified_runtime.dir/pi_unified_runtime.cpp.o
FAILED: tools/sycl/plugins/unified_runtime/CMakeFiles/pi_unified_runtime.dir/pi_unified_runtime.cpp.o
/opt/rh/devtoolset-11/root/usr/bin/c++ -DCL_TARGET_OPENCL_VERSION=300 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__SYCL_BUILD_SYCL_DLL -Dpi_unified_runtime_EXPORTS -I/home/goncalocosta/sycl_workspace/llvm/build/tools/sycl/plugins/unified_runtime -I/home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime -I/home/goncalocosta/sycl_workspace/llvm/build/include -I/home/goncalocosta/sycl_workspace/llvm/llvm/include -I/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source -I/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/common -I/home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/LevelZeroLoader-Headers -I/home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/OpenCL-ICD -I/home/goncalocosta/sycl_workspace/llvm/sycl/include -I/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/include -I/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-memory-framework-src/include -I/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-memory-framework-src/src/critnib -I/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-memory-framework-src/src/provider -I/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-memory-framework-src/include/umf/pools -I/home/goncalocosta/sycl_workspace/llvm/build/_deps/ocl-headers-src -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Wextra -Wno-deprecated-declarations -O3 -DNDEBUG -std=c++17 -fPIC -UNDEBUG -fvisibility=hidden -Wno-error -MD -MT tools/sycl/plugins/unified_runtime/CMakeFiles/pi_unified_runtime.dir/pi_unified_runtime.cpp.o -MF tools/sycl/plugins/unified_runtime/CMakeFiles/pi_unified_runtime.dir/pi_unified_runtime.cpp.o.d -o tools/sycl/plugins/unified_runtime/CMakeFiles/pi_unified_runtime.dir/pi_unified_runtime.cpp.o -c /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi_unified_runtime.cpp
In file included from /home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/ur/ur.hpp:28,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi2ur.hpp:14,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi_unified_runtime.cpp:12:
/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/common/ur_util.hpp: In function ‘std::optional<std::vector<std::basic_string<char> > > getenv_to_vec(const char*)’:
/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/common/ur_util.hpp:171:24: error: no matching function for call to ‘std::basic_string<char>::erase(std::basic_string<char>::const_iterator)’
  171 |             value.erase(value.cbegin());
      |             ~~~~~~~~~~~^~~~~~~~~~~~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/string:55,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/bits/locale_classes.h:40,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/bits/ios_base.h:41,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/ios:42,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/ostream:38,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/iostream:39,
                 from /home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/ur/ur.hpp:17,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi2ur.hpp:14,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi_unified_runtime.cpp:12:
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4759:7: note: candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::erase(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
 4759 |       erase(size_type __pos = 0, size_type __n = npos)
      |       ^~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4759:23: note:   no known conversion for argument 1 from ‘std::basic_string<char>::const_iterator’ to ‘std::basic_string<char>::size_type’ {aka ‘long unsigned int’}
 4759 |       erase(size_type __pos = 0, size_type __n = npos)
      |             ~~~~~~~~~~^~~~~~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4775:7: note: candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>::iterator std::basic_string<_CharT, _Traits, _Alloc>::erase(std::basic_string<_CharT, _Traits, _Alloc>::iterator) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = std::basic_string<char>::iterator]’
 4775 |       erase(iterator __position)
      |       ^~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4775:22: note:   no known conversion for argument 1 from ‘__normal_iterator<const char*,[...]>’ to ‘__normal_iterator<char*,[...]>’
 4775 |       erase(iterator __position)
      |             ~~~~~~~~~^~~~~~~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4795:7: note: candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>::iterator std::basic_string<_CharT, _Traits, _Alloc>::erase(std::basic_string<_CharT, _Traits, _Alloc>::iterator, std::basic_string<_CharT, _Traits, _Alloc>::iterator) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = std::basic_string<char>::iterator]’
 4795 |       erase(iterator __first, iterator __last);
      |       ^~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4795:7: note:   candidate expects 2 arguments, 1 provided
In file included from /home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/ur/ur.hpp:28,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi2ur.hpp:14,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi_unified_runtime.cpp:12:
/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/common/ur_util.hpp:172:24: error: no matching function for call to ‘std::basic_string<char>::erase(__gnu_cxx::__normal_iterator<const char*, std::basic_string<char> >)’
  172 |             value.erase(value.cend() - 1);
      |             ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/string:55,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/bits/locale_classes.h:40,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/bits/ios_base.h:41,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/ios:42,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/ostream:38,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/iostream:39,
                 from /home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/ur/ur.hpp:17,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi2ur.hpp:14,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi_unified_runtime.cpp:12:
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4759:7: note: candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::erase(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
 4759 |       erase(size_type __pos = 0, size_type __n = npos)
      |       ^~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4759:23: note:   no known conversion for argument 1 from ‘__gnu_cxx::__normal_iterator<const char*, std::basic_string<char> >’ to ‘std::basic_string<char>::size_type’ {aka ‘long unsigned int’}
 4759 |       erase(size_type __pos = 0, size_type __n = npos)
      |             ~~~~~~~~~~^~~~~~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4775:7: note: candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>::iterator std::basic_string<_CharT, _Traits, _Alloc>::erase(std::basic_string<_CharT, _Traits, _Alloc>::iterator) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = std::basic_string<char>::iterator]’
 4775 |       erase(iterator __position)
      |       ^~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4775:22: note:   no known conversion for argument 1 from ‘__normal_iterator<const char*,[...]>’ to ‘__normal_iterator<char*,[...]>’
 4775 |       erase(iterator __position)
      |             ~~~~~~~~~^~~~~~~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4795:7: note: candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>::iterator std::basic_string<_CharT, _Traits, _Alloc>::erase(std::basic_string<_CharT, _Traits, _Alloc>::iterator, std::basic_string<_CharT, _Traits, _Alloc>::iterator) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = std::basic_string<char>::iterator]’
 4795 |       erase(iterator __first, iterator __last);
      |       ^~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4795:7: note:   candidate expects 2 arguments, 1 provided
In file included from /home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/ur/ur.hpp:28,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi2ur.hpp:14,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi_unified_runtime.cpp:12:
/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/common/ur_util.hpp: In function ‘std::optional<std::map<std::basic_string<char>, std::vector<std::basic_string<char> > > > getenv_to_map(const char*, bool)’:
/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/common/ur_util.hpp:250:28: error: no matching function for call to ‘std::basic_string<char>::erase(std::basic_string<char>::const_iterator)’
  250 |                 value.erase(value.cbegin());
      |                 ~~~~~~~~~~~^~~~~~~~~~~~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/string:55,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/bits/locale_classes.h:40,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/bits/ios_base.h:41,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/ios:42,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/ostream:38,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/iostream:39,
                 from /home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/ur/ur.hpp:17,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi2ur.hpp:14,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi_unified_runtime.cpp:12:
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4759:7: note: candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::erase(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
 4759 |       erase(size_type __pos = 0, size_type __n = npos)
      |       ^~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4759:23: note:   no known conversion for argument 1 from ‘std::basic_string<char>::const_iterator’ to ‘std::basic_string<char>::size_type’ {aka ‘long unsigned int’}
 4759 |       erase(size_type __pos = 0, size_type __n = npos)
      |             ~~~~~~~~~~^~~~~~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4775:7: note: candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>::iterator std::basic_string<_CharT, _Traits, _Alloc>::erase(std::basic_string<_CharT, _Traits, _Alloc>::iterator) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = std::basic_string<char>::iterator]’
 4775 |       erase(iterator __position)
      |       ^~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4775:22: note:   no known conversion for argument 1 from ‘__normal_iterator<const char*,[...]>’ to ‘__normal_iterator<char*,[...]>’
 4775 |       erase(iterator __position)
      |             ~~~~~~~~~^~~~~~~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4795:7: note: candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>::iterator std::basic_string<_CharT, _Traits, _Alloc>::erase(std::basic_string<_CharT, _Traits, _Alloc>::iterator, std::basic_string<_CharT, _Traits, _Alloc>::iterator) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = std::basic_string<char>::iterator]’
 4795 |       erase(iterator __first, iterator __last);
      |       ^~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4795:7: note:   candidate expects 2 arguments, 1 provided
[3006/3886] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaTemplate.cpp.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/home/goncalocosta/sycl_workspace/llvm/buildbot/compile.py", line 71, in <module>
    ret = main()
  File "/home/goncalocosta/sycl_workspace/llvm/buildbot/compile.py", line 67, in main
    return do_compile(args)
  File "/home/goncalocosta/sycl_workspace/llvm/buildbot/compile.py", line 42, in do_compile
    subprocess.check_call(cmake_cmd, cwd=abs_obj_dir)
  File "/usr/lib64/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '/home/goncalocosta/sycl_workspace/llvm/build', '--', 'deploy-sycl-toolchain', '-j', '8']' returned non-zero exit status 1.

Environment

OS: Linux CentOS Linux release 7.3.1611 (Core) GPU: RTX 3080

$ nvidia-smi
Mon Jun 17 22:40:35 2024
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.85.12    Driver Version: 525.85.12    CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:01:00.0 Off |                  N/A |
| 53%   40C    P0    94W / 320W |      0MiB / 10240MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

$ cmake --version
cmake version 3.27.7

CMake suite maintained and supported by Kitware (kitware.com/cmake).

$ gcc --version
gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)
Copyright (C) 2021 Free Software Foundation, Inc.

$ ninja --version
1.10.2

Additional context

No response

bader commented 1 month ago

@Hitman4Reason, could you please verify whether the problem persists after removing the /home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/ directory?

Hitman4Reason commented 1 month ago

@bader After which I just run python3 $DPCPP_HOME/llvm/buildbot/compile.py again?

bader commented 1 month ago

Right, but I just checked the full log and I see that you are doing the build from the scratch, so it won't help.

It looks like libstdc++ is missing iterator erase( const_iterator position ); for std::basic_string<CharT,Traits,Allocator>. Which is unexpected with GCC 11.2.1.

/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/common/ur_util.hpp: In function ‘std::optional<std::vector<std::basic_string<char> > > getenv_to_vec(const char*)’:
/home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/common/ur_util.hpp:171:24: error: no matching function for call to ‘std::basic_string<char>::erase(std::basic_string<char>::const_iterator)’
  171 |             value.erase(value.cbegin());
      |             ~~~~~~~~~~~^~~~~~~~~~~~~~~~
In file included from /opt/rh/devtoolset-11/root/usr/include/c++/11/string:55,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/bits/locale_classes.h:40,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/bits/ios_base.h:41,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/ios:42,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/ostream:38,
                 from /opt/rh/devtoolset-11/root/usr/include/c++/11/iostream:39,
                 from /home/goncalocosta/sycl_workspace/llvm/build/_deps/unified-runtime-src/source/ur/ur.hpp:17,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi2ur.hpp:14,
                 from /home/goncalocosta/sycl_workspace/llvm/sycl/plugins/unified_runtime/pi_unified_runtime.cpp:12:
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4759:7: note: candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::erase(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
 4759 |       erase(size_type __pos = 0, size_type __n = npos)
      |       ^~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4759:23: note:   no known conversion for argument 1 from ‘std::basic_string<char>::const_iterator’ to ‘std::basic_string<char>::size_type’ {aka ‘long unsigned int’}
 4759 |       erase(size_type __pos = 0, size_type __n = npos)
      |             ~~~~~~~~~~^~~~~~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4775:7: note: candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>::iterator std::basic_string<_CharT, _Traits, _Alloc>::erase(std::basic_string<_CharT, _Traits, _Alloc>::iterator) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = std::basic_string<char>::iterator]’
 4775 |       erase(iterator __position)
      |       ^~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4775:22: note:   no known conversion for argument 1 from ‘__normal_iterator<const char*,[...]>’ to ‘__normal_iterator<char*,[...]>’
 4775 |       erase(iterator __position)
      |             ~~~~~~~~~^~~~~~~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4795:7: note: candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>::iterator std::basic_string<_CharT, _Traits, _Alloc>::erase(std::basic_string<_CharT, _Traits, _Alloc>::iterator, std::basic_string<_CharT, _Traits, _Alloc>::iterator) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = std::basic_string<char>::iterator]’
 4795 |       erase(iterator __first, iterator __last);
      |       ^~~~~
/opt/rh/devtoolset-11/root/usr/include/c++/11/bits/basic_string.h:4795:7: note:   candidate expects 2 arguments, 1 provided

@intel/unified-runtime-reviewers, any clues?

kbenzie commented 1 month ago

Environment

OS: Linux GPU: RTX 3070

I don't think we have enough information about the operating system being used here to do a proper diagnosis.

$ gcc --version gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9) Copyright (C) 2021 Free Software Foundation, Inc.

The gcc version output suggests this is failing on Red Hat but without knowing what version of Red Hat it's difficult to say. This could be a newer gcc package on an older, possibly unsupported, version of Red Hat, for example.

I would also like to know the glibc version in use.

Could you add this info please @Hitman4Reason?

Hitman4Reason commented 1 month ago

Sorry here it is: CentOS Linux release 7.3.1611 (Core)

$ ldd --version ldd (GNU libc) 2.17 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.

Anything else I should provide?

kbenzie commented 1 month ago

The libstdc++ version would also be useful now I think of it.

Hitman4Reason commented 1 month ago

Was a bit confused on how to do that but here is what I got.

$ /sbin/ldconfig -p | grep stdc++ libstdc++.so.6 (libc6,x86-64) => /lib64/libstdc++.so.6 libstdc++.so.6 (libc6) => /lib/libstdc++.so.6 libstdc++.so.5 (libc6,x86-64) => /lib64/libstdc++.so.5 libstdc++.so.5 (libc6) => /lib/libstdc++.so.5

kbenzie commented 1 month ago

What's the output of this?

$ strings /lib64/libstdc++.so.6 | grep LIBCXX
Hitman4Reason commented 1 month ago

@kbenzie $ strings /lib64/libstdc++.so.6 | grep LIBCXX GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_3.4.14 GLIBCXX_3.4.15 GLIBCXX_3.4.16 GLIBCXX_3.4.17 GLIBCXX_3.4.18 GLIBCXX_3.4.19 GLIBCXX_DEBUG_MESSAGE_LENGTH

kbenzie commented 1 month ago

Seems like that's a rather old version (gcc 4.8.3) of libstdc++ which doesn't fully support C++17. Looking at the compile errors though, it appears you should be using the libstdc++ headers shipped with gcc 11 which should fully support C++17.

The code in question here is not doing anything wrong that I can tell. There is a const_iterator overload for std::string::erase and that's what is gets returned from std::string::cbegin/std::string::cend being passed in for both of these calls.

    std::string value;
...
            value.erase(value.cbegin());
            value.erase(value.cend() - 1);

In general, I don't believe RedHat 7 (and thus CentOS 7) is a supported platform any longer.

Hitman4Reason commented 1 week ago

the problem seems to be with the OS. Works on other systems so will close this. Thanks