[MacPorts] #66427: migrating macports to M1 fails to build cmake
MacPorts
noreply at macports.org
Fri Dec 9 22:37:22 UTC 2022
#66427: migrating macports to M1 fails to build cmake
-----------------------+--------------------
Reporter: jmgurney | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: cmake |
-----------------------+--------------------
Comment (by jmgurney):
I actually had to install cmake earlier so that I could manually build the
editor I use, so it's already installed:
{{{
$ port installed | grep cmake
cmake @3.24.3_0 (active)
cmake-bootstrap @3.9.6_0 (active)
}}}
And yet I'm still getting the error.
I still tried it:
{{{
$ sudo port -v install cmake
Password:
Error: Requested variants "" do not match those the build was started
with: "+universal".
Error: Please use the same variants again, or run 'port clean cmake' first
to remove the existing partially completed build.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port cmake failed
$ sudo port clean cmake
---> Cleaning cmake
$ sudo port -v install cmake
---> Computing dependencies for cmake.
---> Cleaning cmake
---> Removing work directory for cmake
---> Scanning binaries for linking errors
Could not open
/System/Library/Frameworks/QTKit.framework/Versions/A/QTKit: Error opening
or reading file (referenced from /opt/local/share/java/android-sdk-
macosx/tools/emulator)
Could not open
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation:
Error opening or reading file (referenced from
/Library/Java/JavaVirtualMachines/openjdk13-bootstrap/Contents/Home/lib/libawt.dylib)
---> Found 16 broken files, matching files to ports
---> Found 2 broken ports, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt:
android @23
openjdk13-bootstrap @13
Continue? [Y/n]: n
}}}
and then I tried to run the restore ports script again, and got the same
thing.
As for the dependency, it looks like it's from tiff via qt4-mac, but I
don't know exactly.
I did a quick peak at which packets are requested to be universal, and
neither qt4-mac nor tiff are listed directly.
Is there a way to make cmake NOT be universal? since it clearly breaks
when done so, or lie about it being universal, and build only a single
platform?
--
Ticket URL: <https://trac.macports.org/ticket/66427#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list