[clang] [amdgpu-arch] Replace use of HSA with reading sysfs directly (PR #116651)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 19 05:10:26 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot8` while building `clang` at step 2 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/6547
<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)
...
[4584/5342] Linking CXX executable bin/obj2yaml
[4585/5342] Generating ../../bin/llvm-addr2line
[4586/5342] Linking CXX executable bin/verify-uselistorder
[4587/5342] Linking CXX executable bin/sanstats
[4588/5342] Linking CXX executable bin/llvm-readobj
[4589/5342] Generating ../../bin/llvm-readelf
[4590/5342] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/ClangInstallAPI.cpp.o
[4591/5342] Building X86GenDAGISel.inc...
[4592/5342] Building CXX object tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArch.cpp.o
[4593/5342] Building CXX object tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o
FAILED: tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -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/tools/amdgpu-arch -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch -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/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o -MF tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o.d -o tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch/AMDGPUArchByKFD.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch/AMDGPUArchByKFD.cpp:58:9: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
58 | Line.drop_while([](char C) { return std::isspace(C); });
| ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[4594/5342] Building X86GenSubtargetInfo.inc...
[4595/5342] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
[4596/5342] Building RISCVGenInstrInfo.inc...
[4597/5342] Building RISCVGenGlobalISel.inc...
[4598/5342] Building X86GenInstrInfo.inc...
[4599/5342] Building AMDGPUGenGlobalISel.inc...
[4600/5342] Building AMDGPUGenAsmMatcher.inc...
[4601/5342] Building AMDGPUGenInstrInfo.inc...
[4602/5342] Building RISCVGenDAGISel.inc...
[4603/5342] Building AMDGPUGenAsmWriter.inc...
[4604/5342] Building AMDGPUGenDAGISel.inc...
[4605/5342] Building AMDGPUGenRegisterBank.inc...
[4606/5342] Building AMDGPUGenRegisterInfo.inc...
[4607/5342] Building RISCVGenSubtargetInfo.inc...
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
@@@STEP_FAILURE@@@
@@@BUILD_STEP test compiler-rt symbolizer@@@
ninja: Entering directory `build_default'
[1/490] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVAsmPrinter.cpp.o
[2/490] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVCallingConv.cpp.o
[3/490] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVCodeGenPrepare.cpp.o
[4/490] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVConstantPoolValue.cpp.o
[5/490] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVDeadRegisterDefinitions.cpp.o
[6/490] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVMakeCompressible.cpp.o
[7/490] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVExpandAtomicPseudoInsts.cpp.o
[8/490] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVFrameLowering.cpp.o
[9/490] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVInsertReadWriteCSR.cpp.o
[10/490] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVInsertWriteVXRM.cpp.o
[11/490] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVInstrInfo.cpp.o
[12/490] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVLandingPadSetup.cpp.o
Step 8 (build compiler-rt symbolizer) failure: build compiler-rt symbolizer (failure)
...
[4584/5342] Linking CXX executable bin/obj2yaml
[4585/5342] Generating ../../bin/llvm-addr2line
[4586/5342] Linking CXX executable bin/verify-uselistorder
[4587/5342] Linking CXX executable bin/sanstats
[4588/5342] Linking CXX executable bin/llvm-readobj
[4589/5342] Generating ../../bin/llvm-readelf
[4590/5342] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/ClangInstallAPI.cpp.o
[4591/5342] Building X86GenDAGISel.inc...
[4592/5342] Building CXX object tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArch.cpp.o
[4593/5342] Building CXX object tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o
FAILED: tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -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/tools/amdgpu-arch -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch -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/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o -MF tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o.d -o tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch/AMDGPUArchByKFD.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch/AMDGPUArchByKFD.cpp:58:9: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
58 | Line.drop_while([](char C) { return std::isspace(C); });
| ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[4594/5342] Building X86GenSubtargetInfo.inc...
[4595/5342] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
[4596/5342] Building RISCVGenInstrInfo.inc...
[4597/5342] Building RISCVGenGlobalISel.inc...
[4598/5342] Building X86GenInstrInfo.inc...
[4599/5342] Building AMDGPUGenGlobalISel.inc...
[4600/5342] Building AMDGPUGenAsmMatcher.inc...
[4601/5342] Building AMDGPUGenInstrInfo.inc...
[4602/5342] Building RISCVGenDAGISel.inc...
[4603/5342] Building AMDGPUGenAsmWriter.inc...
[4604/5342] Building AMDGPUGenDAGISel.inc...
[4605/5342] Building AMDGPUGenRegisterBank.inc...
[4606/5342] Building AMDGPUGenRegisterInfo.inc...
[4607/5342] Building RISCVGenSubtargetInfo.inc...
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 10 (build compiler-rt debug) failure: build compiler-rt debug (failure)
...
[4586/5342] Linking CXX executable bin/llvm-xray
[4587/5342] Linking CXX executable bin/sanstats
[4588/5342] Linking CXX executable bin/obj2yaml
[4589/5342] Linking CXX executable bin/llvm-extract
[4590/5342] Linking CXX executable bin/verify-uselistorder
[4591/5342] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/ClangInstallAPI.cpp.o
[4592/5342] Linking CXX executable bin/lli
[4593/5342] Building X86GenSubtargetInfo.inc...
[4594/5342] Building RISCVGenInstrInfo.inc...
[4595/5342] Building CXX object tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o
FAILED: tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -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/tools/amdgpu-arch -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch -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/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o -MF tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o.d -o tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch/AMDGPUArchByKFD.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch/AMDGPUArchByKFD.cpp:58:9: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
58 | Line.drop_while([](char C) { return std::isspace(C); });
| ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[4596/5342] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
[4597/5342] Building RISCVGenGlobalISel.inc...
[4598/5342] Building X86GenInstrInfo.inc...
[4599/5342] Building RISCVGenDAGISel.inc...
[4600/5342] Building AMDGPUGenAsmWriter.inc...
[4601/5342] Building AMDGPUGenGlobalISel.inc...
[4602/5342] Building AMDGPUGenDAGISel.inc...
[4603/5342] Building AMDGPUGenAsmMatcher.inc...
[4604/5342] Building AMDGPUGenInstrInfo.inc...
[4605/5342] Building AMDGPUGenRegisterBank.inc...
[4606/5342] Building RISCVGenSubtargetInfo.inc...
[4607/5342] Building AMDGPUGenRegisterInfo.inc...
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 12 (build compiler-rt tsan_debug) failure: build compiler-rt tsan_debug (failure)
...
[4565/5323] Generating ../../bin/llvm-readelf
[4566/5323] Linking CXX executable bin/llvm-symbolizer
[4567/5323] Linking CXX executable bin/yaml2obj
[4568/5323] Building CXX object tools/clang/lib/Interpreter/CMakeFiles/obj.clangInterpreter.dir/Interpreter.cpp.o
[4569/5323] Generating ../../bin/llvm-addr2line
[4570/5323] Linking CXX executable bin/llvm-xray
[4571/5323] Linking CXX executable bin/obj2yaml
[4572/5323] Linking CXX executable bin/sanstats
[4573/5323] Linking CXX executable bin/verify-uselistorder
[4574/5323] Building CXX object tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o
FAILED: tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -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/tools/amdgpu-arch -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch -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/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o -MF tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o.d -o tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch/AMDGPUArchByKFD.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch/AMDGPUArchByKFD.cpp:58:9: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
58 | Line.drop_while([](char C) { return std::isspace(C); });
| ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[4575/5323] Building X86GenSubtargetInfo.inc...
[4576/5323] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
[4577/5323] Building RISCVGenInstrInfo.inc...
[4578/5323] Building RISCVGenGlobalISel.inc...
[4579/5323] Building X86GenInstrInfo.inc...
[4580/5323] Building AMDGPUGenAsmWriter.inc...
[4581/5323] Building AMDGPUGenDAGISel.inc...
[4582/5323] Building RISCVGenDAGISel.inc...
[4583/5323] Building AMDGPUGenAsmMatcher.inc...
[4584/5323] Building AMDGPUGenRegisterBank.inc...
[4585/5323] Building AMDGPUGenInstrInfo.inc...
[4586/5323] Building AMDGPUGenGlobalISel.inc...
[4587/5323] Building AMDGPUGenRegisterInfo.inc...
[4588/5323] Building RISCVGenSubtargetInfo.inc...
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 13 (build compiler-rt default) failure: build compiler-rt default (failure)
...
[4586/5342] Generating ../../bin/llvm-readelf
[4587/5342] Generating ../../bin/llvm-addr2line
[4588/5342] Linking CXX executable bin/verify-uselistorder
[4589/5342] Linking CXX executable bin/sanstats
[4590/5342] Linking CXX executable bin/obj2yaml
[4591/5342] Building X86GenSubtargetInfo.inc...
[4592/5342] Linking CXX executable bin/lli
[4593/5342] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/ClangInstallAPI.cpp.o
[4594/5342] Building RISCVGenInstrInfo.inc...
[4595/5342] Building CXX object tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o
FAILED: tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -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/tools/amdgpu-arch -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch -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/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o -MF tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o.d -o tools/clang/tools/amdgpu-arch/CMakeFiles/amdgpu-arch.dir/AMDGPUArchByKFD.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch/AMDGPUArchByKFD.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/amdgpu-arch/AMDGPUArchByKFD.cpp:58:9: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
58 | Line.drop_while([](char C) { return std::isspace(C); });
| ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[4596/5342] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
[4597/5342] Building X86GenInstrInfo.inc...
[4598/5342] Building RISCVGenGlobalISel.inc...
[4599/5342] Building RISCVGenDAGISel.inc...
[4600/5342] Building AMDGPUGenAsmWriter.inc...
[4601/5342] Building AMDGPUGenAsmMatcher.inc...
[4602/5342] Building AMDGPUGenGlobalISel.inc...
[4603/5342] Building AMDGPUGenDAGISel.inc...
[4604/5342] Building AMDGPUGenInstrInfo.inc...
[4605/5342] Building AMDGPUGenRegisterBank.inc...
[4606/5342] Building RISCVGenSubtargetInfo.inc...
[4607/5342] Building AMDGPUGenRegisterInfo.inc...
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
```
</details>
https://github.com/llvm/llvm-project/pull/116651
More information about the cfe-commits
mailing list