Opened 9 months ago

Last modified 7 months ago

#67836 new defect

clang-16 @16.0.6 +universal (i386/x86_64): error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.13 or newer

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: mountainlion Cc:
Port: clang-16

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Attachments (2)

llvm16_10.8.5.log.zip (408.6 KB) - added by barracuda156 9 months ago.
clang-16_2nd_try.log.zip (414.2 KB) - added by barracuda156 9 months ago.
Did not help

Download all attachments as: .zip

Change History (27)

Changed 9 months ago by barracuda156

Attachment: llvm16_10.8.5.log.zip added

comment:1 Changed 9 months ago by kencu (Ken)

your noted build error is for clang-16, not llvm-16:

The buildbot seemed to have no trouble with it.

https://packages.macports.org/clang-16/clang-16-16.0.6_1+analyzer.darwin_12.x86_64.tbz2

comment:2 in reply to:  1 Changed 9 months ago by barracuda156

Replying to kencu:

your noted build error is for clang-16, not llvm-16:

The buildbot seemed to have no trouble with it.

https://packages.macports.org/clang-16/clang-16-16.0.6_1+analyzer.darwin_12.x86_64.tbz2

Indeed, it is clang-16 is broken and not llvm-16. I was confused by directory name. llvm-16 has installed fine:

10:~ svacchanda$ port -v installed llvm-16
The following ports are currently installed:
  llvm-16 @16.0.6_0+universal (active) requested_variants='+universal' platform='darwin 12' archs='i386 x86_64' date='2023-07-28T03:11:13+0800'

Now, I do not know why it is broken, but it is for sure not due to any hacks on my side: I have neither need nor any desire to do that on 10.8.5. It is a purely testing set-up and uses standard Macports tools. No building with GCC and alike.

Last edited 9 months ago by barracuda156 (previous) (diff)

comment:3 Changed 9 months ago by barracuda156

What is installed and active on this 10.8.5:

