[MacPorts] #70859: GMP build with GCC, not Clang
MacPorts
noreply at macports.org
Sun Sep 22 00:31:06 UTC 2024
#70859: GMP build with GCC, not Clang
-----------------------+---------------------
Reporter: haberg-1 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: ventura
Port: gmp |
-----------------------+---------------------
Comment (by kencu):
you can force an arm64 Mac into Intel mode like this:
{{{
gmp-6.3.0 % arch -arch x86_64 zsh
}}}
and from then on, the system thinks it's running on an Intel processor:
{{{
% ./configure --enable-cxx && make -j 10
checking build system type... westmere-apple-darwin24.0.0
checking host system type... westmere-apple-darwin24.0.0
checking for a BSD-compatible install... /usr/bin/install -c
...
}}}
as per the ticket, there are certainly plenty of errors with the x86_64
build. This was the last bit that printed:
{{{
============================================================================
Testsuite summary for GNU MP 6.3.0
============================================================================
# TOTAL: 53
# PASS: 20
# SKIP: 1
# XFAIL: 0
# FAIL: 32
# XPASS: 0
# ERROR: 0
============================================================================
See tests/mpn/test-suite.log
}}}
disabling assembly on Intel fixes all of the errors (this was suggested by
a gmp developer but I don't see that anyone ever tested it):
{{{
% ./configure --enable-cxx --disable-assembly && make -j 10
}}}
{{{
============================================================================
Testsuite summary for GNU MP 6.3.0
============================================================================
# TOTAL: 22
# PASS: 22
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
}}}
So the error is in the way the handwritten gmp assembly files are being
handled / compiled by clang. I suspect it is related to the ALIGN(8)
above, so I'll see if changing that makes any difference. Here, we might
be in tricky territory, however.
I haven't tried a gcc build as yet.
--
Ticket URL: <https://trac.macports.org/ticket/70859#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list