Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2017 21:25:31 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432958 - head/lang/gcc5/files
Message-ID:  <201701312125.v0VLPVVs087355@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim (src committer)
Date: Tue Jan 31 21:25:30 2017
New Revision: 432958
URL: https://svnweb.freebsd.org/changeset/ports/432958

Log:
  Similar to bug 212465, lang/gcc5 doesn't compile with recent versions of
  libc++, because it attempts to redefine abort():
  
  In file included from /wrkdirs/usr/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, and moving a few includes to before "system.h".
  
  Approved by:	gerald (maintainer)
  PR:		216266
  MFH:		2017Q1

Added:
  head/lang/gcc5/files/patch-libc++   (contents, props changed)

Added: head/lang/gcc5/files/patch-libc++
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcc5/files/patch-libc++	Tue Jan 31 21:25:30 2017	(r432958)
@@ -0,0 +1,43 @@
+--- gcc/auto-profile.c.orig	2015-01-18 02:25:42 UTC
++++ gcc/auto-profile.c
+@@ -19,11 +19,9 @@ along with GCC; see the file COPYING3.  
+ <http://www.gnu.org/licenses/>.  */
+ 
+ #include "config.h"
+-#include "system.h"
+-
+-#include <string.h>
+ #include <map>
+ #include <set>
++#include "system.h"
+ 
+ #include "coretypes.h"
+ #include "hash-set.h"
+--- gcc/graphite-isl-ast-to-gimple.c.orig	2017-01-19 21:02:12 UTC
++++ gcc/graphite-isl-ast-to-gimple.c
+@@ -38,6 +38,7 @@ extern "C" {
+ #endif
+ #endif
+ 
++#include <map>
+ #include "system.h"
+ #include "coretypes.h"
+ #include "hash-set.h"
+@@ -75,7 +76,6 @@ extern "C" {
+ #include "tree-scalar-evolution.h"
+ #include "gimple-ssa.h"
+ #include "tree-into-ssa.h"
+-#include <map>
+ 
+ #ifdef HAVE_isl
+ #include "graphite-poly.h"
+--- gcc/system.h.orig	2015-01-05 12:33:28 UTC
++++ gcc/system.h
+@@ -217,6 +217,7 @@ extern int errno;
+ #ifdef __cplusplus
+ # include <algorithm>
+ # include <cstring>
++# include <new>
+ # include <utility>
+ #endif
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701312125.v0VLPVVs087355>