Last login: Fri Jul 28 11:52:06 on ttys000
10:~ svacchanda$ port installed | grep active
  apple-gcc42 @5666.3_16+universal (active)
  asciidoctor @2.0.20_0 (active)
  autoconf @2.71_1 (active)
  automake @1.16.5_0 (active)
  bash @5.2.15_0+universal (active)
  bison @3.8.2_2+universal (active)
  bison-runtime @3.8.2_0 (active)
  boehmgc @8.2.4_0+universal (active)
  boost176 @1.76.0_9+no_single+no_static+python311+universal (active)
  boost181 @1.81.0_7+no_single+no_static+python311+universal (active)
  brotli @1.0.9_2+universal (active)
  bzip2 @1.0.8_0+universal (active)
  cairo @1.17.6_1+quartz+universal+x11 (active)
  ccache @4.8.2_0+doc (active)
  cctools @949.0.1_3+llvm37+universal (active)
  check @0.15.2_0+universal (active)
  clang-3.4 @3.4.2_17+analyzer+arm_runtime (active)
  clang-3.7 @3.7.1_9+analyzer+universal (active)
  clang-9.0 @9.0.1_7+analyzer+defaultlibcxx+emulated_tls+universal (active)
  clang-11 @11.1.0_7+analyzer+defaultlibcxx+emulated_tls+universal (active)
  clang-11-bootstrap @11.1.0_4+universal (active)
  clang-14 @14.0.6_1+analyzer+defaultlibcxx+universal (active)
  clang-15 @15.0.7_2+analyzer+defaultlibcxx (active)
  clang_select @2.2_1 (active)
  CLI11 @2.3.2_0+universal (active)
  cmake-devel @20230308-3.26.0-rc6-454bfa77_0+universal (active)
  curl @8.2.1_0+ssl+universal (active)
  curl-ca-bundle @8.2.1_0 (active)
  cython_select @0.1_2 (active)
  db48 @4.8.30_5+universal (active)
  dbus @1.14.8_0+universal (active)
  docbook-xml @5.0_3 (active)
  docbook-xml-4.1.2 @5.0_1 (active)
  docbook-xml-4.2 @5.0_1 (active)
  docbook-xml-4.3 @5.0_1 (active)
  docbook-xml-4.4 @5.0_1 (active)
  docbook-xml-4.5 @5.0_1 (active)
  docbook-xml-5.0 @5.0_1 (active)
  docbook-xsl-nons @1.79.2_0 (active)
  dzip @3.0_0 (active)
  eigen3-devel @3.4-tracking-20230628_0+gfortran (active)
  expat @2.5.0_0+universal (active)
  fftw-3 @3.3.10_0+gfortran (active)
  fontconfig @2.14.2_0+universal (active)
  freetype @2.12.1_0+universal (active)
  fribidi @1.0.13_0+universal (active)
  gcc10-bootstrap @10.4.0_0+universal (active)
  gcc12 @12.3.0_0+stdlib_flag+universal (active)
  gcc12-libcxx @12.3.0_0+clang14 (active)
  gcc_select @0.1_10 (active)
  gdbm @1.23_0+universal (active)
  gettext @0.21.1_0+universal (active)
  gettext-runtime @0.21.1_0+universal (active)
  gettext-tools-libs @0.21.1_0+universal (active)
  ghc-bootstrap @7.6.3_0 (active)
  git @2.41.0_0+credential_osxkeychain+diff_highlight+doc+pcre+perl5_34+universal (active)
  glib2-devel @2.76.4_0+universal+x11 (active)
  glpk @5.0_0+universal (active)
  gmake @4.4.1_0+universal (active)
  gmp @6.2.1_1+universal (active)
  gnutar @1.34_2+universal (active)
  gnutls-devel @3.8.0_1+universal (active)
  gobject-introspection @1.76.1_0+universal (active)
  gperf @3.1_0 (active)
  graphite2 @1.3.14_0+universal (active)
  grep @3.11_0 (active)
  gsed @4.9_1 (active)
  gtk-doc @1.32_2+python310 (active)
  guile @2.2.7_2 (active)
  guile18 @1.8.8_7 (active)
  gzip @1.12_0+universal (active)
  harfbuzz @6.0.0_1+universal (active)
  help2man @1.49.3_0+universal (active)
  hiredis @1.1.0_1+universal (active)
  i2pd @2.48.0_0+logrotate+universal+upnp (active)
  icu @73.2_0+universal (active)
  isl-devel @0.26_0+universal (active)
  itstool @2.0.7_2+python310 (active)
  kerberos5 @1.21.1_1+universal (active)
  lcms2 @2.15_0+universal (active)
  ld64 @3_4+ld64_274+universal (active)
  ld64-274 @274.2_0+llvm37+universal (active)
  legacy-support-devel @20230722_0+universal (active)
  lerc @4.0.0_1+universal (active)
  less @633_0+pcre+universal (active)
  libarchive @3.7.0_0+universal (active)
  libatomic_ops @7.8.0_0+universal (active)
  libatomicbitvector @2020.05.19_0 (active)
  libb2 @0.98.1_1+universal (active)
  libbtbb @2022-08-26_0 (active)
  libcomerr @1.47.0_0+universal (active)
  libcxx @5.0.1_5 (active)
  libdeflate @1.18_0+universal (active)
  libedit @20221030-3.1_0+universal (active)
  libevent @2.1.12_2+universal (active)
  libffi @3.4.4_0+universal (active)
  libfmt9 @9.1.0_0+universal (active)
  libgcc @6.0_0+universal (active)
  libgcc12 @12.3.0_0+stdlib_flag+universal (active)
  libiconv @1.17_0+universal (active)
  libidn @1.41_0 (active)
  libidn2 @2.3.4_1+universal (active)
  libjpeg-turbo @2.1.5.1_0+universal (active)
  libmng @2.0.3_1+universal (active)
  libmpc @1.3.1_0+universal (active)
  libomp @16.0.6_0+universal (active)
  libpixman @0.38.4_0+universal (active)
  libpng @1.6.40_0+universal (active)
  libpsl @0.21.2-20230117_0+universal (active)
  libtasn1 @4.19.0_0+universal (active)
  libtextstyle @0.21.1_0+universal (active)
  libtool @2.4.7_0+universal (active)
  libunistring @1.1_0+universal (active)
  libusb @1.0.26_0 (active)
  libuv @1.44.2_0+universal (active)
  libxml2 @2.10.4_2+universal (active)
  libxslt @1.1.37_2+universal (active)
  libyaml @0.2.5_0+universal (active)
  llvm-3.4 @3.4.2_16 (active)
  llvm-3.7 @3.7.1_7+universal (active)
  llvm-9.0 @9.0.1_3+emulated_tls+universal (active)
  llvm-11 @11.1.0_4+emulated_tls+universal (active)
  llvm-13 @13.0.1_2+universal (active)
  llvm-14 @14.0.6_0+universal (active)
  llvm-15 @15.0.7_0 (active)
  llvm-16 @16.0.6_0+universal (active)
  llvm_select @2_1 (active)
  lmdb @0.9.31_0+universal (active)
  logrotate @3.21.0_0+universal (active)
  lz4 @1.9.4_0+universal (active)
  lzip @1.23_0+universal (active)
  lzma @23.01_0+universal (active)
  lzo2 @2.10_0+universal (active)
  m4 @1.4.19_1+universal (active)
  macports-libcxx @11.1.0_0 (active)
  McBopomofo @0.9.11_0+universal (active)
  meson @1.1.1_0 (active)
  miniupnpc @2.2.4_0+universal (active)
  mlton @20230721_0 (active)
  mlton-bootstrap @20180207_0 (active)
  mpfr @4.2.0_0+universal (active)
  mpstats @0.2.0_0 (active)
  muparserx @4.0.12_0+universal (active)
  nasm @2.16.01_0+universal (active)
  ncurses @6.4_0+universal (active)
  nettle @3.9.1_0+universal (active)
  newlisp @10.7.5_0 (active)
  nhc98 @1.22_1 (active)
  ninja @1.11.1_1+universal (active)
  nlohmann-json @3.11.2_0 (active)
  OpenBLAS @0.3.23_0+gcc12+lapack (active)
  openssl @3_11+universal (active)
  openssl3 @3.1.1_0+universal (active)
  openssl11 @1.1.1u_1+universal (active)
  ossp-uuid @1.6.2_13+perl5_34+universal (active)
  p5.34-authen-sasl @2.160.0_0 (active)
  p5.34-canary-stability @2013_0 (active)
  p5.34-cgi @4.570.0_0 (active)
  p5.34-clone @0.460.0_0 (active)
  p5.34-common-sense @3.750.0_0 (active)
  p5.34-compress-raw-bzip2 @2.205.0_0+universal (active)
  p5.34-compress-raw-zlib @2.205.0_0+universal (active)
  p5.34-digest-hmac @1.40.0_0 (active)
  p5.34-digest-sha1 @2.130.0_4 (active)
  p5.34-encode @3.190.0_0 (active)
  p5.34-encode-locale @1.50.0_0 (active)
  p5.34-error @0.170.290_0 (active)
  p5.34-file-slurper @0.14.0_0 (active)
  p5.34-getopt-long @2.540.0_0 (active)
  p5.34-gssapi @0.280.0_3 (active)
  p5.34-html-parser @3.810.0_0+universal (active)
  p5.34-html-tagset @3.200.0_4 (active)
  p5.34-http-date @6.60.0_0 (active)
  p5.34-http-message @6.440.0_0 (active)
  p5.34-io-compress @2.205.0_0 (active)
  p5.34-io-compress-brotli @0.4.1_1 (active)
  p5.34-io-html @1.4.0_0 (active)
  p5.34-io-socket-ssl @2.83.0_0 (active)
  p5.34-json @4.100.0_0 (active)
  p5.34-json-xs @4.30.0_0+universal (active)
  p5.34-locale-gettext @1.70.0_1+universal (active)
  p5.34-lwp-mediatypes @6.40.0_0 (active)
  p5.34-mozilla-ca @20221114_0 (active)
  p5.34-net-libidn @0.120.0_5 (active)
  p5.34-net-smtp-ssl @1.40.0_0 (active)
  p5.34-net-ssleay @1.920.0_1+universal (active)
  p5.34-pod-escapes @1.70.0_0 (active)
  p5.34-pod-simple @3.450.0_0 (active)
  p5.34-sub-uplevel @0.280.0_0 (active)
  p5.34-term-readkey @2.380.0_0+universal (active)
  p5.34-test-cpan-meta @0.250.0_0 (active)
  p5.34-test-cpan-meta-json @0.160.0_0 (active)
  p5.34-test-exception @0.430.0_0 (active)
  p5.34-test-nowarnings @1.60.0_0 (active)
  p5.34-test-pod @1.520.0_0 (active)
  p5.34-test-warn @0.370.0_0 (active)
  p5.34-time-hires @1.976.400_0 (active)
  p5.34-time-local @1.350.0_0 (active)
  p5.34-timedate @2.330.0_0 (active)
  p5.34-types-serialiser @1.10.0_0 (active)
  p5.34-uri @5.190.0_0 (active)
  p7zip @16.02_5+universal (active)
  p11-kit @0.25.0_0+universal (active)
  pango @1.50.7_0+quartz+universal+x11 (active)
  pcre @8.45_0+universal (active)
  pcre2 @10.42_0+universal (active)
  perl5 @5.34.1_0+perl5_34 (active)
  perl5.34 @5.34.1_0+universal (active)
  pkgconfig @0.29.2_0+universal (active)
  poco @1.12.4_1+sqlite+universal (active)
  popt @1.18_1+universal (active)
  postgresql13 @13.5_3+universal (active)
  postgresql_select @0.5_1 (active)
  PothosCore @0.7.1_3+universal (active)
  py27-cython @0.29.13_0 (active)
  py27-numpy @1.16.6_3+gfortran+openblas (active)
  py27-pyside @1.2.4_0 (active)
  py27-setuptools @44.1.1_0 (active)
  py27-shiboken @1.2.4_2 (active)
  py310-anytree @2.9.0_0 (active)
  py310-cython @0.29.36_0 (active)
  py310-libxml2 @2.10.3_0+universal (active)
  py310-lxml @4.9.1_0+universal (active)
  py310-mako @1.2.4_0 (active)
  py310-markdown @3.4.3_0 (active)
  py310-markupsafe @2.1.1_0+universal (active)
  py310-numpy @1.24.1_0+gfortran+openblas (active)
  py310-pygments @2.15.1_0 (active)
  py310-pyside @1.2.4_0 (active)
  py310-setuptools @67.7.2_0 (active)
  py310-shiboken @1.2.4_2 (active)
  py310-six @1.16.0_0 (active)
  py310-yaml @6.0_0+universal (active)
  py311-build @0.10.0_0 (active)
  py311-cython @0.29.36_0+universal (active)
  py311-installer @0.7.0_0 (active)
  py311-mako @1.2.4_0 (active)
  py311-markdown @3.4.3_0 (active)
  py311-markupsafe @2.1.1_0+universal (active)
  py311-packaging @23.1_0 (active)
  py311-pygments @2.15.1_0 (active)
  py311-pyproject_hooks @1.0.0_0 (active)
  py311-setuptools @67.7.2_0 (active)
  py311-wheel @0.40.0_0 (active)
  py311-yaml @6.0_0+universal (active)
  pygments_select @0.1_1 (active)
  python2_select @0.0_4 (active)
  python3_select @0.0_3 (active)
  python27 @2.7.18_10 (active)
  python310 @3.10.12_0+universal (active)
  python311 @3.11.4_0+universal (active)
  python_select @0.3_10 (active)
  qt4-mac @4.8.7_14+universal (active)
  R @4.3.1_0+builtin_lapack+cairo+gcc12+openmp+recommended+tcltk+x11 (active)
  R-askpass @1.1_1 (active)
  R-backports @1.4.1_1 (active)
  R-base64enc @0.1-3_1 (active)
  R-bit @4.0.5_1 (active)
  R-bit64 @4.0.5_1 (active)
  R-brew @1.0-8_1 (active)
  R-brio @1.1.3_1 (active)
  R-bslib @0.5.0_0 (active)
  R-cachem @1.0.8_0 (active)
  R-callr @3.7.3_1 (active)
  R-cellranger @1.1.0_1 (active)
  R-checkmate @2.2.0_0 (active)
  R-Ckmeans.1d.dp @4.3.4_1 (active)
  R-cli @3.6.1.9000_0 (active)
  R-clipr @0.8.0_1 (active)
  R-colorspace @2.1-0_1 (active)
  R-commonmark @1.9.0_1 (active)
  R-covr @3.6.2_1 (active)
  R-cpp11 @0.4.5_0 (active)
  R-crayon @1.5.2_1 (active)
  R-crul @1.4.0_0 (active)
  R-curl @5.0.1_0 (active)
  R-cyclocomp @1.1.0_1 (active)
  R-data.table @1.14.8_1 (active)
  R-desc @1.4.2_1 (active)
  R-DiagrammeR @1.0.10_0 (active)
  R-diffobj @0.3.5_1 (active)
  R-digest @0.6.33_0 (active)
  R-downloader @0.4_1 (active)
  R-dplyr @1.1.2_1 (active)
  R-ellipsis @0.3.2_1 (active)
  R-evaluate @0.21_0 (active)
  R-fansi @1.0.3_1 (active)
  R-farver @2.1.1_1 (active)
  R-fastmap @1.1.1_1 (active)
  R-float @0.3-1_1+gfortran (active)
  R-fontawesome @0.5.1_1 (active)
  R-fontBitstreamVera @0.1.1_1 (active)
  R-fontLiberation @0.1.0_1 (active)
  R-fontquiver @0.2.1_1 (active)
  R-fs @1.6.3_0 (active)
  R-gdtools @0.3.3_1 (active)
  R-generics @0.1.3_1 (active)
  R-gfonts @0.2.0_1 (active)
  R-ggplot2 @3.4.2_1 (active)
  R-glue @1.6.2_1 (active)
  R-gridExtra @2.3_1 (active)
  R-gtable @0.3.3_1 (active)
  R-highr @0.10_1 (active)
  R-hms @1.1.3_1 (active)
  R-htmltools @0.5.5_1 (active)
  R-htmlwidgets @1.6.1_1 (active)
  R-httpcode @0.3.0_1 (active)
  R-httpuv @1.6.11_0 (active)
  R-httr @1.4.6_0 (active)
  R-hunspell @3.0.2_1 (active)
  R-igraph @1.5.0_0+gfortran (active)
  R-influenceR @0.1.5_0 (active)
  R-isoband @0.2.7_1 (active)
  R-jquerylib @0.1.4_1 (active)
  R-jsonlite @1.8.7_0 (active)
  R-knitr @1.43_0 (active)
  R-labeling @0.4.2_1 (active)
  R-later @1.3.1_0 (active)
  R-lazyeval @0.2.2_1 (active)
  R-lifecycle @1.0.3_1 (active)
  R-lintr @3.1.0_0 (active)
  R-lmtest @0.9-40_1+gfortran (active)
  R-magrittr @2.0.3_1 (active)
  R-memoise @2.0.1_1 (active)
  R-mime @0.12_1 (active)
  R-mschart @0.4.0_1 (active)
  R-munsell @0.5.0_1 (active)
  R-mvtnorm @1.2-2_0+gfortran (active)
  R-officer @0.6.2_1 (active)
  R-openssl @2.1.0_0 (active)
  R-pillar @1.9.0.9002_1 (active)
  R-pkgconfig @2.0.3_2 (active)
  R-pkgload @1.3.2.1_0 (active)
  R-praise @1.0.0_1 (active)
  R-prettyunits @1.1.1_1 (active)
  R-processx @3.8.2_0 (active)
  R-progress @1.2.2_1 (active)
  R-promises @1.2.0.1_1 (active)
  R-ps @1.7.5.9000_0 (active)
  R-purrr @1.0.1_1 (active)
  R-R6 @2.5.1.9000_0 (active)
  R-ragg @1.2.5_1 (active)
  R-rappdirs @0.3.3_1 (active)
  R-rbibutils @2.2.13_1 (active)
  R-RColorBrewer @1.1-3_1 (active)
  R-Rcpp @1.0.11_0 (active)
  R-RcppEigen @0.3.3.9.3.1_0+gfortran (active)
  R-Rdpack @2.4_1 (active)
  R-readr @2.1.4_1 (active)
  R-rematch @1.0.1_1 (active)
  R-rematch2 @2.1.2_1 (active)
  R-remotes @2.4.2.1_0 (active)
  R-rex @1.2.1_1 (active)
  R-rlang @1.1.1.9000_0 (active)
  R-rmarkdown @2.23_0 (active)
  R-roxygen2 @7.2.3_1 (active)
  R-rpf @1.0.11_1+gfortran (active)
  R-rprojroot @2.0.3_1 (active)
  R-rstudioapi @0.15.0_0 (active)
  R-rvg @0.3.3_0 (active)
  R-sass @0.4.7_0 (active)
  R-scales @1.2.1_1 (active)
  R-shiny @1.7.4.1_0 (active)
  R-sourcetools @0.1.7-1_1 (active)
  R-spelling @2.2.1_1 (active)
  R-stringi @1.7.12_2 (active)
  R-stringr @1.5.0_1 (active)
  R-sys @3.4.2_0 (active)
  R-systemfonts @1.0.4_1 (active)
  R-testthat @3.1.10_0 (active)
  R-textshaping @0.3.6_1 (active)
  R-tibble @3.2.1.9005_0 (active)
  R-tidyr @1.3.0_1 (active)
  R-tidyselect @1.2.0_1 (active)
  R-tinytex @0.45_1 (active)
  R-titanic @0.1.0_1 (active)
  R-triebeard @0.4.1_1 (active)
  R-tzdb @0.4.0_1 (active)
  R-urltools @1.7.3_1 (active)
  R-utf8 @1.2.3.9004_1 (active)
  R-uuid @1.1-0_1 (active)
  R-vcd @1.4-11_1 (active)
  R-vctrs @0.6.3_0 (active)
  R-viridis @0.6.4_0 (active)
  R-viridisLite @0.4.2_0 (active)
  R-visNetwork @2.1.2_1 (active)
  R-vroom @1.6.3_0 (active)
  R-waldo @0.5.1_0 (active)
  R-withr @2.5.0_2 (active)
  R-writexl @1.4.2_1 (active)
  R-xfun @0.39_1 (active)
  R-xml2 @1.3.5_0 (active)
  R-xmlparsedata @1.0.5_1 (active)
  R-xtable @1.8-4_1 (active)
  R-yaml @2.3.7_1 (active)
  R-zip @2.3.0_1 (active)
  R-zoo @1.8-12_1 (active)
  rapidjson @1.1.0_1+universal (active)
  re2c @3.1_0+universal (active)
  readline @8.2.001_0+universal (active)
  rsync @3.2.7_0+universal (active)
  ruby30 @3.0.6_0+universal (active)
  ruby_select @1.3_1 (active)
  sparsehash @2.0.4_0 (active)
  sqlite3 @3.42.0_0+universal (active)
  tcl @8.6.13_0+corefoundation+threads+universal (active)
  texinfo @7.0.3_0+universal (active)
  tiff @4.5.1_1+universal (active)
  tk @8.6.13_1+universal+x11 (active)
  ubertooth @2022-07-19_0 (active)
  unzip @6.0_4+universal (active)
  wget @1.21.4_0+gnutls+universal (active)
  xar @1.8.0.496_0+universal (active)
  Xft2 @2.3.8_0+universal (active)
  xmlcatmgr @2.2_1+universal (active)
  xorg-libice @1.1.1_0+universal (active)
  xorg-libpthread-stubs @0.4_0 (active)
  xorg-libsm @1.2.4_0+universal (active)
  xorg-libX11 @1.8.6_0+universal (active)
  xorg-libXau @1.0.11_0+universal (active)
  xorg-libxcb @1.15_0+python311+universal (active)
  xorg-libXdmcp @1.1.4_0+universal (active)
  xorg-libXext @1.3.5_0+universal (active)
  xorg-libXScrnSaver @1.2.4_0+universal (active)
  xorg-libXt @1.3.0_0+universal (active)
  xorg-util-macros @1.20.0_0 (active)
  xorg-xcb-proto @1.15.2_0+python311 (active)
  xorg-xcb-util @0.4.1_0+universal (active)
  xorg-xorgproto @2023.2_0 (active)
  xorg-xtrans @1.5.0_0 (active)
  xrender @0.9.11_0+universal (active)
  xxhashlib @0.8.1_2+universal (active)
  xz @5.4.3_0+universal (active)
  zip @3.00_1+universal (active)
  zlib @1.2.13_0+universal (active)
  zstd @1.5.5_0+universal (active)

comment:4 Changed 9 months ago by barracuda156

Description: modified (diff)
Port: clang-16 added; llvm-16 removed
Summary: llvm-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 newerclang-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

comment:5 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Summary: 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 newerclang-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

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.

comment:6 in reply to:  5 ; Changed 9 months ago by barracuda156

Replying to 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.

I assume, +universal on Intel has not been tested?

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)

This is a likely suspect for the cause of the failure, but if universal is broken, it is a serious problem. It has also been working fine at least with Clang-14 and earlier; looks like I skipped building Clang-15 as universal here.

  • yours found /opt/local/bin/git; buildbot found /usr/bin/git (probably irrelevant)

This is because Macports tree is built against a bootstrap one, to make git work, since system one is essentially defunct on < 10.9.

  • 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.

Somewhat later I can try with Clang-15 to see if the failure existed already back then, as well as try Clang-16 for i386. I would assume x86_64 without universal should work, since no other relevant differences from buildbots.

comment:7 in reply to:  6 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to barracuda156:

Replying to 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.

I assume, +universal on Intel has not been tested?

Not by me. It would only be built on the buildbot if it were a dependency of another port. Looking at the packages directory, no successful build with universal exists for the current version, which either means it was not attempted or if it was attempted it failed:

http://packages.macports.org/clang-16/

