[MacPorts] BigSurProblems modified

MacPorts Wiki noreply at macports.org
Thu Dec 17 17:31:47 UTC 2020


Page "BigSurProblems" was changed by jmroot
Diff URL: <https://trac.macports.org/wiki/BigSurProblems?action=diff&version=4>
Revision 4
Comment: note Rosetta 2 arch pitfalls
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: BigSurProblems
=========================================================================
--- BigSurProblems (version: 3)
+++ BigSurProblems (version: 4)
@@ -18,6 +18,10 @@
 
 Symptoms that your system requires manual installation: console message about missing SDK (`Warning: The macOS 11.x SDK does not appear to be installed. Ports may not build correctly. Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.`) or a message about C compiler being unable to create executables in build logs. 
 
+== Rosetta 2 and build_arch ==
+
+MacPorts defaults to building for the architecture that it is running as. If you have a universal MacPorts installation on an Apple Silicon Mac, and you run it from a terminal emulator that is not a native arm64 binary, MacPorts will end up being run as x86_64, and will build ports accordingly, which is often unexpected. This can be corrected by explicitly setting `build_arch arm64` in macports.conf, or by using a native terminal emulator.
+
 == Tickets for Broken Ports ==
 
 [[TicketQuery(component=ports&status!=closed&keywords~=bigsur,or,component=ports&status!=closed&keywords~=11.0)]]
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/BigSurProblems>
MacPorts <https://www.macports.org/>
Ports system for macOS

This is an automated message. Someone added your email address to be
notified of changes on 'BigSurProblems' page.
If it was not you, please report to admin at macports.org.


More information about the macports-changes mailing list