[Bug 274796] www/node16 multimedia/phonon (may be others) and clang 16 breakage

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 29 Oct 2023 17:33:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274796

            Bug ID: 274796
           Summary: www/node16 multimedia/phonon (may be others) and clang
                    16 breakage
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: otis@FreeBSD.org
          Reporter: dave@jetcafe.org
             Flags: maintainer-feedback?(otis@FreeBSD.org)
          Assignee: otis@FreeBSD.org

To fix the clang  16 breakage, some have written this:

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CXXFLAGS+=      -Wno-error=enum-constexpr-conversion
.endif

Since 13-STABLE recently (or at some point) got clang 16, this conditional
prevents compilation of these ports on recent 13-STABLE. 

Some others have written this:

.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160 && ${ARCH} ==
aarch64
CXXFLAGS+=      -Wno-error=enum-constexpr-conversion
.endif

I think the second one is the more correct solution, since it does not depend
on OS version. Hence this bug report.

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