[Bug 293447] cad/ngspice_rework: fix build with libc++ 21

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Feb 2026 20:08:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293447

            Bug ID: 293447
           Summary: cad/ngspice_rework: fix build with libc++ 21
           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: dim@FreeBSD.org
                CC: kevinz5000@gmail.com
             Flags: maintainer-feedback?(kevinz5000@gmail.com)
                CC: kevinz5000@gmail.com

With libc++ 21 cad/ngspice_rework fails to build, with errors similar to:

    In file included from hicumL2temp.cpp:11:
    ../../../../src/include/cppduals/duals/dual:444:8: error: 'is_compound'
cannot be specialized: Users are not allowed to specialize this standard
library entity [-Winvalid-specialization]
      444 | struct is_compound<duals::dual<T>> : true_type {};
          |        ^
    /usr/include/c++/v1/__type_traits/is_compound.h:25:8: note: marked
'_Clang::no_specializations' here
       25 | struct _LIBCPP_NO_SPECIALIZATIONS is_compound :
_BoolConstant<__is_compound(_Tp)> {};
          |        ^
    /usr/include/c++/v1/__config:1167:9: note: expanded from macro
'_LIBCPP_NO_SPECIALIZATIONS'
     1167 |       [[_Clang::__no_specializations__("Users are not allowed to
specialize this standard library entity")]]
          |         ^

This is because libc++ 21 no longer allows specializing a number of
standard library entities. Comment out the specialization to make the
build complete.

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