#60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

#60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)

macports-4
#60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)
-----------------------------+--------------------
 Reporter:  programmingkidx  |      Owner:  (none)
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:
 Keywords:  Tiger re2c       |       Port:  re2c
-----------------------------+--------------------
 re2c 1.3.0 fails to build on Mac OS 10.4 (intel).

 This is the error I see while building:

 :info:build ./src/dfa/closure_posix.h:128:61: error: invalid operands to
 binary expression ('typename determ_context_t<phistory_t>::rcconfiter_t'
 (aka 'reverse_iterator<const_iterator>') and 'reverse_iterator' (aka
 'reverse_iterator<iterator>'))
 :info:build     for (typename ctx_t::rcconfiter_t c = reach.rbegin(); c !=
 reach.rend(); ++c) {

--
Ticket URL: <https://trac.macports.org/ticket/60755>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)

macports-4
#60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)
------------------------------+------------------------
  Reporter:  programmingkidx  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:  Tiger re2c
      Port:  re2c             |
------------------------------+------------------------
Changes (by programmingkidx):

 * Attachment "main.log" added.


--
Ticket URL: <https://trac.macports.org/ticket/60755>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)

macports-4
In reply to this post by macports-4
#60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)
------------------------------+------------------------
  Reporter:  programmingkidx  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:  Tiger re2c
      Port:  re2c             |
------------------------------+------------------------

Comment (by programmingkidx):

 Attached the build log to this ticket.

--
Ticket URL: <https://trac.macports.org/ticket/60755#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)

macports-4
In reply to this post by macports-4
#60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)
------------------------------+------------------------
  Reporter:  programmingkidx  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:  Tiger re2c
      Port:  re2c             |
------------------------------+------------------------

Comment (by mf2k):

 In the future, please use WikiFormatting and add the port maintainer(s) to
 Cc ({{{port info --maintainers re2c}}}), if any.

--
Ticket URL: <https://trac.macports.org/ticket/60755#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)

macports-4
In reply to this post by macports-4
#60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)
------------------------------+------------------------
  Reporter:  programmingkidx  |      Owner:  ryandesign
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:  tiger
      Port:  re2c             |
------------------------------+------------------------
Changes (by mf2k):

 * owner:  (none) => ryandesign
 * keywords:  Tiger re2c => tiger
 * status:  new => assigned


Old description:

> re2c 1.3.0 fails to build on Mac OS 10.4 (intel).
>
> This is the error I see while building:
>
> :info:build ./src/dfa/closure_posix.h:128:61: error: invalid operands to
> binary expression ('typename determ_context_t<phistory_t>::rcconfiter_t'
> (aka 'reverse_iterator<const_iterator>') and 'reverse_iterator' (aka
> 'reverse_iterator<iterator>'))
> :info:build     for (typename ctx_t::rcconfiter_t c = reach.rbegin(); c
> != reach.rend(); ++c) {
New description:

 re2c 1.3.0 fails to build on Mac OS 10.4 (intel).

 This is the error I see while building:
 {{{
 :info:build ./src/dfa/closure_posix.h:128:61: error: invalid operands to
 binary expression ('typename determ_context_t<phistory_t>::rcconfiter_t'
 (aka 'reverse_iterator<const_iterator>') and 'reverse_iterator' (aka
 'reverse_iterator<iterator>'))
 :info:build     for (typename ctx_t::rcconfiter_t c = reach.rbegin(); c !=
 reach.rend(); ++c) {
 }}}

--

--
Ticket URL: <https://trac.macports.org/ticket/60755#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)

macports-4
In reply to this post by macports-4
#60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)
------------------------------+------------------------
  Reporter:  programmingkidx  |      Owner:  ryandesign
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:  tiger
      Port:  re2c             |
------------------------------+------------------------

Comment (by kencu):

 Although I have no idea why it won't build with clang-3.4 on Tiger Intel,
 and I can confirm it does not build with it, it does build with gcc7, FYI.
 It is supposed to need only {{{c++98}}}.

--
Ticket URL: <https://trac.macports.org/ticket/60755#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)

macports-4
In reply to this post by macports-4
#60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)
------------------------------+------------------------
  Reporter:  programmingkidx  |      Owner:  ryandesign
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:  tiger
      Port:  re2c             |
------------------------------+------------------------

Comment (by programmingkidx):

 Adding this line to the portfile fixed the problem: configure.compiler
 macports-gcc-6

--
Ticket URL: <https://trac.macports.org/ticket/60755#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)

macports-4
In reply to this post by macports-4
#60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)
------------------------------+------------------------
  Reporter:  programmingkidx  |      Owner:  ryandesign
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:  tiger
      Port:  re2c             |
------------------------------+------------------------

Comment (by kencu):

 gcc7 would have been better, as I said yesterday. gcc8 even better, but I
 haven't released that for MacPorts on < 10.7 yet.

 You don't need to add the line to the portfile, by the way.

 Building with Tiger, you will need to force a different compiler hundreds
 of times to make progress, despite what anyone might say around here. You
 have to, because we are breaking new ground and macports is way behind us
 on this.

 To do it easily, just force it on the command line.
 {{{
 sudo port -v install re2c configure.compiler=macports-gcc-7
 }}}

 but none of this is too useful for a ticket, as Ryan can't do anything
 with this information.


 Please be careful. Dozens or hundreds of tickets about ports that won't
 build with Tiger are only going to lead to one thing: MacPorts dropping
 Tiger support.

--
Ticket URL: <https://trac.macports.org/ticket/60755#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)

macports-4
In reply to this post by macports-4
#60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)
------------------------------+------------------------
  Reporter:  programmingkidx  |      Owner:  ryandesign
      Type:  defect           |     Status:  accepted
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:  tiger
      Port:  re2c             |
------------------------------+------------------------
Changes (by ryandesign):

 * status:  assigned => accepted


Comment:

 Thanks for reporting this. We've actually had this type of problem before,
 I've [https://github.com/skvadrik/re2c/issues/198 reported it to the
 developer], and they fixed it, but they warned that they might break it
 again in the future since they didn't routinely test with old compilers.
 I'll fix it again and send a PR to them. This also removes the requirement
 to blacklist old gcc that was added in #58993.

--
Ticket URL: <https://trac.macports.org/ticket/60755#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)

macports-4
In reply to this post by macports-4
#60755: re2c 1.3.0 fails to build on Mac OS 10.4 (intel)
------------------------------+------------------------
  Reporter:  programmingkidx  |      Owner:  ryandesign
      Type:  defect           |     Status:  closed
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:  fixed            |   Keywords:  tiger
      Port:  re2c             |
------------------------------+------------------------
Changes (by ryandesign):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"2da42f34e4b288c484ce5f4765338ede4aa929b2/macports-ports"
 2da42f34e4b288c484ce5f4765338ede4aa929b2/macports-ports] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="2da42f34e4b288c484ce5f4765338ede4aa929b2"
 re2c: Fix build with old compilers

 Closes: https://trac.macports.org/ticket/60755
 See: https://trac.macports.org/ticket/58993
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/60755#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS