[llvm] [flang] Fix REAL(10)/COMPLEX(10) component sizes in runtime type info (PR #192049)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 06:07:21 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 309 tests passed
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### flang-rt
<details>
<summary>flang-rt.Driver/derived-type-real10-assign.f90</summary>
```
Exit Code: 254
Command Output (stdout):
--
# RUN: at line 11
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/flang -L"/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/lib/x86_64-unknown-linux-gnu" /home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/test/Driver/derived-type-real10-assign.f90 -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/flang-rt/test/Driver/Output/derived-type-real10-assign.f90.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/flang -L/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/lib/x86_64-unknown-linux-gnu /home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/test/Driver/derived-type-real10-assign.f90 -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/flang-rt/test/Driver/Output/derived-type-real10-assign.f90.tmp
# .---command stderr------------
# | loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/test/Driver/derived-type-real10-assign.f90":44:3): 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/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelocation-model pic -pic-level 2 -pic-is-pie -target-cpu x86-64 -resource-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -mframe-pointer=all -o /tmp/lit-tmp-52gkdnzp/derived-type-real10-assign-2a5cab.o -x f95 /home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/test/Driver/derived-type-real10-assign.f90
# | #0 0x0000000009289148 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:880:13
# | #1 0x0000000009285fa1 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x0000000009289f61 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
# | #3 0x00007953d686c330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x00007953d68c5b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x00007953d686c27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x00007953d684f8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x00000000091f1d85 llvm::report_fatal_error(llvm::Twine const&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/ErrorHandling.cpp:137:5
# | #8 0x00000000091f1bc6 (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang+0x91f1bc6)
# | #9 0x0000000009661315 (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang+0x9661315)
# | #10 0x000000000a7922db getRegion /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include/mlir/IR/Operation.h:713:5
# | #11 0x000000000a7922db getBody /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include/mlir/IR/OpDefinition.h:907:44
# | #12 0x000000000a7922db mlir::Value getTypeDescriptor<mlir::ModuleOp>(mlir::ModuleOp, mlir::ConversionPatternRewriter&, mlir::Location, fir::RecordType, fir::FIRToLLVMPassOptions const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:1583:34
# | #13 0x000000000a7b0a68 mlir::Value EmboxCommonConversion<fir::cg::XEmboxOp>::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 /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:0:0
# | #14 0x000000000a7ae5a4 std::tuple<fir::BaseBoxType, mlir::Value, mlir::Value> EmboxCommonConversion<fir::cg::XEmboxOp>::consDescriptorPrefix<fir::cg::XEmboxOp>(fir::cg::XEmboxOp, mlir::Type, mlir::ConversionPatternRewriter&, unsigned int, mlir::ValueRange, mlir::ValueRange, mlir::Value, mlir::Type) const /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:0:0
# | #15 0x000000000a7acc50 getOperation /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include/mlir/IR/OpDefinition.h:112:38
# | #16 0x000000000a7acc50 getContext /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include/mlir/IR/OpDefinition.h:115:38
# | #17 0x000000000a7acc50 XEmboxOpConversion::matchAndRewrite(fir::cg::XEmboxOp, fir::cg::XEmboxOpAdaptor, mlir::ConversionPatternRewriter&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:2133:46
# | #18 0x000000000a7b0e24 _M_reset /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:317:12
# | #19 0x000000000a7b0e24 ~_Optional_payload /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:441:57
# | #20 0x000000000a7b0e24 ~_Optional_base /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:512:12
# | #21 0x000000000a7b0e24 llvm::LogicalResult mlir::ConversionPattern::dispatchTo1To1<fir::FIROpConversion<fir::cg::XEmboxOp>, fir::cg::XEmboxOp>(fir::FIROpConversion<fir::cg::XEmboxOp> const&, fir::cg::XEmboxOp, fir::cg::XEmboxOp::GenericAdaptor<llvm::ArrayRef<mlir::ValueRange>>, mlir::ConversionPatternRewriter&) /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include/mlir/Transforms/DialectConversion.h:1071:1
# | #22 0x000000000a7ac88a fir::FIROpConversion<fir::cg::XEmboxOp>::matchAndRewrite(mlir::Operation*, llvm::ArrayRef<mlir::ValueRange>, mlir::ConversionPatternRewriter&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Optimizer/CodeGen/FIROpPatterns.h:229:3
# | #23 0x000000000dc593b4 mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Transforms/Utils/DialectConversion.cpp:2416:10
# | #24 0x000000000dcad5b3 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Rewrite/PatternApplicator.cpp:223:13
# | #25 0x000000000dcad5b3 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) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
# | #26 0x000000000dca974a operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:0:12
# | #27 0x000000000dca974a executeAction<mlir::ApplyPatternAction, const mlir::Pattern &> /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/IR/MLIRContext.h:290:7
# | #28 0x000000000dca974a 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/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Rewrite/PatternApplicator.cpp:197:23
# | #29 0x000000000dc5b135 (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Transforms/Utils/DialectConversion.cpp:2615:7
# | #30 0x000000000dc5a81b mlir::OperationConverter::convert(mlir::Operation*, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Transforms/Utils/DialectConversion.cpp:0:0
# | #31 0x000000000dc5bbfe legalizeOperations<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Transforms/Utils/DialectConversion.cpp:3469:64)> /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Transforms/Utils/DialectConversion.cpp:3422:9
# | #32 0x000000000dc5bbfe mlir::OperationConverter::applyConversion(llvm::ArrayRef<mlir::Operation*>) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Transforms/Utils/DialectConversion.cpp:3469:26
# | #33 0x000000000dc6ba84 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Transforms/Utils/DialectConversion.cpp:4212:9
# | #34 0x000000000dc6ba84 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) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
# | #35 0x000000000dc61177 begin /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:276:45
# | #36 0x000000000dc61177 end /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:278:27
# | #37 0x000000000dc61177 ~SmallVector /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1229:46
# | #38 0x000000000dc61177 applyConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig, (anonymous namespace)::OpConversionMode) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Transforms/Utils/DialectConversion.cpp:4216:1
# | #39 0x000000000dc612be mlir::applyFullConversion(mlir::Operation*, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Transforms/Utils/DialectConversion.cpp:4249:3
# | #40 0x000000000a77561a (anonymous namespace)::FIRToLLVMLowering::runOnOperation() /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:4690:22
# | #41 0x00000000115def18 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:0:19
# | #42 0x00000000115def18 callback_fn<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:607:9)> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
# | #43 0x00000000115def18 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
# | #44 0x00000000115def18 executeAction<mlir::PassExecutionAction, mlir::Pass &> /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/IR/MLIRContext.h:290:7
# | #45 0x00000000115def18 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:606:23
# | #46 0x00000000115dfd06 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:688:9
# | #47 0x00000000115e71f2 mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:1123:3
# | #48 0x00000000115e6839 mlir::PassManager::run(mlir::Operation*) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:1097:0
# | #49 0x00000000092ea8f1 Fortran::frontend::CodeGenAction::generateLLVMIR() /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Frontend/FrontendActions.cpp:788:7
# | #50 0x00000000092ef650 Fortran::frontend::CodeGenAction::executeAction() /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Frontend/FrontendActions.cpp:0:5
# | #51 0x00000000092dfe5c setChecked /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:306:13
# | #52 0x00000000092dfe5c operator= /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:221:5
# | #53 0x00000000092dfe5c Error /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:198:11
# | #54 0x00000000092dfe5c Fortran::frontend::FrontendAction::execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Frontend/FrontendAction.cpp:124:10
# | #55 0x00000000092c6c62 getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #56 0x00000000092c6c62 operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #57 0x00000000092c6c62 Fortran::frontend::CompilerInstance::executeAction(Fortran::frontend::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Frontend/CompilerInstance.cpp:191:23
# | #58 0x00000000092e4c0c Fortran::frontend::executeCompilerInvocation(Fortran::frontend::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:237:25
# | #59 0x000000000755286c fc1_main(llvm::ArrayRef<char const*>, char const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/tools/flang-driver/fc1_main.cpp:90:13
# | #60 0x0000000007550a7a executeFC1Tool /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/tools/flang-driver/driver.cpp:67:12
# | #61 0x0000000007550a7a main /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/tools/flang-driver/driver.cpp:133:14
# | #62 0x00007953d68511ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #63 0x00007953d685128b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #64 0x000000000754f7a5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang+0x754f7a5)
# | flang-23: error: unable to execute command: Aborted
# | flang-23: error: flang frontend command failed with exit code -2 (use -v to see invocation)
# | flang version 23.0.0git (https://github.com/llvm/llvm-project 07faac3996bb02c8262f574303d49c9c307c5968)
# | Target: x86_64-unknown-linux-gnu
# | Thread model: posix
# | InstalledDir: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin
# | Build config: +assertions
# | flang-23: note: diagnostic msg:
# | ********************
# |
# | PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
# | Preprocessed source(s) and associated run script(s) are located at:
# | flang-23: note: diagnostic msg: /tmp/lit-tmp-52gkdnzp/derived-type-real10-assign-74a20d
# | flang-23: note: diagnostic msg: /tmp/lit-tmp-52gkdnzp/derived-type-real10-assign-74a20d.sh
# | flang-23: note: diagnostic msg:
# |
# | ********************
# `-----------------------------
# error: command failed with exit status: 254
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/192049
More information about the llvm-commits
mailing list