[MacPorts] #58832: OpenBLAS @0.3.7: build error when build_arch != host arch: ../kernel/x86/amax.S:64:2: error: ../kernel/x86/amax.S:instruction requires: Not 64-bit mode
MacPorts
noreply at macports.org
Mon Nov 11 20:05:59 UTC 2019
#58832: OpenBLAS @0.3.7: build error when build_arch != host arch:
../kernel/x86/amax.S:64:2: error: ../kernel/x86/amax.S:instruction
requires: Not 64-bit mode
-----------------------+------------------------------
Reporter: kencu | Owner: NicosPavlov
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: lion snowleopard
Port: openblas |
-----------------------+------------------------------
Comment (by rmottola):
I read the portfile and it says:
{{{
#OS 10.7-10.11 supports down to iMac 7,1, with Intel Core 2 Duo
architecture
#OS 10.12-13 supports down to iMac 10,1, with Intel Core 2 Duo
architecture
if {${os.major} >= 11 && ${os.major} <= 17} {
set blas_arch "CORE2"
}
}}}
So, it appears that the CPU is set correctly for 10.7 !
10.6 is:
{{{
#OS 10.6 supports down to Intel Core Solo architecture
if {${os.major} == 10} {
set blas_arch "YONAH"
}
}}}
for 10.5 we have:
{{{
#Define target based on version of OS
#OS 10.5 supports down to Intel Core Solo (Intel) or PowerPC G4
if {${os.major} == 9} {
if {${os.arch} eq "i386" || [variant_isset universal]} {
set blas_arch "CORE2"
} else {
set blas_arch "PPCG4"
}
}
}}}
since it is setting "down to" if you are correct that CORE2 is required,
it is wrong for 10.6 and 10.5 when in universal mode!
But... why does it fail even on 10.7 with that error, I don't fully
understand.
--
Ticket URL: <https://trac.macports.org/ticket/58832#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list