[MacPorts] #67836: clang-16 @16.0.6: error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.13 or newer (was: clang-16 fails to build on 10.8.5: error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.13 or newer)

MacPorts noreply at macports.org
Fri Jul 28 04:11:24 UTC 2023


#67836: clang-16 @16.0.6: error: aligned deallocation function of type 'void (void
*, std::align_val_t) noexcept' is only available on macOS 10.13 or newer
---------------------------+--------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  High          |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:  mountainlion
      Port:  clang-16      |
---------------------------+--------------------------

Old description:

> CORRECTED: `clang-16` fails, not `llvm-16`.
>
> Why was it even set as the default for systems which do not support it?
>
> {{{
> [ 91%] Building CXX object
> libcxx/src/CMakeFiles/cxx_shared.dir/barrier.cpp.o
> cd
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/runtimes
> /runtimes-bins/libcxx/src &&
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/./bin/clang++
> --target=x86_64-apple-darwin12.6.0 -DLIBCXX_BUILDING_LIBCXXABI
> -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_DISABLE_NEW_DELETE_DEFINITIONS
> -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D__STDC_CONSTANT_MACROS
> -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/libcxx/src
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/libcxxabi/include -Wall -Wextra -Wno-unused-
> parameter -Wwrite-strings -Wcast-qual -Wnon-virtual-dtor -Wdelete-non-
> virtual-dtor -Wno-comment -O3 -DNDEBUG -std=c++20 -mmacosx-version-
> min=10.8 -fPIC -nostdinc++ -MD -MT
> libcxx/src/CMakeFiles/cxx_shared.dir/barrier.cpp.o -MF
> CMakeFiles/cxx_shared.dir/barrier.cpp.o.d -o
> CMakeFiles/cxx_shared.dir/barrier.cpp.o -c
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/libcxx/src/barrier.cpp
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:13:
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/barrier:52:
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__thread/timed_backoff_policy.h:17:
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:540:51:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     _LIBCPP_HIDE_FROM_ABI constexpr chrono::hours operator""h(unsigned
> long long __h)
>                                                   ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:545:82:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     _LIBCPP_HIDE_FROM_ABI constexpr chrono::duration<long double,
> ratio<3600,1>> operator""h(long double __h)
> ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:551:53:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     _LIBCPP_HIDE_FROM_ABI constexpr chrono::minutes
> operator""min(unsigned long long __m)
>                                                     ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:556:80:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     _LIBCPP_HIDE_FROM_ABI constexpr chrono::duration<long double,
> ratio<60,1>> operator""min(long double __m)
> ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:562:53:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     _LIBCPP_HIDE_FROM_ABI constexpr chrono::seconds operator""s(unsigned
> long long __s)
>                                                     ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:567:67:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     _LIBCPP_HIDE_FROM_ABI constexpr chrono::duration<long double>
> operator""s(long double __s)
>                                                                   ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:573:58:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     _LIBCPP_HIDE_FROM_ABI constexpr chrono::milliseconds
> operator""ms(unsigned long long __ms)
>                                                          ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:578:74:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     _LIBCPP_HIDE_FROM_ABI constexpr chrono::duration<long double, milli>
> operator""ms(long double __ms)
> ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:584:58:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     _LIBCPP_HIDE_FROM_ABI constexpr chrono::microseconds
> operator""us(unsigned long long __us)
>                                                          ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:589:74:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     _LIBCPP_HIDE_FROM_ABI constexpr chrono::duration<long double, micro>
> operator""us(long double __us)
> ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:595:57:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     _LIBCPP_HIDE_FROM_ABI constexpr chrono::nanoseconds
> operator""ns(unsigned long long __ns)
>                                                         ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:600:73:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     _LIBCPP_HIDE_FROM_ABI constexpr chrono::duration<long double, nano>
> operator""ns(long double __ns)
>                                                                         ^
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:14:
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/thread:90:
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__mutex_base:20:
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/system_error:154:
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string:576:
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string_view:985:29:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     basic_string_view<char> operator "" sv(const char *__str, size_t
> __len) _NOEXCEPT
>                             ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string_view:992:32:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     basic_string_view<wchar_t> operator "" sv(const wchar_t *__str,
> size_t __len) _NOEXCEPT
>                                ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string_view:1000:32:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     basic_string_view<char8_t> operator "" sv(const char8_t *__str,
> size_t __len) _NOEXCEPT
>                                ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string_view:1007:33:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     basic_string_view<char16_t> operator "" sv(const char16_t *__str,
> size_t __len) _NOEXCEPT
>                                 ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string_view:1013:33:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     basic_string_view<char32_t> operator "" sv(const char32_t *__str,
> size_t __len) _NOEXCEPT
>                                 ^
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:14:
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/thread:90:
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__mutex_base:20:
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/system_error:154:
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string:4572:24:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     basic_string<char> operator "" s( const char *__str, size_t __len )
>                        ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string:4579:27:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     basic_string<wchar_t> operator "" s( const wchar_t *__str, size_t
> __len )
>                           ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string:4587:27:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     basic_string<char8_t> operator "" s(const char8_t *__str, size_t
> __len)
>                           ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string:4594:28:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     basic_string<char16_t> operator "" s( const char16_t *__str, size_t
> __len )
>                            ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string:4600:28:
> warning: user-defined literal suffixes not starting with '_' are reserved
> [-Wuser-defined-literals]
>     basic_string<char32_t> operator "" s( const char32_t *__str, size_t
> __len )
>                            ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:37:43: error: aligned
> allocation function of type 'void *(std::size_t, std::align_val_t)' is
> only available on macOS 10.13 or newer
>         __state = unique_ptr<__state_t[]>(new __state_t[__count]);
>                                           ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:37:43: note: if you
> supply your own aligned allocation functions, use -faligned-allocation to
> silence this diagnostic
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:37:43: error: aligned
> deallocation function of type 'void (void *, std::align_val_t) noexcept'
> is only available on macOS 10.13 or newer
>         __state = unique_ptr<__state_t[]>(new __state_t[__count]);
>                                           ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:37:43: note: if you
> supply your own aligned allocation functions, use -faligned-allocation to
> silence this diagnostic
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:13:
> In file included from
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/barrier:51:
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__memory/unique_ptr.h:91:5:
> error: aligned deallocation function of type 'void (void *,
> std::align_val_t) noexcept' is only available on macOS 10.13 or newer
>     delete[] __ptr;
>     ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__memory/unique_ptr.h:504:7:
> note: in instantiation of function template specialization
> 'std::default_delete<std::__barrier_algorithm_base::__state_t[]>::operator()<std::__barrier_algorithm_base::__state_t>'
> requested here
>       __ptr_.second()(__tmp);
>       ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__memory/unique_ptr.h:460:75:
> note: in instantiation of member function
> 'std::unique_ptr<std::__barrier_algorithm_base::__state_t[]>::reset'
> requested here
>   _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() {
> reset(); }
> ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:33:5: note: in
> instantiation of member function
> 'std::unique_ptr<std::__barrier_algorithm_base::__state_t[]>::~unique_ptr'
> requested here
>     __barrier_algorithm_base(ptrdiff_t& __expected)
>     ^
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__memory/unique_ptr.h:91:5:
> note: if you supply your own aligned allocation functions, use -faligned-
> allocation to silence this diagnostic
>     delete[] __ptr;
>     ^
> 22 warnings and 3 errors generated.
> make[5]: *** [libcxx/src/CMakeFiles/cxx_shared.dir/barrier.cpp.o] Error 1
> make[5]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/runtimes
> /runtimes-bins'
> make[4]: *** [libcxx/src/CMakeFiles/cxx_shared.dir/all] Error 2
> make[4]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/runtimes
> /runtimes-bins'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/runtimes
> /runtimes-bins'
> make[2]: *** [runtimes/runtimes-stamps/runtimes-build] Error 2
> make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build'
> make[1]: *** [runtimes/CMakeFiles/runtimes.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> [ 92%] Building CXX object tools/clang/tools/extra/clang-
> tidy/hicpp/CMakeFiles/obj.clangTidyHICPPModule.dir/SignedBitwiseCheck.cpp.o
> cd
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/tools/clang/tools/extra
> /clang-tidy/hicpp && /opt/local/bin/clang++-mp-14
> -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/tools/clang/tools/extra
> /clang-tidy/hicpp
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/clang-tools-extra/clang-tidy/hicpp
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/tools/clang/tools/extra
> /clang-tidy
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/clang/include
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/tools/clang/include
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/llvm/include -pipe -Os -DNDEBUG
> -D__DISABLE_MP_LEGACY_SUPPORT_SYSCONF_WRAP__=1
> -D__DISABLE_MP_LEGACY_SUPPORT_REALPATH_WRAP__=1
> -isystem/opt/local/include/LegacySupport -I/opt/local/include
> -stdlib=libc++ -isysroot/ -fPIC -fvisibility-inlines-hidden -Werror=date-
> time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-
> parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
> -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough
> -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-
> non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-
> indentation -Wctad-maybe-unsupported -fno-common -Woverloaded-virtual
> -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -arch x86_64 -arch i386
> -mmacosx-version-min=10.8  -fno-exceptions -MD -MT
> tools/clang/tools/extra/clang-
> tidy/hicpp/CMakeFiles/obj.clangTidyHICPPModule.dir/SignedBitwiseCheck.cpp.o
> -MF CMakeFiles/obj.clangTidyHICPPModule.dir/SignedBitwiseCheck.cpp.o.d -o
> CMakeFiles/obj.clangTidyHICPPModule.dir/SignedBitwiseCheck.cpp.o -c
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
> /llvm-project-16.0.6.src/clang-tools-extra/clang-
> tidy/hicpp/SignedBitwiseCheck.cpp
> make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build'
> [ 92%] Built target obj.clangTidyHICPPModule
> make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build'
> make: *** [all] Error 2
> }}}

