How to cross compile Apple Silicon target under Intel Apple computer ?

Craig Treleaven ctreleaven at
Thu Jan 28 18:17:36 UTC 2021

> On Jan 28, 2021, at 12:30 PM, Gilles Caulier <caulier.gilles at> wrote:
> Of course as expected it stop after a long computation. It's about a
> ffmpeg dependency : gmp
> [macports/tools] > clean gmp
> --->  Cleaning gmp
> [macports/tools] > install gmp
> --->  Fetching distfiles for gmp
> --->  Verifying checksums for gmp
> --->  Extracting gmp
> --->  Applying patches to gmp
> --->  Configuring gmp
> Error: Failed to configure gmp, consult
> /opt/
> Error: Failed to configure gmp: configure failure: command execution failed
> Error: See /opt/
> for details.
> Error: Follow to report a bug.
> Error: Processing of port gmp failed
> Are you agree that i open a generic file in bugzilla about digiKam
> deps broken with Silicon ?

Hmm, as of now, our user-submitted stats show that there are 14 installations of gmp on arm64:

I presume that is people with M1 Macs that have built and installed the software on that machine.

The gmp port has some interesting comments and code related to informing configure of the (build?) CPU in order to get the best performance from the compiled code:

If I read this right (which is not at all assured), it looks like for non-universal builds, it is assuming that the build and target machines must have the same CPU.  Which is the opposite of your case.  Perhaps you would have more success if you tried to build everything universal?

The log referred to in the error messages  (/opt/ should confirm if this was the problem.

If you need to file a ticket, have it refer to the port that is failing.  It is not especially relevant that you are trying to install it as part of the installation of DigiKam.  


More information about the macports-users mailing list