comment:8 Changed 9 months ago by barracuda156

So what could we do to address the issue, assuming it is indeed a failure of universal (which seems nearly a sure thing)?

comment:9 in reply to:  8 ; Changed 9 months ago by cjones051073 (Chris Jones)

Replying to barracuda156:

So what could we do to address the issue, assuming it is indeed a failure of universal (which seems nearly a sure thing)?

Do not use +universal where it is not necessary. This is an option I neither really support, and certainly do not test, with the llvm/clang builds.

You appear to just blindly use this across the board for all your ports, which for me is a poor choice.

comment:10 Changed 9 months ago by mascguy (Christopher Nielsen)

Priority: HighNormal

comment:11 in reply to:  9 Changed 9 months ago by barracuda156

Replying to cjones051073:

Replying to barracuda156:

So what could we do to address the issue, assuming it is indeed a failure of universal (which seems nearly a sure thing)?

Do not use +universal where it is not necessary. This is an option I neither really support, and certainly do not test, with the llvm/clang builds.

You appear to just blindly use this across the board for all your ports, which for me is a poor choice.

So proposed solution is to ignore the bug? :) And we talk about the main default compiler on Intel? Well…

First of all, this won’t solve the issue for cases when universal is needed. Secondly, if decision is to let it be broken, please set universal variant to no, so users don’t end up wasting many hours to gets obscure failure. Better yet, pick an earlier Clang which actually works, when universal is called for.

I do not install ports “blindly” as universal. I need that for testing. It is supposed to work with Clangs on Intel, and normally it does.

comment:12 Changed 9 months ago by kencu (Ken)

Please, let's turn down the temperature.

Chris has both no systems that can run i386/x86_64 universal, and no interest in it. So that won't ever happen.

However, there are plenty of others who do have both systems and interest, and someone will either fix it (most likely) or change the defaults if it can't be fixed.

Give people some time. This "emergency" is barely discovered.

comment:13 Changed 9 months ago by kencu (Ken)

Summary: 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 newerclang-16 @16.0.6 +universal (i386/x86_64): error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.13 or newer

comment:14 in reply to:  12 Changed 9 months ago by barracuda156

Replying to kencu:

Give people some time. This "emergency" is barely discovered.

Sure, no worries.

For the record, Clang-15 is perfectly fine on 10.8.5:

10:~ svacchanda$ port -v installed clang-15 | grep active
  clang-15 @15.0.7_2+analyzer+defaultlibcxx+universal (active) requested_variants='+universal' platform='darwin 12' archs='i386 x86_64' date='2023-07-29T20:30:54+0800'

comment:15 Changed 9 months ago by kencu (Ken)

good to know, hopefully something small to fix then.

comment:16 Changed 9 months ago by kencu (Ken)

So I just built clang-16 +universal i386/x86_64 on my 10.8 VM without any trouble at all, and didn't touch a single thing in the Portfile.

The build breezed past the error you had:

 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 -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -O3 -DNDEBUG -mmacosx-version-min=10.8 -fPIC -faligned-allocation -nostdinc++ -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -W -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Werror=return-type -Wextra-semi -Wundef -Wformat-nonliteral -Wno-user-defined-literals -Wno-covered-switch-default -Wno-suggest-override -Wno-error -std=c++20 -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
[ 92%] Building CXX object libcxx/src/CMakeFiles/cxx_shared.dir/bind.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 -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -O3 -DNDEBUG -mmacosx-version-min=10.8 -fPIC -faligned-allocation -nostdinc++ -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -W -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Werror=return-type -Wextra-semi -Wundef -Wformat-nonliteral -Wno-user-defined-literals -Wno-covered-switch-default -Wno-suggest-override -Wno-error -std=c++20 -MD -MT libcxx/src/CMakeFiles/cxx_shared.dir/bind.cpp.o -MF CMakeFiles/cxx_shared.dir/bind.cpp.o.d -o CMakeFiles/cxx_shared.dir/bind.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/bind.cpp

and then finished up without trouble.

$ port -v installed clang-16
The following ports are currently installed:
  clang-16 @16.0.6_1+analyzer+universal (active) requested_variants='+universal' platform='darwin 12' archs='i386 x86_64' date='2023-07-29T17:33:10-0700'

