How to cross compile Apple Silicon target under Intel Apple computer ?
ctreleaven at cogeco.ca
Thu Jan 28 18:17:36 UTC 2021
> On Jan 28, 2021, at 12:30 PM, Gilles Caulier <caulier.gilles at gmail.com> 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
> Error: Failed to configure gmp: configure failure: command execution failed
> Error: See /opt/digikam.org.arm64/var/macports/logs/_opt_digikam.org.arm64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets 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/digikam.org.arm64/var/macports/logs/_opt_digikam.org.arm64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/main.log) 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