Index | Thread | Search

From:
George Koehler <kernigh@gmail.com>
Subject:
Re: unbreak math/py-scipy on powerpc, drop -latomic
To:
Dima Pasechnik <dima@sagemath.org>
Cc:
ports@openbsd.org
Date:
Thu, 11 Sep 2025 10:53:23 -0400

Download raw body.

Thread
On Thu, 11 Sep 2025 00:38:02 -0500
Dima Pasechnik <dima@sagemath.org> 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