so most likely there is something not quite right with your 10.8 system.

The most common issue you would have, based on long long experience trying to help folks sort out this kind of issue, is that your Xcode or your CommandLineTools are out of date or mismatched, XcodeVersionInfo#OSX10.8, so please check to make sure your Xcode and installed tools are up to date, and match, like this:

 xcrun --find clang
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang

$ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin12.6.0
Thread model: posix

$ /usr/bin/clang --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin12.6.0
Thread model: posix

If your tools are up to date and current for 10.8, then the most likely thing after that would be a conflicting port is installed, or you have the wrong ld64 or cctools variant selected.

$ port -v installed | grep ld64 | grep active
  ld64 @3_4+ld64_274+universal (active) requested_variants='+universal' platform='darwin 12' archs='i386 x86_64' date='2023-07-29T14:11:40-0700'
  ld64-274 @274.2_0+llvm37+universal (active) requested_variants='+universal' platform='darwin 12' archs='i386 x86_64' date='2023-07-29T14:11:38-0700'

$ port -v installed | grep cctools | grep active
  cctools @949.0.1_3+llvm37+universal (active) requested_variants='+universal' platform='darwin 12' archs='i386 x86_64' date='2023-07-29T14:11:33-0700'
Last edited 9 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:17 in reply to:  16 Changed 9 months ago by barracuda156

