Warning: All compilers are either blacklisted or unavailable

Mojca Miklavec mojca at macports.org
Wed Dec 2 21:39:26 PST 2015


On 3 December 2015 at 01:42, Marcus Calhoun-Lopez wrote:
> The Qt compiler is set using files in the mkspecs directory (macs-clang or
> macx-clang-32).

Mine seems to use macx-clang.

> Clang is the only compiler currently supported
> (http://doc.qt.io/qt-5/supported-platforms.html),
> which is the reason for compiler.whitelist clang.
>
> In the same configuration files, C++11 support is achieved via -std=c++11
> and -stdlib=libc++.
> The cxx11 PortGroup was added in an effort to ensure that these flags would
> work.

All that is fine, even though I don't understand the mixture of
blacklisting and whitelisting that results in the warning.

> While Apple OS X 10.7 "Lion", Cocoa (64-bit) is not a “reference
> configuration,” it is supposed to “work well.”
>
> Does blacklisting clang < 500 in the  cxx11 PortGroup completely preclude
> 10.7?

Yes.

Eventually it still picks up /usr/bin/clang (qt5-base is using
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++)
and it is using the 10.8 SDK (-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
-mmacosx-version-min=10.7), but it does pick the compiler at least and
starts compiling.

Most likely the whole compilation just works (I'll know in a few
hours), I only find it weird to see all those warnings about
unavailable compiler(s).

(Hopefully Ryan will manage to figure out what is wrong with the 10.7 buildbot.)

Mojca

> On Dec 2, 2015, at 11:13 AM, Joshua Root <jmr at macports.org> wrote:
>
> On 2015-12-3 04:05 , Mojca Miklavec wrote:
>
> Hi,
>
> When upgrading Qt5 I'm greeted with:
>
> --->  qt5-mac is replaced by qt5
> Warning: All compilers are either blacklisted or unavailable;
> defaulting to first fallback option
>
> I guess this is because of the cxx11 PortGroup, even though I'm not 100%
> sure.
>
> But the main question is: why are all compilers blacklisted or rather:
> can something be done to have some compiler in the fallback that would
> work (like mp-clang-3.4)? Lion's clang (425) usually works, even
> though there are some problems with it (not all C++11 code works).
>
> The qt5 portgroup sets 'compiler.whitelist clang'.


More information about the macports-dev mailing list