[flang-commits] [flang] [flang][OpenACC] Support acc routine info on ProcEntityDetails for separate compilation (PR #192367)
via flang-commits
flang-commits at lists.llvm.org
Thu Apr 16 16:46:21 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
The build failed before running any tests. Click on a failure below to see the details.
<details>
<summary>tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/resolve-directives.cpp.o</summary>
```
FAILED: tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/resolve-directives.cpp.o
sccache /opt/llvm/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/lib/Semantics -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/include -gmlt -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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/resolve-directives.cpp.o -MF tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/resolve-directives.cpp.o.d -o tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/resolve-directives.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1487:3: error: add explicit braces to avoid dangling else [-Werror,-Wdangling-else]
1487 | else
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1491:1: error: extraneous closing brace ('}')
1491 | }
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1493:6: error: use of undeclared identifier 'AccAttributeVisitor'; did you mean 'Fortran::semantics::AccAttributeVisitor'?
1493 | bool AccAttributeVisitor::Pre(const parser::OpenACCRoutineConstruct &x) {
| ^~~~~~~~~~~~~~~~~~~
| Fortran::semantics::AccAttributeVisitor
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:186:7: note: 'Fortran::semantics::AccAttributeVisitor' declared here
186 | class AccAttributeVisitor : DirectiveAttributeVisitor<llvm::acc::Directive> {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1493:6: error: use of undeclared identifier 'AccAttributeVisitor'; did you mean 'Fortran::semantics::AccAttributeVisitor'?
1493 | bool AccAttributeVisitor::Pre(const parser::OpenACCRoutineConstruct &x) {
| ^~~~~~~~~~~~~~~~~~~
| Fortran::semantics::AccAttributeVisitor
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:186:7: note: 'Fortran::semantics::AccAttributeVisitor' declared here
186 | class AccAttributeVisitor : DirectiveAttributeVisitor<llvm::acc::Directive> {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1518:6: error: use of undeclared identifier 'AccAttributeVisitor'; did you mean 'Fortran::semantics::AccAttributeVisitor'?
1518 | bool AccAttributeVisitor::Pre(const parser::AccBindClause &x) {
| ^~~~~~~~~~~~~~~~~~~
| Fortran::semantics::AccAttributeVisitor
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:186:7: note: 'Fortran::semantics::AccAttributeVisitor' declared here
186 | class AccAttributeVisitor : DirectiveAttributeVisitor<llvm::acc::Directive> {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1518:6: error: use of undeclared identifier 'AccAttributeVisitor'; did you mean 'Fortran::semantics::AccAttributeVisitor'?
1518 | bool AccAttributeVisitor::Pre(const parser::AccBindClause &x) {
| ^~~~~~~~~~~~~~~~~~~
| Fortran::semantics::AccAttributeVisitor
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:186:7: note: 'Fortran::semantics::AccAttributeVisitor' declared here
186 | class AccAttributeVisitor : DirectiveAttributeVisitor<llvm::acc::Directive> {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1529:6: error: use of undeclared identifier 'AccAttributeVisitor'; did you mean 'Fortran::semantics::AccAttributeVisitor'?
1529 | bool AccAttributeVisitor::Pre(const parser::OpenACCCombinedConstruct &x) {
| ^~~~~~~~~~~~~~~~~~~
| Fortran::semantics::AccAttributeVisitor
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:186:7: note: 'Fortran::semantics::AccAttributeVisitor' declared here
186 | class AccAttributeVisitor : DirectiveAttributeVisitor<llvm::acc::Directive> {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1529:6: error: use of undeclared identifier 'AccAttributeVisitor'; did you mean 'Fortran::semantics::AccAttributeVisitor'?
1529 | bool AccAttributeVisitor::Pre(const parser::OpenACCCombinedConstruct &x) {
| ^~~~~~~~~~~~~~~~~~~
| Fortran::semantics::AccAttributeVisitor
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:186:7: note: 'Fortran::semantics::AccAttributeVisitor' declared here
186 | class AccAttributeVisitor : DirectiveAttributeVisitor<llvm::acc::Directive> {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1550:35: error: use of undeclared identifier 'parser'; did you mean 'Fortran::parser'?
1550 | static bool IsLastNameArray(const parser::Designator &designator) {
| ^~~~~~
| Fortran::parser
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Parser/openmp-utils.h:30:20: note: 'Fortran::parser' declared here
30 | namespace Fortran::parser::omp {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1552:9: error: use of undeclared identifier 'evaluate'; did you mean 'Fortran::evaluate'?
1552 | const evaluate::DataRef dataRef{*(name.symbol)};
| ^~~~~~~~
| Fortran::evaluate
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Semantics/expression.h:69:20: note: 'Fortran::evaluate' declared here
69 | namespace Fortran::evaluate {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1553:10: error: use of undeclared identifier 'common'; did you mean 'Fortran::common'?
1553 | return common::visit( //
| ^~~~~~
| Fortran::common
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Semantics/semantics.h:31:20: note: 'Fortran::common' declared here
31 | namespace Fortran::common {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1554:7: error: use of undeclared identifier 'common'; did you mean 'Fortran::common'?
1554 | common::visitors{
| ^~~~~~
| Fortran::common
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Semantics/semantics.h:31:20: note: 'Fortran::common' declared here
31 | namespace Fortran::common {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1555:20: error: use of undeclared identifier 'evaluate'; did you mean 'Fortran::evaluate'?
1555 | [](const evaluate::SymbolRef &ref) {
| ^~~~~~~~
| Fortran::evaluate
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Semantics/expression.h:69:20: note: 'Fortran::evaluate' declared here
69 | namespace Fortran::evaluate {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1557:47: error: use of undeclared identifier 'DeclTypeSpec'; did you mean 'Fortran::semantics::DeclTypeSpec'?
1557 | ref->GetType()->category() == DeclTypeSpec::Numeric;
| ^~~~~~~~~~~~
| Fortran::semantics::DeclTypeSpec
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Semantics/tools.h:30:7: note: 'Fortran::semantics::DeclTypeSpec' declared here
30 | class DeclTypeSpec;
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1559:20: error: use of undeclared identifier 'evaluate'; did you mean 'Fortran::evaluate'?
1559 | [](const evaluate::ArrayRef &aref) {
| ^~~~~~~~
| Fortran::evaluate
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include/flang/Semantics/expression.h:69:20: note: 'Fortran::evaluate' declared here
69 | namespace Fortran::evaluate {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1568:6: error: use of undeclared identifier 'AccAttributeVisitor'; did you mean 'Fortran::semantics::AccAttributeVisitor'?
1568 | void AccAttributeVisitor::AllowOnlyArrayAndSubArray(
| ^~~~~~~~~~~~~~~~~~~
| Fortran::semantics::AccAttributeVisitor
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:186:7: note: 'Fortran::semantics::AccAttributeVisitor' declared here
186 | class AccAttributeVisitor : DirectiveAttributeVisitor<llvm::acc::Directive> {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1568:6: error: use of undeclared identifier 'AccAttributeVisitor'; did you mean 'Fortran::semantics::AccAttributeVisitor'?
1568 | void AccAttributeVisitor::AllowOnlyArrayAndSubArray(
| ^~~~~~~~~~~~~~~~~~~
| Fortran::semantics::AccAttributeVisitor
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:186:7: note: 'Fortran::semantics::AccAttributeVisitor' declared here
186 | class AccAttributeVisitor : DirectiveAttributeVisitor<llvm::acc::Directive> {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1595:6: error: use of undeclared identifier 'AccAttributeVisitor'; did you mean 'Fortran::semantics::AccAttributeVisitor'?
1595 | void AccAttributeVisitor::DoNotAllowAssumedSizedArray(
| ^~~~~~~~~~~~~~~~~~~
| Fortran::semantics::AccAttributeVisitor
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:186:7: note: 'Fortran::semantics::AccAttributeVisitor' declared here
186 | class AccAttributeVisitor : DirectiveAttributeVisitor<llvm::acc::Directive> {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:1595:6: error: use of undeclared identifier 'AccAttributeVisitor'; did you mean 'Fortran::semantics::AccAttributeVisitor'?
1595 | void AccAttributeVisitor::DoNotAllowAssumedSizedArray(
| ^~~~~~~~~~~~~~~~~~~
| Fortran::semantics::AccAttributeVisitor
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Semantics/resolve-directives.cpp:186:7: note: 'Fortran::semantics::AccAttributeVisitor' declared here
186 | class AccAttributeVisitor : DirectiveAttributeVisitor<llvm::acc::Directive> {
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
```
</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/192367
More information about the flang-commits
mailing list