New description:

 Why was it even set as the default for systems which do not support it?

 {{{
 [ 91%] Building CXX object
 libcxx/src/CMakeFiles/cxx_shared.dir/barrier.cpp.o
 cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/runtimes
 /runtimes-bins/libcxx/src &&
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/./bin/clang++
 --target=x86_64-apple-darwin12.6.0 -DLIBCXX_BUILDING_LIBCXXABI
 -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_DISABLE_NEW_DELETE_DEFINITIONS
 -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D__STDC_CONSTANT_MACROS
 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/libcxx/src
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/libcxxabi/include -Wall -Wextra -Wno-unused-
 parameter -Wwrite-strings -Wcast-qual -Wnon-virtual-dtor -Wdelete-non-
 virtual-dtor -Wno-comment -O3 -DNDEBUG -std=c++20 -mmacosx-version-
 min=10.8 -fPIC -nostdinc++ -MD -MT
 libcxx/src/CMakeFiles/cxx_shared.dir/barrier.cpp.o -MF
 CMakeFiles/cxx_shared.dir/barrier.cpp.o.d -o
 CMakeFiles/cxx_shared.dir/barrier.cpp.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/libcxx/src/barrier.cpp
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:13:
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/barrier:52:
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__thread/timed_backoff_policy.h:17:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:540:51:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     _LIBCPP_HIDE_FROM_ABI constexpr chrono::hours operator""h(unsigned
 long long __h)
                                                   ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:545:82:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     _LIBCPP_HIDE_FROM_ABI constexpr chrono::duration<long double,
 ratio<3600,1>> operator""h(long double __h)
 ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:551:53:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     _LIBCPP_HIDE_FROM_ABI constexpr chrono::minutes operator""min(unsigned
 long long __m)
                                                     ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:556:80:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     _LIBCPP_HIDE_FROM_ABI constexpr chrono::duration<long double,
 ratio<60,1>> operator""min(long double __m)
 ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:562:53:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     _LIBCPP_HIDE_FROM_ABI constexpr chrono::seconds operator""s(unsigned
 long long __s)
                                                     ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:567:67:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     _LIBCPP_HIDE_FROM_ABI constexpr chrono::duration<long double>
 operator""s(long double __s)
                                                                   ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:573:58:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     _LIBCPP_HIDE_FROM_ABI constexpr chrono::milliseconds
 operator""ms(unsigned long long __ms)
                                                          ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:578:74:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     _LIBCPP_HIDE_FROM_ABI constexpr chrono::duration<long double, milli>
 operator""ms(long double __ms)
                                                                          ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:584:58:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     _LIBCPP_HIDE_FROM_ABI constexpr chrono::microseconds
 operator""us(unsigned long long __us)
                                                          ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:589:74:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     _LIBCPP_HIDE_FROM_ABI constexpr chrono::duration<long double, micro>
 operator""us(long double __us)
                                                                          ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:595:57:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     _LIBCPP_HIDE_FROM_ABI constexpr chrono::nanoseconds
 operator""ns(unsigned long long __ns)
                                                         ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__chrono/duration.h:600:73:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     _LIBCPP_HIDE_FROM_ABI constexpr chrono::duration<long double, nano>
 operator""ns(long double __ns)
                                                                         ^
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:14:
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/thread:90:
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__mutex_base:20:
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/system_error:154:
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string:576:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string_view:985:29:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     basic_string_view<char> operator "" sv(const char *__str, size_t
 __len) _NOEXCEPT
                             ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string_view:992:32:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     basic_string_view<wchar_t> operator "" sv(const wchar_t *__str, size_t
 __len) _NOEXCEPT
                                ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string_view:1000:32:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     basic_string_view<char8_t> operator "" sv(const char8_t *__str, size_t
 __len) _NOEXCEPT
                                ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string_view:1007:33:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     basic_string_view<char16_t> operator "" sv(const char16_t *__str,
 size_t __len) _NOEXCEPT
                                 ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string_view:1013:33:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     basic_string_view<char32_t> operator "" sv(const char32_t *__str,
 size_t __len) _NOEXCEPT
                                 ^
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:14:
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/thread:90:
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__mutex_base:20:
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/system_error:154:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string:4572:24:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     basic_string<char> operator "" s( const char *__str, size_t __len )
                        ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string:4579:27:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     basic_string<wchar_t> operator "" s( const wchar_t *__str, size_t
 __len )
                           ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string:4587:27:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     basic_string<char8_t> operator "" s(const char8_t *__str, size_t
 __len)
                           ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string:4594:28:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     basic_string<char16_t> operator "" s( const char16_t *__str, size_t
 __len )
                            ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/string:4600:28:
 warning: user-defined literal suffixes not starting with '_' are reserved
 [-Wuser-defined-literals]
     basic_string<char32_t> operator "" s( const char32_t *__str, size_t
 __len )
                            ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:37:43: error: aligned
 allocation function of type 'void *(std::size_t, std::align_val_t)' is
 only available on macOS 10.13 or newer
         __state = unique_ptr<__state_t[]>(new __state_t[__count]);
                                           ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:37:43: note: if you supply
 your own aligned allocation functions, use -faligned-allocation to silence
 this diagnostic
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:37:43: error: aligned
 deallocation function of type 'void (void *, std::align_val_t) noexcept'
 is only available on macOS 10.13 or newer
         __state = unique_ptr<__state_t[]>(new __state_t[__count]);
                                           ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:37:43: note: if you supply
 your own aligned allocation functions, use -faligned-allocation to silence
 this diagnostic
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:13:
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/barrier:51:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__memory/unique_ptr.h:91:5:
 error: aligned deallocation function of type 'void (void *,
 std::align_val_t) noexcept' is only available on macOS 10.13 or newer
     delete[] __ptr;
     ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__memory/unique_ptr.h:504:7:
 note: in instantiation of function template specialization
 'std::default_delete<std::__barrier_algorithm_base::__state_t[]>::operator()<std::__barrier_algorithm_base::__state_t>'
 requested here
       __ptr_.second()(__tmp);
       ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__memory/unique_ptr.h:460:75:
 note: in instantiation of member function
 'std::unique_ptr<std::__barrier_algorithm_base::__state_t[]>::reset'
 requested here
   _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() {
 reset(); }
 ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/libcxx/src/barrier.cpp:33:5: note: in
 instantiation of member function
 'std::unique_ptr<std::__barrier_algorithm_base::__state_t[]>::~unique_ptr'
 requested here
     __barrier_algorithm_base(ptrdiff_t& __expected)
     ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include/c++/v1/__memory/unique_ptr.h:91:5:
 note: if you supply your own aligned allocation functions, use -faligned-
 allocation to silence this diagnostic
     delete[] __ptr;
     ^
 22 warnings and 3 errors generated.
 make[5]: *** [libcxx/src/CMakeFiles/cxx_shared.dir/barrier.cpp.o] Error 1
 make[5]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/runtimes
 /runtimes-bins'
 make[4]: *** [libcxx/src/CMakeFiles/cxx_shared.dir/all] Error 2
 make[4]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/runtimes
 /runtimes-bins'
 make[3]: *** [all] Error 2
 make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/runtimes
 /runtimes-bins'
 make[2]: *** [runtimes/runtimes-stamps/runtimes-build] Error 2
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build'
 make[1]: *** [runtimes/CMakeFiles/runtimes.dir/all] Error 2
 make[1]: *** Waiting for unfinished jobs....
 [ 92%] Building CXX object tools/clang/tools/extra/clang-
 tidy/hicpp/CMakeFiles/obj.clangTidyHICPPModule.dir/SignedBitwiseCheck.cpp.o
 cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/tools/clang/tools/extra
 /clang-tidy/hicpp && /opt/local/bin/clang++-mp-14 -D__STDC_CONSTANT_MACROS
 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/tools/clang/tools/extra
 /clang-tidy/hicpp
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/clang-tools-extra/clang-tidy/hicpp
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/tools/clang/tools/extra
 /clang-tidy
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/clang/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/tools/clang/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/llvm/include -pipe -Os -DNDEBUG
 -D__DISABLE_MP_LEGACY_SUPPORT_SYSCONF_WRAP__=1
 -D__DISABLE_MP_LEGACY_SUPPORT_REALPATH_WRAP__=1
 -isystem/opt/local/include/LegacySupport -I/opt/local/include
 -stdlib=libc++ -isysroot/ -fPIC -fvisibility-inlines-hidden -Werror=date-
 time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-
 parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
 -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough
 -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-
 non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-
 indentation -Wctad-maybe-unsupported -fno-common -Woverloaded-virtual
 -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -arch x86_64 -arch i386
 -mmacosx-version-min=10.8  -fno-exceptions -MD -MT tools/clang/tools/extra
 /clang-
 tidy/hicpp/CMakeFiles/obj.clangTidyHICPPModule.dir/SignedBitwiseCheck.cpp.o
 -MF CMakeFiles/obj.clangTidyHICPPModule.dir/SignedBitwiseCheck.cpp.o.d -o
 CMakeFiles/obj.clangTidyHICPPModule.dir/SignedBitwiseCheck.cpp.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work
 /llvm-project-16.0.6.src/clang-tools-extra/clang-
 tidy/hicpp/SignedBitwiseCheck.cpp
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build'
 [ 92%] Built target obj.clangTidyHICPPModule
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-16/clang-16/work/build'
 make: *** [all] Error 2
 }}}

