#47754: vigra @1.10.0_6 build fails with -Os -------------------------+------------------------------- Reporter: macports@… | Owner: benjamin.seppke@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: vigra | -------------------------+------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Replying to [comment:8 benjamin.seppke@…]:
In the -Os optimization level some symbols of the std c++ lib are somehow lost. But if you replace the -Os with e.g. -O3 optimization, it compiles just as expected.
I haven't heard of anything like that before, but if that's true, then that's bizarre. Have you reported that problem to anyone else—the llvm project, for example, or Apple? `-Os` is the optimization level Apple uses to compile the software you get as part of OS X, so it's the optimization level that should be best-tested by Apple, who are also developers of llvm and clang and libc++, which is why MacPorts switched its default optimization level to `-Os` to match. If there is a problem with llvm/clang/libc++ and `-Os` I would very much like to know it, as probably would Apple. -- Ticket URL: <https://trac.macports.org/ticket/47754#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X