[Bug 282407] sysutils/lnav: Fails to build with clang 19 (main)

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 29 Oct 2024 15:36:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282407

            Bug ID: 282407
           Summary: sysutils/lnav: Fails to build with clang 19 (main)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: eduardo@FreeBSD.org
                CC: tom@hur.st
             Flags: maintainer-feedback?(tom@hur.st)
                CC: tom@hur.st

Hello,

sysutils/lnav fails to build on main after clang 19 import.
I'm using this PR to gather all info and try to get a fix.

Already opened an upstream PR.

Cheers


```
gmake[3]: Entering directory
'/wrkdirs/usr/ports/sysutils/lnav/work/lnav-0.12.2/src/pcrepp'
depbase=`echo pcre2pp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
c++ -std=c++14 -DHAVE_CONFIG_H -I. -I../../src    -Wall -I../../src
-I../../src/fmtlib -I../../src/third-party/scnlib/include
-I../../src/third-party/doctest-root -I/usr/local/include -D_ISOC99_SOURCE
-D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DUSE_OS_TZDB=1 -DHAS_REMOTE_API=0
-I/usr/local/include -I/usr/local/include -I/usr/local/include  -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing   -pthread -MT pcre2pp.o -MD -MP
-MF $depbase.Tpo -c -o pcre2pp.o pcre2pp.cc &&\
mv -f $depbase.Tpo $depbase.Po
In file included from pcre2pp.cc:32:
In file included from ./pcre2pp.hh:42:
../../src/base/intern_string.hh:371:36: error: a template argument list is
expected after a name prefixed by the template keyword
[-Wmissing-template-arg-list-after-template-kw]
  371 |         auto left = this->template find_left_boundary(start, predicate,
count);
      |                                    ^
../../src/base/intern_string.hh:618:28: error: a template argument list is
expected after a name prefixed by the template keyword
[-Wmissing-template-arg-list-after-template-kw]
  618 |             this->template to_c_str(allocator),
      |                            ^
2 errors generated.
gmake[3]: *** [Makefile:681: pcre2pp.o] Error 1
gmake[3]: Leaving directory
'/wrkdirs/usr/ports/sysutils/lnav/work/lnav-0.12.2/src/pcrepp'
gmake[2]: *** [Makefile:1686: all-recursive] Error 1
gmake[2]: Leaving directory
'/wrkdirs/usr/ports/sysutils/lnav/work/lnav-0.12.2/src'
gmake[1]: *** [Makefile:1325: all] Error 2
gmake[1]: Leaving directory
'/wrkdirs/usr/ports/sysutils/lnav/work/lnav-0.12.2/src'
gmake: *** [Makefile:527: all-recursive] Error 1
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
```

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