Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Apr 2016 16:46:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 208467] www/node-devel www/node012 www/node4: Fix build with libc++ 3.8.0
Message-ID:  <bug-208467-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 208467
           Summary: www/node-devel www/node012 www/node4: Fix build with
                    libc++ 3.8.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: linpct@gmail.com
             Flags: maintainer-feedback?(linpct@gmail.com)
                CC: linpct@gmail.com

Created attachment 168898
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D168898&action=
=3Dedit
Fix several std::map declarations in www/node-devel

Follow-up to bug 208270: during the exp-run in bug 208158, it was found that
www/node-devel, www/node012 and www/node4 give errors with libc++ 3.8.0 [1]:

/usr/include/c++/v1/map:837:5: error: static_assert failed
"Allocator::value_type must be same type as value_type"
    static_assert((is_same<typename allocator_type::value_type,
value_type>::value),
    ^=20=20=20=20=20=20=20=20=20=20=20=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../deps/v8/src/compiler/js-type-feedback.h:41:21: note: in instantiation of
template class 'std::__1::map<unsigned int, v8::internal::TypeFeedbackId,
std::__1::less<unsigned int>,
v8::internal::zone_allocator<v8::internal::TypeFeedbackId> >' requested here
  TypeFeedbackIdMap type_feedback_id_map_;
                    ^

This is because libc++ 3.8.0 has added these sanity checks for custom std::=
map
allocators, which *must* be of the type std::pair<const Key, Value>.  I fix=
ed
the few std::map instances in the node source by adding this to their alloc=
ator
types.

--=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-208467-13>