Summary: | lang/cint: 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: | fjoe, gerald, rakuco | ||||
Priority: | --- | Flags: | rakuco:
maintainer-feedback-
rakuco: merge-quarterly+ |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
URL: | https://gcc.gnu.org/gcc-6/porting_to.html | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 219275 | ||||||
Attachments: |
|
Description
Jan Beich
2017-02-11 20:02:01 UTC
Adding USE_CXXSTD=gnu++98 won't hide the issue unless the ports learns to respect CXXFLAGS. Created attachment 184802 [details]
Proposed patch
The attached patch both fixes the build with GCC 6 by passing -std=gnu++03 as well as teaches the port to respect CFLAGS and CXXFLAGS.
The patch should be MFH'ed as well.
A commit references this bug: Author: rakuco Date: Sun Aug 13 11:10:47 UTC 2017 New revision: 447876 URL: https://svnweb.freebsd.org/changeset/ports/447876 Log: Make the port respect CFLAGS and CXXFLAGS. Bump PORTREVISION since this changes the flags the port is built with. This is step 1 towards making the port build with GCC 6. PR: 217008 Approved by: maintainer timeout (fjoe, 16 days) MFH: 2017Q3 Changes: head/lang/cint/Makefile A commit references this bug: Author: rakuco Date: Sun Aug 13 11:13:00 UTC 2017 New revision: 447877 URL: https://svnweb.freebsd.org/changeset/ports/447877 Log: Explicitly pass -std=gnu++03 to the build. This allows the port to build with GCC 6, which defaults to -std=gnu++14. The port's code does not work with C++11 or later. PR: 217008 Approved by: maintainer timeout (fjoe, 16 days) Changes: head/lang/cint/Makefile A commit references this bug: Author: rakuco Date: Thu Aug 17 16:01:06 UTC 2017 New revision: 448135 URL: https://svnweb.freebsd.org/changeset/ports/448135 Log: MFH: r447876 Make the port respect CFLAGS and CXXFLAGS. Bump PORTREVISION since this changes the flags the port is built with. This is step 1 towards making the port build with GCC 6. PR: 217008 Approved by: maintainer timeout (fjoe, 16 days) Approved by: ports-secteam (feld) Changes: _U branches/2017Q3/ branches/2017Q3/lang/cint/Makefile I don't think this should be actually merger quarterly. The issue only presents itself when the default is switched to GCC 6 -- which really does not make sense on a quarterly branch. |