tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Please help testing/debugging math/openblas (and variants) on Darwin
* On 2026-03-01 at 03:47 GMT, Brian Callahan wrote:
It's not wrong for clang to be called there; in fact it's necessary.
At that time, clang is compiling a C module and linking all in one
invocation, and libgfortran happens to be one of the libraries needed.
You just need to add the path to the library to LDFLAGS (for me, it's
-L/opt/pkg/gcc12/lib).
Sure, I understand that it's compiling C sources. But if we're using
gfortran, it should be using the exact GCC that is providing that
fortran implementation, rather than clang, in my opinion. GCC will be
correctly configured to look in the right places for its libraries, as
well as perhaps patched to ensure that the gcc*-libs package runtime
library paths are correctly used.
I wouldn't be certain, for example, that clang would correctly use:
https://github.com/TritonDataCenter/pkgsrc-extra/blob/main/gcc14-macos-libs/files/specs.pkgsrc
in this situation.
--
Jonathan Perkin pkgsrc.smartos.org
Open Source Complete Cloud www.tritondatacenter.com
Home |
Main Index |
Thread Index |
Old Index