#40771: vaucanson 2 ------------------------------+-------------------------------- Reporter: akim.demaille@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: vaucanson | ------------------------------+-------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Replying to [comment:2 akim.demaille@…]:
* "configure.args CXXFLAGS=-O3" should be removed. MacPorts already sets CXXFLAGS in the environment at configure time. If you're sure you want to change them, change configure.cxxflags. If you just want to change the optimization flags, change configure.optflags, but only if you're sure the default and preferred value of "-Os" doesn't work.
Wow, -Os is the default??? I'm surprised it is not -O2. I don't want to reopen a debate that already happened, but really, that's disturbing. ("All the kids are doing it." -- well, what kids???).
MacPorts switched the default optimization flags from `-O2` to `-Os` in version 2.2 because it is what Apple uses to compile the rest of OS X. Comments / complaints / discussion about this should be directed to the macports-devel mailing list where you'll have a greater audience than the handful of people who happen to be reading this ticket. There wasn't much discussion before; Jeremy H S said we should change it, I respect Jeremy's opinion based on prior excellent work and didn't know a reason not to change it, so I changed it. I haven't heard any negative consequences from this change yet.
In the current case, toolsets such as Vaucanson are designed to work with automata which can have hundreds of thousands states or transitions, and there -O2 vs. -O3 does make a difference.
However, if preferred I can try to install a variant for this.
Ok, then feel free to set configure.optflags to `-O3`. Let's not add a variant.
* Why set "configure.compiler macports-gcc-4.8"? If the compilers MacPorts chooses by default don't work for vaucanson, please explain.
It is written in C++11. GCC 4.7 cannot compile it, and actually because of various issues (in GCC, not in Vaucanson), the current 4.9 cannot either.
Clang 3.3 and 3.4 work though.
Then use the compiler_blacklist_versions portgroup to blacklist the compilers that will not work, and allow MacPorts to select one that does (which will probably be clang). -- Ticket URL: <https://trac.macports.org/ticket/40771#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X