On Thu, 11 Sep 2025 00:38:02 -0500
Dima Pasechnik <[email protected]> wrote:

> the normal way to build scipy on clang platforms is to use gfortran and 
> clang/clang++ for the rest.
> 
> Why would one want to do ports-gcc & clang++? Looks like a bug to me 

scipy (and also math/py-numpy) has fortran in MODULES.

        infrastructure/mk/fortran.port.mk does
MODFORTRAN_COMPILER ?= gfortran
MODULES += gcc4
MODGCC4_LANGS += fortran

        lang/gcc/8/gcc4.port.mk does
# Always include support for this
MODGCC4_LANGS +=        c

        The result is
$ cd /usr/ports/math/py-scipy
$ make show=MODGCC4_LANGS
fortran c

The port uses gcc for both Fortran and C.  I can't change the C
compiler from gcc to clang, because I need gfortran.  I wouldn't
change the C++ compiler from clang to gcc, because gcc's libestdc++
might conflict with clang's libc++.
--gkoehler

Reply via email to