[llvm] [SPIRV] Do not use OpTypeRuntimeArray in Kernel env. (PR #149522)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 06:30:00 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-android` running on `sanitizer-buildbot-android` while building `llvm` at step 2 "annotate".

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

<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)
...
[3582/5577] Copying clang's cuda_wrappers/bits/c++config.h...
[3583/5577] Copying clang's cuda_wrappers/bits/basic_string.h...
[3584/5577] Copying clang's cuda_wrappers/bits/shared_ptr_base.h...
[3585/5577] Copying clang's ppc_wrappers/xmmintrin.h...
[3586/5577] Copying clang's ppc_wrappers/emmintrin.h...
[3587/5577] Copying clang's cuda_wrappers/bits/basic_string.tcc...
[3588/5577] Copying clang's ppc_wrappers/mmintrin.h...
[3589/5577] Copying clang's cuda_wrappers/__utility/declval.h...
[3590/5577] Copying clang's ppc_wrappers/pmmintrin.h...
[3591/5577] Building CXX object lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVModuleAnalysis.cpp.o
FAILED: lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVModuleAnalysis.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build0/bin/clang++ -DEXPERIMENTAL_KEY_INSTRUCTIONS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__SHORT_FILE__=\"SPIRVModuleAnalysis.cpp\" -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/Target/SPIRV -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Target/SPIRV -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/include -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/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 -O3 -DNDEBUG -std=c++17 -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVModuleAnalysis.cpp.o -MF lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVModuleAnalysis.cpp.o.d -o lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVModuleAnalysis.cpp.o -c /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp:1879:3: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
 1879 |   default:
      |   ^
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp:1879:3: note: insert 'break;' to avoid fall-through
 1879 |   default:
      |   ^
      |   break; 
1 error generated.
[3592/5577] Copying clang's ppc_wrappers/mm_malloc.h...
[3593/5577] Copying clang's ppc_wrappers/nmmintrin.h...
[3594/5577] Copying clang's ppc_wrappers/tmmintrin.h...
[3595/5577] Copying clang's ppc_wrappers/smmintrin.h...
[3596/5577] Copying clang's ppc_wrappers/bmiintrin.h...
[3597/5577] Copying clang's ppc_wrappers/bmi2intrin.h...
[3598/5577] Copying clang's ppc_wrappers/immintrin.h...
[3599/5577] Copying clang's ppc_wrappers/x86intrin.h...
[3600/5577] Building CXX object lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVGlobalRegistry.cpp.o
[3601/5577] Building X86GenSubtargetInfo.inc...
[3602/5577] Building X86GenInstrInfo.inc...
[3603/5577] Building InstCombineTables.inc...
[3604/5577] Building CXX object lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVEmitIntrinsics.cpp.o
ninja: build stopped: subcommand failed.

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


@@@STEP_FAILURE@@@

@@@STEP_FAILURE@@@

@@@STEP_FAILURE@@@
Step 8 (bootstrap clang) failure: bootstrap clang (failure)
...
[3582/5577] Copying clang's cuda_wrappers/bits/c++config.h...
[3583/5577] Copying clang's cuda_wrappers/bits/basic_string.h...
[3584/5577] Copying clang's cuda_wrappers/bits/shared_ptr_base.h...
[3585/5577] Copying clang's ppc_wrappers/xmmintrin.h...
[3586/5577] Copying clang's ppc_wrappers/emmintrin.h...
[3587/5577] Copying clang's cuda_wrappers/bits/basic_string.tcc...
[3588/5577] Copying clang's ppc_wrappers/mmintrin.h...
[3589/5577] Copying clang's cuda_wrappers/__utility/declval.h...
[3590/5577] Copying clang's ppc_wrappers/pmmintrin.h...
[3591/5577] Building CXX object lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVModuleAnalysis.cpp.o
FAILED: lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVModuleAnalysis.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build0/bin/clang++ -DEXPERIMENTAL_KEY_INSTRUCTIONS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__SHORT_FILE__=\"SPIRVModuleAnalysis.cpp\" -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/Target/SPIRV -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Target/SPIRV -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/include -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/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 -O3 -DNDEBUG -std=c++17 -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVModuleAnalysis.cpp.o -MF lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVModuleAnalysis.cpp.o.d -o lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVModuleAnalysis.cpp.o -c /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp:1879:3: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
 1879 |   default:
      |   ^
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp:1879:3: note: insert 'break;' to avoid fall-through
 1879 |   default:
      |   ^
      |   break; 
1 error generated.
[3592/5577] Copying clang's ppc_wrappers/mm_malloc.h...
[3593/5577] Copying clang's ppc_wrappers/nmmintrin.h...
[3594/5577] Copying clang's ppc_wrappers/tmmintrin.h...
[3595/5577] Copying clang's ppc_wrappers/smmintrin.h...
[3596/5577] Copying clang's ppc_wrappers/bmiintrin.h...
[3597/5577] Copying clang's ppc_wrappers/bmi2intrin.h...
[3598/5577] Copying clang's ppc_wrappers/immintrin.h...
[3599/5577] Copying clang's ppc_wrappers/x86intrin.h...
[3600/5577] Building CXX object lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVGlobalRegistry.cpp.o
[3601/5577] Building X86GenSubtargetInfo.inc...
[3602/5577] Building X86GenInstrInfo.inc...
[3603/5577] Building InstCombineTables.inc...
[3604/5577] Building CXX object lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVEmitIntrinsics.cpp.o
ninja: build stopped: subcommand failed.

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




program finished with exit code 2
elapsedTime=157.588592

```

</details>

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


More information about the llvm-commits mailing list