[MacPorts] #70671: Can't install gcc-14 universal due to gmp having an architecture mismatch

MacPorts noreply at macports.org
Sun Sep 1 09:55:09 UTC 2024


#70671: Can't install gcc-14 universal due to gmp having an architecture mismatch
------------------------------+--------------------
  Reporter:  programmingkidx  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.10.1
Resolution:                   |   Keywords:
      Port:  gcc-14           |
------------------------------+--------------------
Changes (by ryandesign):

 * keywords:  gmp gcc architectures =>


Old description:

> When I try to install gcc-14 I see an error stating that it's dependency
> gmp has an architecture mismatch. I did try to install all architectures
> for gmp by using both the universal and native variants. I ran this
> command: sudo port install gmp +universal +native
> This did not fix the problem.
>
> I am trying to install gcc-14 on Mac OS 10.5 for both i386 and x86_64
> architectures.
> Gmp is reported to only have i386 and ppc architectures.

New description:

 When I try to install gcc-14 I see an error stating that it's dependency
 gmp has an architecture mismatch. I did try to install all architectures
 for gmp by using both the universal and native variants. I ran this
 command:
 {{{
 sudo port install gmp +universal +native
 }}}
 This did not fix the problem.

 I am trying to install gcc-14 on Mac OS 10.5 for both i386 and x86_64
 architectures.
 Gmp is reported to only have i386 and ppc architectures.

--

Comment:

 Set `universal_archs` in macports.conf to `i386 x86_64`. Perhaps you've
 already done this.

 Using something like `port -vq installed | grep '+universal.*
 archs=.*ppc'`, discover which of your ports are installed with the
 universal variant but including the ppc architecture rather than the
 x86_64 architecture. Uninstall those ports, forcibly (using the `-f` flag)
 if necessary, then clean them and reinstall them so that they will build
 for i386 and x86_64 instead.

-- 
Ticket URL: <https://trac.macports.org/ticket/70671#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list