get a compiler version?
Joshua Root
jmr at macports.org
Sun Oct 3 17:27:19 UTC 2021
On 2021-10-4 03:20 , Sergey A. Osokin wrote:
> I've found that www/unit builds, primarily unit-perl* and unit-ruby
> modules, fail when it runs with clang13. And that's because of the
> -Wcompound-token-split-by-macro warning, enable by default for clang13.
> Here's the similar issue and bug report,
> https://bugs.ruby-lang.org/issues/17865
>
> From the other side, all 12 builds are successful with clang12.
>
> Please note, that's not an issue with NGINX Unit itself, that's the
> issues when clang13 builds unit-perl* and unit-ruby* modules, and
> there's no issue with unit-python* modules.
>
> So, the forehead solution is probably disable -Werror warning for
> perl and ruby modules with a reinplace, but I see no reason to do
> that for all 12 ports, that's why I'm looking for details how to
> enable -Wno-compound-token-split-by-macro for a specific compiler
> version.
Removing use of -Werror (for all ports) is the preferable solution here.
That's a good flag for the upstream developers to use so they have to
fix warnings, but all it does for our users is cause unnecessary build
failures.
- Josh
More information about the macports-dev
mailing list