Replying to kencu:

So I just built clang-16 +universal i386/x86_64 on my 10.8 VM without any trouble at all, and didn't touch a single thing in the Portfile.

Interesting. Thank you very much for checking.

As for what is installed, what I quoted above is accurate:

cctools @949.0.1_3+llvm37+universal (active)
ld64 @3_4+ld64_274+universal (active)
ld64-274 @274.2_0+llvm37+universal (active)

Looks like identical to what you have. (Since this is 10.8, not 10.6, universal cannot include ppc, so i386+x86_64.)

I am away from that machine until tomorrow, but I recall initially I had outdated Apple tools, which was found out in some ticket, upon which I have updated those to the version I was referred to. I doubt they were updated since then, but I will check the version once I back.

comment:18 Changed 9 months ago by kencu (Ken)

if you find your toolchain is current, try your build again. Sometimes that works.

If that doesn’t work for you, then some conflicting port would be most likely.

No idea which one.

comment:19 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Due to #67875 we are now getting some builds of clang-16 +universal on the buildbot.

comment:20 in reply to:  16 Changed 9 months ago by barracuda156

Replying to kencu:

Looks okay:

Last login: Tue Aug  1 02:28:19 on console
10:~ svacchanda$ xcrun --find clang
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
10:~ svacchanda$ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin12.6.0
Thread model: posix
10:~ svacchanda$ /usr/bin/clang --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin12.6.0
Thread model: posix
10:~ svacchanda$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.8.5
BuildVersion:	12F2560
10:~ svacchanda$ port -v installed cctools | grep active
  cctools @949.0.1_3+llvm37+universal (active) requested_variants='+universal' platform='darwin 12' archs='i386 x86_64' date='2023-05-14T16:08:03+0800'
10:~ svacchanda$ port -v installed ld64 | grep active
  ld64 @3_4+ld64_274+universal (active) requested_variants='+universal' platform='darwin 12' archs='i386 x86_64' date='2022-12-04T03:41:11+0800'
10:~ svacchanda$ port -v installed ld64-274 | grep active
  ld64-274 @274.2_0+llvm37+universal (active) requested_variants='+universal' platform='darwin 12' archs='i386 x86_64' date='2022-12-04T03:41:09+0800'

comment:21 Changed 9 months ago by kencu (Ken)

next then is (as above) just retry the build for Heisenbergs.

If it fails again, then some conflicting port might exist (no idea which one).

comment:22 in reply to:  21 Changed 9 months ago by barracuda156

Replying to kencu:

next then is (as above) just retry the build for Heisenbergs.

If it fails again, then some conflicting port might exist (no idea which one).

Trying that now.

Changed 9 months ago by barracuda156

Attachment: clang-16_2nd_try.log.zip added

Did not help

comment:23 Changed 9 months ago by kencu (Ken)

a bunch of universal builds of clang-16 are showing up here:

https://packages.macports.org/clang-16/

but not the one for 10.8 (yet). I am completely unable to know how to find that attempted build, successful or not, on the buildbot.

But it works fine for me, and the other universal builds, so it's still likely something unique to your machine.

If you really want to see it work, you would do this:

sudo port -f deactive active
sudo port -v -N install clang-16 +universal

and then come back later to find it built.

If that does build on your system, as it likely will, then you will have confirmed some conflicting port was active.

I don't imagine anyone will ever bother to figure out which one, but if you really really wanted to know, you would add back batches of ports until the build fails....

comment:24 in reply to:  23 Changed 9 months ago by barracuda156

Replying to kencu:

If you really want to see it work, you would do this:

sudo port -f deactive active
sudo port -v -N install clang-16 +universal

and then come back later to find it built.

I will try that when I am back to that machine. It takes forever to build, so I could not do it right-away.

comment:25 Changed 7 months ago by barracuda156

Can be closed. After deactivating all ports, it installed:

10:~ svacchanda$ port -v installed clang-16
The following ports are currently installed:
  clang-16 @16.0.6_2+analyzer+universal (active) requested_variants='+universal' platform='darwin 12' archs='i386 x86_64' date='2023-10-12T06:08:29+0800'
Note: See TracTickets for help on using tickets.