Bug 222567

Summary: math/hfst: fails to build with lang/gcc7 or later
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Jan Beich <jbeich>
Status: Closed FIXED    
Severity: Affects Only Me CC: demon, gerald, rakuco
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 222542    

Description Jan Beich freebsd_committer freebsd_triage 2017-09-24 18:55:31 UTC
$ echo "DEFAULT_VERSIONS += gcc=7" >>${__MAKE_CONF:-/etc/make.conf}
$ make
[...]
In file included from ./../include/fst/accumulator.h:44:0,
                 from ./../include/fst/label-reachable.h:39,
                 from ./../include/fst/lookahead-matcher.h:28,
                 from ./../include/fst/matcher-fst.h:26,
                 from fst.cc:27:
./../include/fst/replace.h: In constructor 'fst::ArcIterator<fst::ReplaceFst<A, T> >::ArcIterator(const fst::ReplaceFst<A, T>&, fst::ArcIterator<fst::ReplaceFst<A, T> >::StateId)':
./../include/fst/replace.h:1061:46: error: expected ';' before '::' token
       (fst_.GetImpl())->template CacheImpl<A>::InitArcIterator(state_,
                                              ^~

build log: http://sprunge.us/jigV
Comment 1 Raphael Kubo da Costa freebsd_committer freebsd_triage 2017-09-24 19:25:23 UTC
Possibly fixed by https://github.com/hfst/hfst/commit/134d5a5aac3fd015c4955b6f5fdfede42159e402
Comment 2 Jan Beich freebsd_committer freebsd_triage 2017-09-24 19:38:56 UTC
I confirm. It fixed gcc7 build and didn't regress gcc6.
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-09-24 20:16:53 UTC
A commit references this bug:

Author: jbeich
Date: Sun Sep 24 20:15:48 UTC 2017
New revision: 450548
URL: https://svnweb.freebsd.org/changeset/ports/450548

Log:
  math/hfst: unbreak with gcc7

  PR:		222567
  Submitted by:	rakuco
  Obtained from:	upstream (hfst-3.13.0)
  Approved by:	portmgr blanket

Changes:
  head/math/hfst/Makefile
  head/math/hfst/distinfo