Opened 2 months ago
Closed 2 months ago
#70671 closed defect (invalid)
Can't install gcc-14 universal due to gmp having an architecture mismatch
Reported by: | programmingkidx | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.10.1 |
Keywords: | Cc: | ||
Port: | gcc-14 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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.
Change History (4)
comment:1 Changed 2 months ago by jmroot (Joshua Root)
comment:2 Changed 2 months ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | gmp gcc architectures removed |
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.
comment:3 Changed 2 months ago by programmingkidx
Than you Ryan, changing universal_archs solved my problem. Now I am thinking the universal variant feature should be changed to be a simple list of user specified architectures.
comment:4 Changed 2 months ago by jmroot (Joshua Root)
Resolution: | → invalid |
---|---|
Status: | new → closed |
What is your universal_archs setting in macports.conf? If it's commented out it will use the default for your platform which will be
i386 ppc
.