[MacPorts] #67836: 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
MacPorts
noreply at macports.org
Sun Jul 30 00:38:22 UTC 2023
#67836: 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
---------------------------+--------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: mountainlion
Port: clang-16 |
---------------------------+--------------------------
Comment (by 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.
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,
<https://trac.macports.org/wiki/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'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/67836#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list