Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Feb 2024 16:51:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 276785] devel/build2: fix build with clang 18 rc1
Message-ID:  <bug-276785-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 276785
           Summary: devel/build2: fix build with clang 18 rc1
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: fuz@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(fuz@FreeBSD.org)
          Assignee: fuz@FreeBSD.org

As of rc1, clang 18 has a version id formatted as "18.1.0rc". Similarly,
builds from the upstream main branch typically have a version id looking
like "19.0.0git". Due to the way it parses version strings, devel/build2
cannot handle this format, and fails with:

  LC_ALL=3DC c++ -v
  error: unable to extract Clang minor version from '18'
    info: use config.cxx.version to override

I submitted https://github.com/build2/build2/issues/360 upstream, and
they committed a fix: https://github.com/build2/build2/commit/0e1b73e3,
which should eventually end up in 0.17.0.

The fix applies without issues on 0.16.0, so add it as a patch.

--=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-276785-7788>