Opened 4 years ago
Closed 4 years ago
#60755 closed defect (fixed)
re2c 1.3.0 fails to build on Mac OS 10.4 (intel)
Reported by: | programmingkidx | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | tiger | Cc: | |
Port: | re2c |
Description (last modified by mf2k (Frank Schima))
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) {
Attachments (1)
Change History (9)
Changed 4 years ago by programmingkidx
comment:1 Changed 4 years ago by programmingkidx
comment:2 Changed 4 years ago by mf2k (Frank Schima)
In the future, please use WikiFormatting and add the port maintainer(s) to Cc (port info --maintainers re2c
), if any.
comment:3 Changed 4 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Keywords: | tiger added; Tiger re2c removed |
Owner: | set to ryandesign |
Status: | new → assigned |
comment:4 Changed 4 years ago by kencu (Ken)
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
.
comment:5 Changed 4 years ago by programmingkidx
Adding this line to the portfile fixed the problem: configure.compiler macports-gcc-6
comment:6 Changed 4 years ago by kencu (Ken)
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. Just look at all the tickets ballapete has opened over the past four years.
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.
comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Status: | assigned → accepted |
---|
Thanks for reporting this. We've actually had this type of problem before, I've 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.
comment:8 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Attached the build log to this ticket.