build failure - odd compiler selection

Christopher Jones jonesc at hep.phy.cam.ac.uk
Mon Aug 5 19:02:28 UTC 2019


Hi,

OK, I’ve worked out what was going on.

The problem is the port uses the cxx11 port group, which internally sets the whitelist to include *only* macports-clang-5.0. This is then used instead of the fallback list below to pick a compiler, and because this one is in the blacklist, all options fail and port default to the first in the fallback list, which just happens to be clang.

I think the cxx11 PG needs to extend the whitelist it sets, to include some of the new macports clang options…

Chris

> On 5 Aug 2019, at 6:46 pm, Christopher Jones <jonesc at hep.phy.cam.ac.uk> wrote:
> 
> Hi All,
> 
> Just trying to understand the build failure in
> 
> https://build.macports.org/builders/ports-10.8_x86_64_legacy-builder/builds/99778/steps/install-port/logs/stdio <https://build.macports.org/builders/ports-10.8_x86_64_legacy-builder/builds/99778/steps/install-port/logs/stdio>
> 
> port in question 
> 
> https://github.com/macports/macports-ports/blob/master/devel/folly/Portfile <https://github.com/macports/macports-ports/blob/master/devel/folly/Portfile>
> 
> has the compiler selection
> 
> compiler.blacklist-append {clang < 920} macports-clang-3.* macports-clang-4.0 \
>     macports-clang-5.0
> compiler.fallback-append macports-clang-8.0 macports-clang-7.0 macports-clang-6.0
> 
> build generates
> 
> --->  Configuring folly
> Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
> DEBUG: Preferred compilers: clang macports-clang-3.4 macports-llvm-gcc-4.2 apple-gcc-4.2 macports-clang-8.0 macports-clang-7.0 macports-clang-6.0
> DEBUG: Using compiler 'Xcode Clang’
> <snip>
> -- The CXX compiler identification is AppleClang 5.1.0.5030040
> -- The C compiler identification is AppleClang 5.1.0.5030040
> why is Xcode clang being selected, when it is already blacklisted ? Do the blacklist settings not get applied to the fallback list ?
> 
> cheers Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20190805/7a1f1851/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1930 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20190805/7a1f1851/attachment.bin>


More information about the macports-dev mailing list