[Bug 258865] www/node: fix build with clang 13

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 02 Oct 2021 11:43:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258865

            Bug ID: 258865
           Summary: www/node: fix build with clang 13
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: bhughes@freebsd.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(bhughes@freebsd.org)
          Assignee: bhughes@freebsd.org

During an exp-run for llvm 13 (see bug 258209), it turned out that www/node
fails to build with clang 13:

In file included from ../deps/v8/src/heap/cppgc/allocation.cc:5:
../deps/v8/include/cppgc/allocation.h:168:39: error: no member named 'forward'
in namespace 'std'
    T* object = ::new (memory) T(std::forward<Args>(args)...);
                                 ~~~~~^
../deps/v8/include/cppgc/allocation.h:168:47: error: 'Args' does not refer to a
value
    T* object = ::new (memory) T(std::forward<Args>(args)...);
                                              ^
../deps/v8/include/cppgc/allocation.h:164:25: note: declared here
  template <typename... Args>
                        ^
../deps/v8/include/cppgc/allocation.h:178:39: error: no member named 'forward'
in namespace 'std'
    T* object = ::new (memory) T(std::forward<Args>(args)...);
                                 ~~~~~^
../deps/v8/include/cppgc/allocation.h:178:47: error: 'Args' does not refer to a
value
    T* object = ::new (memory) T(std::forward<Args>(args)...);
                                              ^
../deps/v8/include/cppgc/allocation.h:173:25: note: declared here
  template <typename... Args>
                        ^
../deps/v8/include/cppgc/allocation.h:206:55: error: no member named 'forward'
in namespace 'std'
      MakeGarbageCollectedTrait<T>::Call(handle, std::forward<Args>(args)...);
                                                 ~~~~~^
../deps/v8/include/cppgc/allocation.h:206:63: error: 'Args' does not refer to a
value
      MakeGarbageCollectedTrait<T>::Call(handle, std::forward<Args>(args)...);
                                                              ^
../deps/v8/include/cppgc/allocation.h:203:35: note: declared here
template <typename T, typename... Args>
                                  ^
../deps/v8/include/cppgc/allocation.h:225:55: error: no member named 'forward'
in namespace 'std'
                                                 std::forward<Args>(args)...);
                                                 ~~~~~^
../deps/v8/include/cppgc/allocation.h:225:63: error: 'Args' does not refer to a
value
                                                 std::forward<Args>(args)...);
                                                              ^
../deps/v8/include/cppgc/allocation.h:221:35: note: declared here
template <typename T, typename... Args>
                                  ^
8 errors generated.

This was fixed upstream in v8 with:
https://chromium.googlesource.com/v8/v8.git/+/69426180fac5d37643a28887b5e148f844e14ce6
("cppgc: Fix missing <utility> include").

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