Re:FreeBSD has removed GCC from its base system
by grapeli23 on Tuesday March 03, 2020 @12:36PM
(#22476713)
What compiler is used to build blas and lapack, as well as a whole lot of programming based on them like numpy, scipy, julia, etc.?
Re:FreeBSD has removed GCC from its base system
by loeg on Tuesday March 03, 2020 @01:31PM
(#22477332)
That's encoded in each individual port.
lapack, for example, has USES=fortran[1]. That invokes Uses/fortran.mk[2] and accepts the ports-default fortran compiler, FORTRAN_DEFAULT, which is definedin bsd.default-versions.mk[3] as gfortran (GCC).
[1]: https://svnweb.freebsd.org/ports/head/math/lapack/Makefile?r...
[2]: https://svnweb.freebsd.org/ports/head/Mk/Uses/fortran.mk?rev...
[3]: https://svnweb.freebsd.org/ports/head/Mk/bsd.default-version...
Indeed- "external toolchain" includes gcc6[0] and gcc9[1] ports that can be used specifically for building the FreeBSD base system. These are mostly easy to use, install the flavor for whatever architecture you're building and specify CROSS_TOOLCHAIN=<arch>-gcc6 when you build. More/better/complete information (and examples!) at [2].
[0] https://www.freshports.org/devel/freebsd-gcc6
[1] https://www.freshports.org/devel/freebsd-gcc9
[2] https://wiki.freebsd.org/ExternalToolchain