[flang-commits] [flang] [llvm] [Flang] Add mock flang driver (PR #203481)

LLVM Continuous Integration via flang-commits flang-commits at lists.llvm.org
Thu Jun 18 22:19:55 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vls` running on `linaro-g3-03` while building `flang,llvm,runtimes` at step 7 "ninja check 1".

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

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

```
Step 7 (ninja check 1) failure: stage 1 checked (failure)
...
[40/43] Linking CXX static library /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/lib/clang/23/lib/aarch64-unknown-linux-gnu/libclang_rt.xray-fdr.a
[41/43] Linking CXX static library /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/lib/clang/23/lib/aarch64-unknown-linux-gnu/libclang_rt.xray-basic.a
[42/43] Linking CXX static library /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/lib/clang/23/lib/aarch64-unknown-linux-gnu/libclang_rt.xray.a
[43/43] Linking CXX static library compiler-rt/lib/xray/tests/libRTXRay.test.aarch64.a
[729/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/IListNodeTest.cpp.o
[731/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/HashingTest.cpp.o
[732/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
[733/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/CoalescingBitVectorTest.cpp.o
[733/1590] cd /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/runtimes/runtimes-bins && /usr/local/bin/cmake --build /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/runtimes/runtimes-bins/ --target flang-rt-mod --config Release
ninja: error: unknown target 'flang-rt-mod'
FAILED: runtimes/CMakeFiles/flang-rt-mod /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/runtimes/CMakeFiles/flang-rt-mod 
cd /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/runtimes/runtimes-bins && /usr/local/bin/cmake --build /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/runtimes/runtimes-bins/ --target flang-rt-mod --config Release
[735/1590] Building CXX object tools/clang/unittests/Sema/CMakeFiles/SemaTests.dir/SemaNoloadLookupTest.cpp.o
[736/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/IntEqClassesTest.cpp.o
[737/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/IListTest.cpp.o
[738/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/Interleave.cpp.o
[739/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/ImmutableMapTest.cpp.o
[740/1590] Building CXX object tools/clang/unittests/ScalableStaticAnalysisFramework/CMakeFiles/ClangScalableAnalysisTests.dir/Analyses/CallGraph/CallGraphExtractorTest.cpp.o
[741/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/FunctionExtrasTest.cpp.o
[742/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/IListBaseTest.cpp.o
[743/1590] Building CXX object tools/clang/unittests/Interpreter/CMakeFiles/ClangReplInterpreterTests.dir/InterpreterExtensionsTest.cpp.o
[744/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/PackedVectorTest.cpp.o
[745/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/ImmutableSetTest.cpp.o
[746/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/PointerIntPairTest.cpp.o
[747/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/PointerSumTypeTest.cpp.o
[748/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/IntrusiveRefCntPtrTest.cpp.o
[749/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/PointerEmbeddedIntTest.cpp.o
[750/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/LazyAtomicPointerTest.cpp.o
[751/1590] Building CXX object examples/Kaleidoscope/Chapter5/CMakeFiles/Kaleidoscope-Ch5.dir/toy.cpp.o
[752/1590] Building CXX object examples/Kaleidoscope/Chapter4/CMakeFiles/Kaleidoscope-Ch4.dir/toy.cpp.o
[753/1590] Building CXX object examples/Kaleidoscope/Chapter6/CMakeFiles/Kaleidoscope-Ch6.dir/toy.cpp.o
[754/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/ImmutableListTest.cpp.o
[755/1590] Building CXX object tools/clang/unittests/Interpreter/CMakeFiles/ClangReplInterpreterTests.dir/CodeCompletionTest.cpp.o
[756/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/DynamicAPIntTest.cpp.o
[757/1590] Building CXX object examples/Kaleidoscope/Chapter7/CMakeFiles/Kaleidoscope-Ch7.dir/toy.cpp.o
[758/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/PagedVectorTest.cpp.o
[759/1590] Building CXX object tools/clang/unittests/Interpreter/CMakeFiles/ClangReplInterpreterTests.dir/InterpreterTest.cpp.o
[760/1590] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/TokenAnnotatorTest.cpp.o
[761/1590] Building CXX object tools/clang/unittests/Interpreter/CMakeFiles/ClangReplInterpreterTests.dir/IncrementalProcessingTest.cpp.o
[762/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/IntervalTreeTest.cpp.o
[763/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/APIntTest.cpp.o
[764/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/IntervalMapTest.cpp.o
[765/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/MappedIteratorTest.cpp.o
[766/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/DenseSetTest.cpp.o
[767/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/MapVectorTest.cpp.o
[768/1590] Building CXX object tools/clang/unittests/Sema/CMakeFiles/SemaTests.dir/HeuristicResolverTest.cpp.o
[769/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/IteratorTest.cpp.o
[770/1590] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/BitVectorTest.cpp.o
[771/1590] Building CXX object tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/AST/ASTImporterTest.cpp.o
Step 14 (test-suite) failure: test (failure)
******************** TEST 'test-suite :: Fortran/gfortran/regression/analyzer/gfortran-regression-compile-regression__analyzer__pr93777_f90.test' FAILED ********************

/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/sandbox/build/tools/timeit-target --timeout 7200 --limit-core 0 --limit-cpu 7200 --limit-file-size 209715200 --limit-rss-size 838860800 --redirect-input /dev/null --summary /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/sandbox/build/Fortran/gfortran/regression/analyzer/Output/gfortran-regression-compile-regression__analyzer__pr93777_f90.test.time /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/sandbox/build/Fortran/gfortran/regression/analyzer/../..//dummy
/usr/bin/diff /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/sandbox/build/Fortran/gfortran/regression/analyzer/../..//gfortran-compile-empty.reference.out /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/sandbox/build/Fortran/gfortran/regression/analyzer/gfortran-regression-compile-regression__analyzer__pr93777_f90.out
0a1,63
> loc("/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/test-suite/Fortran/gfortran/regression/analyzer/pr93777.f90":14:5): error: runtime derived type info descriptor was not generated and skipExternalRttiDefinition and ignoreMissingTypeDescriptors options are not set
> LLVM ERROR: aborting
> PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
> Stack dump:
> 0.	Program arguments: /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23 -fc1 -triple aarch64-unknown-linux-gnu -emit-obj -mrelocation-model pic -pic-level 2 -pic-is-pie -target-cpu neoverse-512tvb -target-feature +outline-atomics -target-feature +v8.4a -target-feature +aes -target-feature +bf16 -target-feature +ccdp -target-feature +ccidx -target-feature +ccpp -target-feature +complxnum -target-feature +crc -target-feature +dotprod -target-feature +fp-armv8 -target-feature +fp16fml -target-feature +fpac -target-feature +fullfp16 -target-feature +i8mm -target-feature +jsconv -target-feature +lse -target-feature +neon -target-feature +pauth -target-feature +perfmon -target-feature +rand -target-feature +ras -target-feature +rcpc -target-feature +rdm -target-feature +sha2 -target-feature +sha3 -target-feature +sm4 -target-feature +spe -target-feature +ssbs -target-feature +sve -mvscale-max=2 -mvscale-min=2 -vectorize-loops -vectorize-slp -fversion-loops-for-stride -module-dir /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/sandbox/build/Fortran/gfortran/regression/analyzer/gfortran-regression-compile-regression__analyzer__pr93777_f90.wd -resource-dir /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/lib/clang/23 -mframe-pointer=non-leaf-no-reserve -O3 -o pr93777.o -x f95 /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/test-suite/Fortran/gfortran/regression/analyzer/pr93777.f90
>  #0 0x0000c00e421061e0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x97961e0)
>  #1 0x0000c00e42103608 llvm::sys::RunSignalHandlers() (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x9793608)
>  #2 0x0000c00e4210708c SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
>  #3 0x0000e8249b11aa60 (linux-vdso.so.1+0xa60)
>  #4 0x0000e8249ac82008 __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
>  #5 0x0000e8249ac3a83c gsignal ./signal/../sysdeps/posix/raise.c:27:6
>  #6 0x0000e8249ac27134 abort ./stdlib/abort.c:81:7
>  #7 0x0000c00e4206e564 llvm::report_fatal_error(llvm::Twine const&, bool) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x96fe564)
>  #8 0x0000c00e4206e384 (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x96fe384)
>  #9 0x0000c00e424f56d4 (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x9b856d4)
> #10 0x0000c00e44fc1808 mlir::Value getTypeDescriptor<mlir::ModuleOp>(mlir::ModuleOp, mlir::ConversionPatternRewriter&, mlir::Location, fir::RecordType, fir::FIRToLLVMPassOptions const&) CodeGen.cpp:0:0
> #11 0x0000c00e44fc0b14 mlir::Value EmboxCommonConversion<fir::EmboxOp>::populateDescriptor<mlir::ModuleOp>(mlir::Location, mlir::ModuleOp, fir::BaseBoxType, mlir::Type, mlir::ConversionPatternRewriter&, unsigned int, mlir::Value, mlir::Value, mlir::Value, int, mlir::Value) const CodeGen.cpp:0:0
> #12 0x0000c00e44fbeff0 std::tuple<fir::BaseBoxType, mlir::Value, mlir::Value> EmboxCommonConversion<fir::EmboxOp>::consDescriptorPrefix<fir::EmboxOp>(fir::EmboxOp, mlir::Type, mlir::ConversionPatternRewriter&, unsigned int, mlir::ValueRange, mlir::ValueRange, mlir::Value, mlir::Type) const CodeGen.cpp:0:0
> #13 0x0000c00e44fbe964 EmboxOpConversion::matchAndRewrite(fir::EmboxOp, fir::EmboxOpAdaptor, mlir::ConversionPatternRewriter&) const CodeGen.cpp:0:0
> #14 0x0000c00e44fc2450 llvm::LogicalResult mlir::ConversionPattern::dispatchTo1To1<fir::FIROpConversion<fir::EmboxOp>, fir::EmboxOp>(fir::FIROpConversion<fir::EmboxOp> const&, fir::EmboxOp, fir::EmboxOp::GenericAdaptor<llvm::ArrayRef<mlir::ValueRange>>, mlir::ConversionPatternRewriter&) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0xc652450)
> #15 0x0000c00e44fbebd4 fir::FIROpConversion<fir::EmboxOp>::matchAndRewrite(fir::EmboxOp, fir::EmboxOpGenericAdaptor<llvm::ArrayRef<mlir::ValueRange>>, mlir::ConversionPatternRewriter&) const CodeGen.cpp:0:0
> #16 0x0000c00e44fbe6bc fir::FIROpConversion<fir::EmboxOp>::matchAndRewrite(mlir::Operation*, llvm::ArrayRef<mlir::ValueRange>, mlir::ConversionPatternRewriter&) const CodeGen.cpp:0:0
> #17 0x0000c00e4a4ed008 mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x11b7d008)
> #18 0x0000c00e4a5485b8 void llvm::function_ref<void ()>::callback_fn<mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>)::$_0>(long) PatternApplicator.cpp:0:0
> #19 0x0000c00e4a544f98 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x11bd4f98)
> #20 0x0000c00e4a4ee63c (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*) DialectConversion.cpp:0:0
> #21 0x0000c00e4a4ee224 mlir::OperationConverter::convert(mlir::Operation*, bool) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x11b7e224)
> #22 0x0000c00e4a4ef4a8 mlir::OperationConverter::applyConversion(llvm::ArrayRef<mlir::Operation*>) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x11b7f4a8)
> #23 0x0000c00e4a4fe9fc void llvm::function_ref<void ()>::callback_fn<applyConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig, (anonymous namespace)::OpConversionMode)::$_0>(long) DialectConversion.cpp:0:0
> #24 0x0000c00e4a4f462c applyConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig, (anonymous namespace)::OpConversionMode) DialectConversion.cpp:0:0
> #25 0x0000c00e4a4f47b8 mlir::applyFullConversion(mlir::Operation*, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x11b847b8)
> #26 0x0000c00e44fa6730 (anonymous namespace)::FIRToLLVMLowering::runOnOperation() CodeGen.cpp:0:0
> #27 0x0000c00e4a67e8c8 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x11d0e8c8)
> #28 0x0000c00e4a67f5f8 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x11d0f5f8)
> #29 0x0000c00e4a685ea0 mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x11d15ea0)
> #30 0x0000c00e4a685714 mlir::PassManager::run(mlir::Operation*) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x11d15714)
> #31 0x0000c00e4216449c Fortran::frontend::CodeGenAction::generateLLVMIR() (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x97f449c)
> #32 0x0000c00e42167e94 Fortran::frontend::CodeGenAction::executeAction() (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x97f7e94)
> #33 0x0000c00e4215a44c Fortran::frontend::FrontendAction::execute() (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x97ea44c)
> #34 0x0000c00e4214287c Fortran::frontend::CompilerInstance::executeAction(Fortran::frontend::FrontendAction&) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x97d287c)
> #35 0x0000c00e4215f200 Fortran::frontend::executeCompilerInvocation(Fortran::frontend::CompilerInstance*) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x97ef200)
> #36 0x0000c00e405cc99c fc1_main(llvm::ArrayRef<char const*>, char const*) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x7c5c99c)
> #37 0x0000c00e405caf78 main (/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1.install/bin/flang-23+0x7c5af78)
> #38 0x0000e8249ac27400 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
> #39 0x0000e8249ac274d8 call_init ./csu/../csu/libc-start.c:128:20
...

```

</details>

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


More information about the flang-commits mailing list