[MacPorts] #64041: [M1 Monterey] Trying to replace gcc-devel with gcc11: py39-numpy+gcc11+openblas fails
MacPorts
noreply at macports.org
Tue Nov 23 13:24:07 UTC 2021
#64041: [M1 Monterey] Trying to replace gcc-devel with gcc11:
py39-numpy+gcc11+openblas fails
--------------------+------------------------
Reporter: ednl | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: | Port: py39-numpy
--------------------+------------------------
For some reason, gfortran is linked to gcc-devel instead of to gcc11, and
py39-numpy depends on gfortran in its standard variant. So when I
unsuspectingly installed py39-numpy, I got gcc-devel "for free". Trouble
is, there's a new version of the devel branch every day, so any general
port upgrade now pulls in new versions of gcc-devel and libgcc-devel,
which takes a long time.
While trying to replace the current versions, I successfully installed
`gcc11`, `libgcc11` and `openblas +gcc11 +lapack +native` but when I tried
to `sudo port install py39-numpy +gcc11 +openblas` it fails with:
{{{
:info:build In file included from
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:205,
:info:build from
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:50,
:info:build from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py39-numpy/work/numpy-1.21.4/numpy/core/src/umath/_umath_tests.dispatch.c:9,
:info:build from
build/src.macosx-12.0-arm64-3.9/numpy/core/src/umath/_umath_tests.dispatch.asimdhp.c:12:
:info:build /opt/local/lib/gcc11/gcc/arm64-apple-darwin21/11.1.0/include-
fixed/math.h:68:5: error: #error "Unsupported value of
__FLT_EVAL_METHOD__."
:info:build 68 | # error "Unsupported value of __FLT_EVAL_METHOD__."
}}}
Apart from fixing this error, I think the best solution would be to once
again link `gfortran` to a normal release version of gcc, if that is
possible, instead of to gcc-devel.
--
Ticket URL: <https://trac.macports.org/ticket/64041>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list