Opened 4 months ago

Last modified 4 months ago

#69190 new defect

base prohibits new Clangs on 10.6 Intel — at Version 4

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: base Version: 2.9.0
Keywords: x86_64, snowleopard Cc: jmroot (Joshua Root), ryandesign (Ryan Carsten Schmidt), catap (Kirill A. Korinsky), kencu (Ken), cjones051073 (Chris Jones)
Port:

Description (last modified by barracuda156)

I cannot make the base to pick correct compilers now via blacklist for folly. What I need is clang-15 or later and not clang-11.

The port currently has:

compiler.cxx_standard   2017
compiler.blacklist-append {clang < 1100}
compiler.blacklist-append {macports-clang-[5-9].0}
compiler.blacklist-append macports-gcc-12

On 10.6.8 I get in result:

10:MacPorts-2.9.0 svacchanda$ port deps folly
Full Name: folly @2024.01.22.00_0
Build Dependencies:   cmake, ninja, clang-11, pkgconfig
Library Dependencies: bzip2, double-conversion, gflags, google-glog, libevent,
                      libsodium, libunwind, lz4, lzma, snappy, xz, zlib, zstd,
                      libfmt10, libcxx, boost181, openssl3, legacy-support,
                      macports-libcxx

I thought C++17 will pick a newer clang, but anyway, clang-11 cannot built it, so I try adding:

compiler.blacklist-append {macports-clang-[5-9].0} macports-clang-10 macports-clang-11

And nothing, it still wants clang-11:

10:MacPorts-2.9.0 svacchanda$ port deps folly
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Full Name: folly @2024.01.22.00_0
Build Dependencies:   cmake, ninja, clang-11, pkgconfig
Library Dependencies: bzip2, double-conversion, gflags, google-glog, libevent,
                      libsodium, libunwind, lz4, lzma, snappy, xz, zlib, zstd,
                      libfmt10, libcxx, boost181, openssl3, legacy-support,
                      macports-libcxx

Only compiler.whitelist macports-clang-16 works:

10:MacPorts-2.9.0 svacchanda$ port deps folly
Full Name: folly @2024.01.22.00_0
Build Dependencies:   cmake, ninja, clang-16, pkgconfig
Library Dependencies: bzip2, double-conversion, gflags, google-glog, libevent,
                      libsodium, libunwind, lz4, lzma, snappy, xz, zlib, zstd,
                      libfmt10, libcxx, boost181, openssl3, legacy-support,
                      macports-libcxx

There is no overriding compiler.blacklist in the portfile, everything is appended.

Change History (4)

comment:1 Changed 4 months ago by barracuda156

Description: modified (diff)

comment:2 Changed 4 months ago by kencu (Ken)

if all the possible compilers are blacklisted:

Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option

base starts into the fallback compiler list.

You can read about that in portconfigure.tcl

comment:3 in reply to:  2 Changed 4 months ago by barracuda156

Replying to kencu:

if all the possible compilers are blacklisted:

Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option

base starts into the fallback compiler list.

You can read about that in portconfigure.tcl

Yes, but why are new clangs prohibited for 10.6.8 on x86_64?

comment:4 Changed 4 months ago by barracuda156

Description: modified (diff)
Summary: compiler.blacklist does not work correctly now and prohibits new Clangs on 10.6 Intelbase prohibits new Clangs on 10.6 Intel
Note: See TracTickets for help on using tickets.