[MacPorts] #61750: cmake port installation failure - Big Sur AArch64 (M1)
MacPorts
noreply at macports.org
Sat Dec 5 15:24:56 UTC 2020
#61750: cmake port installation failure - Big Sur AArch64 (M1)
----------------------+--------------------
Reporter: raw-bin | Owner: (none)
Type: defect | Status: new
Priority: High | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: |
----------------------+--------------------
Comment (by kencu):
No, it's not the beta tools. As you noted, all your supporting ports have
been built as x86_64, but they need to be built as arm64.
{{{
:info:build /Library/Developer/CommandLineTools/usr/bin/clang++ -pipe -Os
-stdlib=libc++
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch
x86_64 -O3 -DNDEBUG -arch arm64 -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -mmacosx-version-
min=11.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names
-L/opt/local/lib -Wl,-headerpad_max_install_names
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
-arch x86_64 CMakeFiles/pseudo_cuda-memcheck.dir/ret0.cxx.o -o cuda-
memcheck ../../../Source/libCMakeLib.a ../../../Source/kwsys/libcmsys.a
../../../Utilities/std/libcmstd.a /opt/local/lib/libexpat.dylib
/opt/local/lib/libz.dylib /opt/local/lib/libarchive.dylib
/opt/local/lib/libcurl.dylib ../../../Utilities/cmjsoncpp/libcmjsoncpp.a
/opt/local/lib/libuv.dylib ../../../Utilities/cmlibrhash/libcmlibrhash.a
-framework CoreFoundation -framework CoreServices
:info:build make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-v3.19.1-64fb825438a2fecb9eab9933d5d1b926bf6f294b'
:info:build [ 77%] Built target testAffinity
:info:build [ 77%] Building CXX object
Source/CMakeFiles/CTestLib.dir/CTest/cmProcess.cxx.o
:info:build cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.19.1/Source
&& /Library/Developer/CommandLineTools/usr/bin/clang++
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.19.1/Source
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.19.1/Source/LexerParser
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.19.1/Source/CTest
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.19.1/Source/CPack
-isystem
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.19.1/Utilities/std
-isystem
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.19.1/Utilities
-isystem /opt/local/include -pipe -Os -stdlib=libc++
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch
x86_64 -O3 -DNDEBUG -arch arm64 -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -mmacosx-version-
min=11.0 -std=c++17 -o CMakeFiles/CTestLib.dir/CTest/cmProcess.cxx.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.19.1/Source/CTest/cmProcess.cxx
:info:build ld: warning: ignoring file /opt/local/lib/libexpat.dylib,
building for macOS-arm64 but attempting to link with file built for macOS-
x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libz.dylib, building
for macOS-arm64 but attempting to link with file built for macOS-x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libarchive.dylib,
building for macOS-arm64 but attempting to link with file built for macOS-
x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libcurl.dylib,
building for macOS-arm64 but attempting to link with file built for macOS-
x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libuv.dylib,
building for macOS-arm64 but attempting to link with file built for macOS-
x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libarchive.dylib,
building for macOS-arm64 but attempting to link with file built for macOS-
x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libexpat.dylib,
building for macOS-arm64 but attempting to link with file built for macOS-
x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libz.dylib, building
for macOS-arm64 but attempting to link with file built for macOS-x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libuv.dylib,
building for macOS-arm64 but attempting to link with file built for macOS-
x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libcurl.dylib,
building for macOS-arm64 but attempting to link with file built for macOS-
x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libexpat.dylib,
building for macOS-arm64 but attempting to link with file built for macOS-
x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libarchive.dylib,
building for macOS-arm64 but attempting to link with file built for macOS-
x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libcurl.dylib,
building for macOS-arm64 but attempting to link with file built for macOS-
x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libuv.dylib,
building for macOS-arm64 but attempting to link with file built for macOS-
x86_64
:info:build ld: warning: ignoring file /opt/local/lib/libz.dylib, building
for macOS-arm64 but attempting to link with file built for macOS-x86_64
:info:build Undefined symbols for architecture arm64:
:info:build "_archive_entry_acl_clear", referenced from:
:info:build cmArchiveWrite::AddFile(char const*, unsigned long, char
const*) in libCMakeLib.a(cmArchiveWrite.cxx.o)
:info:build "_archive_entry_copy_pathname_w", referenced from:
:info:build cmArchiveWrite::AddFile(char const*, unsigned long, char
const*) in libCMakeLib.a(cmArchiveWrite.cxx.o)
:info:build "_archive_entry_copy_sourcepath_w", referenced from:
:info:build cmArchiveWrite::AddFile(char const*, unsigned long, char
const*) in libCMakeLib.a(cmArchiveWrite.cxx.o)
:info:build "_archive_entry_filetype", referenced from:
:info:build (anonymous
namespace)::extract_tar(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&,
std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >,
std::__1::allocator<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, bool,
bool) in libCMakeLib.a(cmSystemTools.cxx.o)
:info:build "_archive_entry_free", referenced from:
:info:build cmArchiveWrite::AddFile(char const*, unsigned long, char
const*) in libCMakeLib.a(cmArchiveWrite.cxx.o)
}}}
Have you done anything to your MacPorts installation to change it's
default behaviour? If so, please tell us what.
Have you forced any ports to build as x86_64 manually?
Please show us what you have installed, so we can get an idea how you got
here.
{{{
port -v installed
}}}
In the end, all those ports that are installed as x86_64 will need to be
uninstalled and installed with the arm64 architecture.
MacPorts has the ability to build things as universal binaries, but this
is not fully tested for Apple Silicon yet.
--
Ticket URL: <https://trac.macports.org/ticket/61750#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list