Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2018 21:34:18 +0000 (UTC)
From:      Gerald Pfeifer <gerald@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r470722 - head/lang/gcc9-devel/files
Message-ID:  <201805232134.w4NLYI7Z090026@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gerald
Date: Wed May 23 21:34:18 2018
New Revision: 470722
URL: https://svnweb.freebsd.org/changeset/ports/470722

Log:
  Fix the build on FreeBSD versions with libc++ as default.
  
  The failure mode looked as follows:
  
    In file included from /scratch/tmp/gerald/gcc-HEAD/libcpp/system.h:442:
    In file included from /usr/include/c++/v1/new:91:
    /usr/include/c++/v1/exception:180:5: error: no member named 'fancy_abort'
    in namespace 'std::__1'; did you mean simply 'fancy_abort'?
        _VSTD::abort();
        ^~~~~~~

Added:
  head/lang/gcc9-devel/files/patch-libcpp-includenew   (contents, props changed)

Added: head/lang/gcc9-devel/files/patch-libcpp-includenew
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcc9-devel/files/patch-libcpp-includenew	Wed May 23 21:34:18 2018	(r470722)
@@ -0,0 +1,30 @@
+commit 76804c272544cdc90bd2b468f52f414e18f1c6da
+Author: Jason Merrill <jason@redhat.com>
+Date:   Mon May 21 22:02:11 2018 -0400
+
+            * system.h: #include <new> earlier.
+
+--- libcpp/system.h
++++ libcpp/system.h
+@@ -37,6 +37,10 @@ along with GCC; see the file COPYING3.  If not see
+ 
+ #include <stdio.h>
+ 
++#ifdef __cplusplus
++#include <new>
++#endif
++
+ /* Define a generic NULL if one hasn't already been defined.  */
+ #ifndef NULL
+ #define NULL 0
+@@ -438,10 +442,6 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
+ /* Some compilers do not allow the use of unsigned char in bitfields.  */
+ #define BOOL_BITFIELD unsigned int
+ 
+-#ifdef __cplusplus
+-#include <new>
+-#endif
+-
+ /* Poison identifiers we do not want to use.  */
+ #if (GCC_VERSION >= 3000)
+ #undef calloc



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