[Bug 216266] lang/gcc5: Fix build with libc++ 4.0.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 19 19:33:18 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216266

            Bug ID: 216266
           Summary: lang/gcc5: Fix build with libc++ 4.0.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: gerald at FreeBSD.org
          Reporter: dim at FreeBSD.org
             Flags: maintainer-feedback?(gerald at FreeBSD.org)
          Assignee: gerald at FreeBSD.org

Created attachment 179080
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=179080&action=edit
Include <new> in gcc/system.h

Similar to bug 212465, lang/gcc5 doesn't compile with recent versions of
libc++, because it attempts to redefine abort():

In file included from
/usr/work/share/dim/ports/lang/gcc5/work/gcc-5.4.0/gcc/auto-profile.c:25:
In file included from /usr/include/c++/v1/map:446:
/usr/include/c++/v1/functional:1398:2: error: no member named 'fancy_abort' in
namespace 'std::__1'; did you mean simply 'fancy_abort'?
        _VSTD::abort();
        ^~~~~~~
/usr/include/c++/v1/__config:383:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
              ^

Patch this in the same way as the other gcc ports, by including <new> in
gcc/system.h.

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


More information about the freebsd-ports-bugs mailing list