[clang] [llvm] [Driver][SYCL] Add initial SYCL offload compilation support (PR #117268)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 09:12:44 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot7` while building `clang,llvm` at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/8566

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[4353/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/NetBSD.cpp.o
[4354/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SPIRVOpenMP.cpp.o
[4355/5366] Building CXX object tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/InMemoryModuleCache.cpp.o
[4356/5366] Building CXX object tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/ModuleFileExtension.cpp.o
[4357/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Cuda.cpp.o
[4358/5366] Building CXX object tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/PCHContainerOperations.cpp.o
[4359/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/MipsLinux.cpp.o
[4360/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/TCE.cpp.o
[4361/5366] Building CXX object tools/clang/lib/Analysis/FlowSensitive/CMakeFiles/obj.clangAnalysisFlowSensitive.dir/DataflowEnvironment.cpp.o
[4362/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DCLANG_EXPORTS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:35:10: error: returning address of local temporary object [-Werror,-Wreturn-stack-address]
   35 |   return {
      |          ^
   36 |       options::OPT_fsanitize_EQ,      // -fsanitize
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       options::OPT_fcf_protection_EQ, // -fcf-protection
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   38 |       options::OPT_fprofile_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   39 |       options::OPT_fprofile_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   40 |       options::OPT_fno_profile_generate, // -f[no-]profile-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   41 |       options::OPT_ftest_coverage,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   42 |       options::OPT_fno_test_coverage, // -f[no-]test-coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   43 |       options::OPT_fcoverage_mapping,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   44 |       options::OPT_fno_coverage_mapping, // -f[no-]coverage-mapping
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   45 |       options::OPT_coverage,             // --coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   46 |       options::OPT_fprofile_instr_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   47 |       options::OPT_fprofile_instr_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   48 |       options::OPT_fno_profile_instr_generate, // -f[no-]profile-instr-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   49 |       options::OPT_fprofile_arcs,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   50 |       options::OPT_fno_profile_arcs, // -f[no-]profile-arcs
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:8:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.h:27:17: error: private field 'D' is not used [-Werror,-Wunused-private-field]
   27 |   const Driver &D;
      |                 ^
Step 8 (build compiler-rt symbolizer) failure: build compiler-rt symbolizer (failure)
...
[4353/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/NetBSD.cpp.o
[4354/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SPIRVOpenMP.cpp.o
[4355/5366] Building CXX object tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/InMemoryModuleCache.cpp.o
[4356/5366] Building CXX object tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/ModuleFileExtension.cpp.o
[4357/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Cuda.cpp.o
[4358/5366] Building CXX object tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/PCHContainerOperations.cpp.o
[4359/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/MipsLinux.cpp.o
[4360/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/TCE.cpp.o
[4361/5366] Building CXX object tools/clang/lib/Analysis/FlowSensitive/CMakeFiles/obj.clangAnalysisFlowSensitive.dir/DataflowEnvironment.cpp.o
[4362/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DCLANG_EXPORTS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:35:10: error: returning address of local temporary object [-Werror,-Wreturn-stack-address]
   35 |   return {
      |          ^
   36 |       options::OPT_fsanitize_EQ,      // -fsanitize
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       options::OPT_fcf_protection_EQ, // -fcf-protection
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   38 |       options::OPT_fprofile_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   39 |       options::OPT_fprofile_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   40 |       options::OPT_fno_profile_generate, // -f[no-]profile-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   41 |       options::OPT_ftest_coverage,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   42 |       options::OPT_fno_test_coverage, // -f[no-]test-coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   43 |       options::OPT_fcoverage_mapping,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   44 |       options::OPT_fno_coverage_mapping, // -f[no-]coverage-mapping
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   45 |       options::OPT_coverage,             // --coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   46 |       options::OPT_fprofile_instr_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   47 |       options::OPT_fprofile_instr_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   48 |       options::OPT_fno_profile_instr_generate, // -f[no-]profile-instr-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   49 |       options::OPT_fprofile_arcs,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   50 |       options::OPT_fno_profile_arcs, // -f[no-]profile-arcs
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:8:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.h:27:17: error: private field 'D' is not used [-Werror,-Wunused-private-field]
   27 |   const Driver &D;
      |                 ^
Step 9 (test compiler-rt symbolizer) failure: test compiler-rt symbolizer (failure)
...
[7/417] Building CXX object tools/clang/lib/Frontend/Rewrite/CMakeFiles/obj.clangRewriteFrontend.dir/FixItRewriter.cpp.o
[8/417] Building CXX object tools/clang/lib/Tooling/Inclusions/CMakeFiles/obj.clangToolingInclusions.dir/IncludeStyle.cpp.o
[9/417] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/APSIntType.cpp.o
[10/417] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/BlockCounter.cpp.o
[11/417] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CommonBugCategories.cpp.o
[12/417] Linking CXX static library lib/libclangSema.a
[13/417] Linking CXX static library lib/libclangParse.a
[14/417] Linking CXX static library lib/libclangSerialization.a
[15/417] Building CXX object tools/clang/lib/InstallAPI/CMakeFiles/obj.clangInstallAPI.dir/DiagnosticBuilderWrappers.cpp.o
[16/417] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DCLANG_EXPORTS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:35:10: error: returning address of local temporary object [-Werror,-Wreturn-stack-address]
   35 |   return {
      |          ^
   36 |       options::OPT_fsanitize_EQ,      // -fsanitize
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       options::OPT_fcf_protection_EQ, // -fcf-protection
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   38 |       options::OPT_fprofile_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   39 |       options::OPT_fprofile_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   40 |       options::OPT_fno_profile_generate, // -f[no-]profile-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   41 |       options::OPT_ftest_coverage,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   42 |       options::OPT_fno_test_coverage, // -f[no-]test-coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   43 |       options::OPT_fcoverage_mapping,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   44 |       options::OPT_fno_coverage_mapping, // -f[no-]coverage-mapping
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   45 |       options::OPT_coverage,             // --coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   46 |       options::OPT_fprofile_instr_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   47 |       options::OPT_fprofile_instr_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   48 |       options::OPT_fno_profile_instr_generate, // -f[no-]profile-instr-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   49 |       options::OPT_fprofile_arcs,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   50 |       options::OPT_fno_profile_arcs, // -f[no-]profile-arcs
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:8:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.h:27:17: error: private field 'D' is not used [-Werror,-Wunused-private-field]
   27 |   const Driver &D;
      |                 ^
Step 10 (build compiler-rt debug) failure: build compiler-rt debug (failure)
...
[4003/5366] Building CXX object tools/clang/lib/InstallAPI/CMakeFiles/obj.clangInstallAPI.dir/Library.cpp.o
[4004/5366] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/APSIntType.cpp.o
[4005/5366] Building CXX object tools/clang/lib/Index/CMakeFiles/obj.clangIndex.dir/IndexingAction.cpp.o
[4006/5366] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/AnalyzerOptions.cpp.o
[4007/5366] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/BasicValueFactory.cpp.o
[4008/5366] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/BlockCounter.cpp.o
[4009/5366] Building CXX object tools/clang/lib/Index/CMakeFiles/obj.clangIndex.dir/IndexTypeSourceInfo.cpp.o
[4010/5366] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/AnalysisManager.cpp.o
[4011/5366] Building RISCVGenGlobalISel.inc...
[4012/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DCLANG_EXPORTS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:35:10: error: returning address of local temporary object [-Werror,-Wreturn-stack-address]
   35 |   return {
      |          ^
   36 |       options::OPT_fsanitize_EQ,      // -fsanitize
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       options::OPT_fcf_protection_EQ, // -fcf-protection
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   38 |       options::OPT_fprofile_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   39 |       options::OPT_fprofile_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   40 |       options::OPT_fno_profile_generate, // -f[no-]profile-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   41 |       options::OPT_ftest_coverage,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   42 |       options::OPT_fno_test_coverage, // -f[no-]test-coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   43 |       options::OPT_fcoverage_mapping,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   44 |       options::OPT_fno_coverage_mapping, // -f[no-]coverage-mapping
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   45 |       options::OPT_coverage,             // --coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   46 |       options::OPT_fprofile_instr_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   47 |       options::OPT_fprofile_instr_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   48 |       options::OPT_fno_profile_instr_generate, // -f[no-]profile-instr-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   49 |       options::OPT_fprofile_arcs,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   50 |       options::OPT_fno_profile_arcs, // -f[no-]profile-arcs
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:8:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.h:27:17: error: private field 'D' is not used [-Werror,-Wunused-private-field]
   27 |   const Driver &D;
      |                 ^
Step 11 (test compiler-rt debug) failure: test compiler-rt debug (failure)
...
[241/843] Linking CXX static library lib/libLLVMX86Desc.a
[242/843] Linking CXX static library lib/libLLVMX86CodeGen.a
[243/843] Linking CXX static library lib/libLLVMX86AsmParser.a
[244/843] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CheckerHelpers.cpp.o
[245/843] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CoreEngine.cpp.o
[246/843] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/ExprEngine.cpp.o
[247/843] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CheckerContext.cpp.o
[248/843] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/ExplodedGraph.cpp.o
[249/843] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CheckerManager.cpp.o
[250/843] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DCLANG_EXPORTS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:35:10: error: returning address of local temporary object [-Werror,-Wreturn-stack-address]
   35 |   return {
      |          ^
   36 |       options::OPT_fsanitize_EQ,      // -fsanitize
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       options::OPT_fcf_protection_EQ, // -fcf-protection
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   38 |       options::OPT_fprofile_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   39 |       options::OPT_fprofile_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   40 |       options::OPT_fno_profile_generate, // -f[no-]profile-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   41 |       options::OPT_ftest_coverage,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   42 |       options::OPT_fno_test_coverage, // -f[no-]test-coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   43 |       options::OPT_fcoverage_mapping,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   44 |       options::OPT_fno_coverage_mapping, // -f[no-]coverage-mapping
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   45 |       options::OPT_coverage,             // --coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   46 |       options::OPT_fprofile_instr_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   47 |       options::OPT_fprofile_instr_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   48 |       options::OPT_fno_profile_instr_generate, // -f[no-]profile-instr-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   49 |       options::OPT_fprofile_arcs,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   50 |       options::OPT_fno_profile_arcs, // -f[no-]profile-arcs
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:8:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.h:27:17: error: private field 'D' is not used [-Werror,-Wunused-private-field]
   27 |   const Driver &D;
      |                 ^
Step 12 (build compiler-rt tsan_debug) failure: build compiler-rt tsan_debug (failure)
...
[4011/5347] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/GISel/AArch64PostLegalizerLowering.cpp.o
[4012/5347] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/GISel/AArch64PostSelectOptimize.cpp.o
[4013/5347] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/GISel/AArch64RegisterBankInfo.cpp.o
[4014/5347] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64A57FPLoadBalancing.cpp.o
[4015/5347] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64AdvSIMDScalarPass.cpp.o
[4016/5347] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64Arm64ECCallLowering.cpp.o
[4017/5347] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64AsmPrinter.cpp.o
[4018/5347] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64BranchTargets.cpp.o
[4019/5347] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64CallingConvention.cpp.o
[4020/5347] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DCLANG_EXPORTS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:35:10: error: returning address of local temporary object [-Werror,-Wreturn-stack-address]
   35 |   return {
      |          ^
   36 |       options::OPT_fsanitize_EQ,      // -fsanitize
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       options::OPT_fcf_protection_EQ, // -fcf-protection
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   38 |       options::OPT_fprofile_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   39 |       options::OPT_fprofile_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   40 |       options::OPT_fno_profile_generate, // -f[no-]profile-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   41 |       options::OPT_ftest_coverage,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   42 |       options::OPT_fno_test_coverage, // -f[no-]test-coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   43 |       options::OPT_fcoverage_mapping,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   44 |       options::OPT_fno_coverage_mapping, // -f[no-]coverage-mapping
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   45 |       options::OPT_coverage,             // --coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   46 |       options::OPT_fprofile_instr_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   47 |       options::OPT_fprofile_instr_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   48 |       options::OPT_fno_profile_instr_generate, // -f[no-]profile-instr-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   49 |       options::OPT_fprofile_arcs,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   50 |       options::OPT_fno_profile_arcs, // -f[no-]profile-arcs
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:8:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.h:27:17: error: private field 'D' is not used [-Werror,-Wunused-private-field]
   27 |   const Driver &D;
      |                 ^
Step 13 (build compiler-rt default) failure: build compiler-rt default (failure)
...
[4261/5366] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/ErrnoChecker.cpp.o
[4262/5366] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/IvarInvalidationChecker.cpp.o
[4263/5366] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/MismatchedIteratorChecker.cpp.o
[4264/5366] Linking CXX static library lib/libLLVMHexagonCodeGen.a
[4265/5366] Linking CXX static library lib/libLLVMSparcCodeGen.a
[4266/5366] Linking CXX static library lib/libLLVMSystemZCodeGen.a
[4267/5366] Linking CXX static library lib/libLLVMVECodeGen.a
[4268/5366] Linking CXX static library lib/libLLVMLTO.a
[4269/5366] Building CXX object tools/lld/Common/CMakeFiles/lldCommon.dir/Args.cpp.o
[4270/5366] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DCLANG_EXPORTS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:35:10: error: returning address of local temporary object [-Werror,-Wreturn-stack-address]
   35 |   return {
      |          ^
   36 |       options::OPT_fsanitize_EQ,      // -fsanitize
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       options::OPT_fcf_protection_EQ, // -fcf-protection
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   38 |       options::OPT_fprofile_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   39 |       options::OPT_fprofile_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   40 |       options::OPT_fno_profile_generate, // -f[no-]profile-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   41 |       options::OPT_ftest_coverage,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   42 |       options::OPT_fno_test_coverage, // -f[no-]test-coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   43 |       options::OPT_fcoverage_mapping,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   44 |       options::OPT_fno_coverage_mapping, // -f[no-]coverage-mapping
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   45 |       options::OPT_coverage,             // --coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   46 |       options::OPT_fprofile_instr_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   47 |       options::OPT_fprofile_instr_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   48 |       options::OPT_fno_profile_instr_generate, // -f[no-]profile-instr-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   49 |       options::OPT_fprofile_arcs,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   50 |       options::OPT_fno_profile_arcs, // -f[no-]profile-arcs
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:8:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.h:27:17: error: private field 'D' is not used [-Werror,-Wunused-private-field]
   27 |   const Driver &D;
      |                 ^
Step 14 (test compiler-rt default) failure: test compiler-rt default (failure)
...
[99/571] Building InstallNameToolOpts.inc...
[100/571] Linking CXX static library lib/libclangParse.a
[101/571] Building BitcodeStripOpts.inc...
[102/571] Building Opts.inc...
[103/571] Building Opts.inc...
[104/571] Building StripOpts.inc...
[105/571] Linking CXX static library lib/libclangSerialization.a
[106/571] Linking CXX executable bin/llvm-cov
[107/571] Building CXX object tools/llvm-objcopy/CMakeFiles/llvm-objcopy.dir/llvm-objcopy-driver.cpp.o
[108/571] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DCLANG_EXPORTS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/SYCL.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:35:10: error: returning address of local temporary object [-Werror,-Wreturn-stack-address]
   35 |   return {
      |          ^
   36 |       options::OPT_fsanitize_EQ,      // -fsanitize
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       options::OPT_fcf_protection_EQ, // -fcf-protection
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   38 |       options::OPT_fprofile_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   39 |       options::OPT_fprofile_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   40 |       options::OPT_fno_profile_generate, // -f[no-]profile-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   41 |       options::OPT_ftest_coverage,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   42 |       options::OPT_fno_test_coverage, // -f[no-]test-coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   43 |       options::OPT_fcoverage_mapping,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   44 |       options::OPT_fno_coverage_mapping, // -f[no-]coverage-mapping
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   45 |       options::OPT_coverage,             // --coverage
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   46 |       options::OPT_fprofile_instr_generate,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   47 |       options::OPT_fprofile_instr_generate_EQ,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   48 |       options::OPT_fno_profile_instr_generate, // -f[no-]profile-instr-generate
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   49 |       options::OPT_fprofile_arcs,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   50 |       options::OPT_fno_profile_arcs, // -f[no-]profile-arcs
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.cpp:8:
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/SYCL.h:27:17: error: private field 'D' is not used [-Werror,-Wunused-private-field]
   27 |   const Driver &D;
      |                 ^
Step 15 (build standalone compiler-rt) failure: build standalone compiler-rt (failure)
...
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:12 (include)
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:22 (project):
  The CMAKE_C_COMPILER:

    /home/b/sanitizer-aarch64-linux/build/build_default/bin/clang

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:22 (project):
  The CMAKE_CXX_COMPILER:

    /home/b/sanitizer-aarch64-linux/build/build_default/bin/clang++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:22 (project):
  No CMAKE_ASM_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
ninja: Entering directory `compiler_rt_build'
ninja: error: loading 'build.ninja': No such file or directory

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 16 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
@@@BUILD_STEP test standalone compiler-rt@@@
ninja: Entering directory `compiler_rt_build'
ninja: error: loading 'build.ninja': No such file or directory

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

```

</details>

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


More information about the llvm-commits mailing list