Bug 219284

Summary: devel/aegis: fails to build with lang/gcc6 or later
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Raphael Kubo da Costa <rakuco>
Status: Closed FIXED    
Severity: Affects Only Me CC: aryeh.friedman, gerald, rakuco
Priority: --- Flags: rakuco: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 219275    

Description Jan Beich freebsd_committer 2017-05-14 18:14:46 UTC
common/mem.cc: In function 'void* operator new(size_t)':
common/mem.cc:246:1: error: declaration of 'void* operator new(size_t) throw (std::bad_alloc)' has a different exception specifier
 operator new(size_t nbytes)
 ^~~~~~~~
In file included from common/mem.cc:26:0:
./common/mem.h:132:7: note: from previous declaration 'void* operator new(std::size_t)'
 void *operator new(size_t nbytes) THROW_BAD_ALLOC;
       ^~~~~~~~
common/mem.cc: In function 'void* operator new [](size_t)':
common/mem.cc:266:1: error: declaration of 'void* operator new [](size_t) throw (std::bad_alloc)' has a different exception specifier
 operator new[](size_t nbytes)
 ^~~~~~~~
In file included from common/mem.cc:26:0:
./common/mem.h:139:7: note: from previous declaration 'void* operator new [](std::size_t)'
 void *operator new[](size_t nbytes) THROW_BAD_ALLOC;
       ^~~~~~~~

build log: http://sprunge.us/JKGI
Comment 1 aryeh.friedman 2017-05-28 21:25:16 UTC
Known to compile under gcc48 unknown status for other versions
Comment 2 commit-hook freebsd_committer 2017-08-05 16:56:29 UTC
A commit references this bug:

Author: rakuco
Date: Sat Aug  5 16:56:11 UTC 2017
New revision: 447407
URL: https://svnweb.freebsd.org/changeset/ports/447407

Log:
  Explicitly pass -std=gnu++03 to build.

  GCC 6 switched to -std=gnu++14 by default, which breaks the port. Switch back
  to the previous GCC default to unbreak things.

  PR:		219284
  Approved by:	portmgr (blanket approval)

Changes:
  head/devel/aegis/Makefile