svn commit: r470722 - head/lang/gcc9-devel/files

Gerald Pfeifer gerald at FreeBSD.org
Wed May 23 21:34:19 UTC 2018


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 at 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


More information about the svn-ports-all mailing list