--

Comment (by ryandesign):

 We had successful builds of clang @16.0.6 on all buildbot workers for Mac
 OS X 10.6 and later on July 3-4.

 Comparing the buildbot log from 10.8 with yours, I see these differences:

 * yours is building universal for i386 & x86_64 while the buildbot is
 building only for x86_64 (this could be the relevant difference)
 * yours found /opt/local/bin/git; buildbot found /usr/bin/git (probably
 irrelevant)
 * yours failed the `CXX_SUPPORTS_UNWINDLIB_NONE_FLAG` and
 `COMPILER_RT_HAS_FUSE_LD_LLD_FLAG` tests; on the buildbot they succeeded
 (maybe a consequence of building universal)
 * yours is building with `-j4` while the buildbot is using `-j8` (probably
 irrelevant)

 Diffing the build phase of the two logs is not so easy since parallel
 building means the lines are not in the same order between the two logs,
 but looking at a few things manually:

 At the point in the log where yours fails, we're building target
 cxxabi_static. On the buildbot it is using many warning flags like `-Wno-
 user-defined-literals`. Your build isn't using that, which is why you see
 the warnings `warning: user-defined literal suffixes not starting with '_'
 are reserved [-Wuser-defined-literals]`.

 Before that, in the build phase, cmake is run again when it is trying to
 build something using the just-built clang 16.0.6. This time, a relevant
 difference between the two is that yours failed nearly all of the tests,
 including the `CXX_SUPPORTS_FALIGNED_ALLOCATION_FLAG` test, while most
 tests succeeded on the buildbot. That seems to match up with the ultimate
 error you're getting about aligned deallocation not being supported.

-- 
Ticket URL: <https://trac.macports.org/ticket/67836#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list