Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Mar 2025 13:08:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 285195] devel/llvm15: FLANG -Wmissing-template-arg-list-after-template-kw SCALE(y)
Message-ID:  <bug-285195-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285195

            Bug ID: 285195
           Summary: devel/llvm15: FLANG
                    -Wmissing-template-arg-list-after-template-kw SCALE(y)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: brooks@FreeBSD.org
          Reporter: milios@ccsys.com
          Assignee: brooks@FreeBSD.org
             Flags: maintainer-feedback?(brooks@FreeBSD.org)

fyi i had to disable FLANG in order to avoid this error compiling with
13.5-RC1/amd64. its out of my depth. my dependency was misc/py-pytorch@py311
and i'm not sure if it is concerned with FLANG support


FAILED:
tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEvaluate.dir/fold-real.cpp.o=
=20
/usr/bin/c++ -DFLANG_LITTLE_ENDIAN=3D1 -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/usr/ports/devel/llvm15/work-default/.build/tools/flang/lib/Evaluate
-I/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Ev=
aluate
-I/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/include
-I/usr/ports/devel/llvm15/work-default/.build/tools/flang/include
-I/usr/ports/devel/llvm15/work-default/.build/include
-I/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/llvm/include
-isystem
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/llvm/../mlir/i=
nclude
-isystem /usr/ports/devel/llvm15/work-default/.build/tools/mlir/include
-isystem /usr/ports/devel/llvm15/work-default/.build/tools/clang/include
-isystem
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/llvm/../clang/=
include
-O2 -pipe -march=3Dopteron-sse3 -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -fPIC
-fno-semantic-interposition -fvisibility-inlines-hidden -Werror=3Ddate-time
-Werror=3Dunguarded-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 -fdiagnostics-color -ffunction-sections
-fdata-sections -Wno-deprecated-copy -Wno-string-conversion
-Wno-unused-command-line-argument -Wstring-conversion=20=20=20=20=20=20=20=
=20=20=20
-Wcovered-switch-default -Wno-nested-anon-types -O2 -pipe -march=3Dopteron-=
sse3
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing=20
-isystem /usr/local/include  -DNDEBUG -std=3Dc++17  -fno-exceptions -MD -MT
tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEvaluate.dir/fold-real.cpp.o=
 -MF
tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEvaluate.dir/fold-real.cpp.o=
.d
-o tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEvaluate.dir/fold-real.cp=
p.o
-c
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Eval=
uate/fold-real.cpp
In file included from
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Eval=
uate/fold-real.cpp:9:
In file included from
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Eval=
uate/fold-implementation.h:12:
In file included from
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Eval=
uate/character.h:12:
In file included from
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/include/=
flang/Evaluate/type.h:20:
In file included from
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/include/=
flang/Evaluate/complex.h:13:
In file included from
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/include/=
flang/Evaluate/real.h:13:
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/include/=
flang/Evaluate/integer.h:310:32:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
  310 |       auto back{FROM::template ConvertSigned(result.value)};
      |                                ^
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Eval=
uate/fold-real.cpp:106:22:
warning: variable 'z' set but not used [-Wunused-but-set-variable]
  106 |     } else if (auto *z{UnwrapExpr<Expr<SomeComplex>>(args[0])}) {
      |                      ^
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Eval=
uate/fold-real.cpp:103:15:
warning: variable 'x' set but not used [-Wunused-but-set-variable]
  103 |     if (auto *x{UnwrapExpr<Expr<SomeReal>>(args[0])}) {
      |               ^
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/flang/lib/Eval=
uate/fold-real.cpp:247:60:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
  247 |                                                            SCALE(y)=
};
      |                                                            ^
2 warnings and 2 errors generated.
ninja: build stopped: subcommand failed.
=3D=3D=3D> Compilation failed unexpectedly.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/llvm15

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-285195-7788>