On 2020-12-02, Артём Мазуров <mazurov.arte...@gmail.com> wrote: > Hello. > > How can I get fortran compiler ? The gfortran port is deprecated and > flang is broken. > >
pkg_add g95 (no idea why the package has that name), the binary is egfortran (like the other GCC compilers in ports the binary name is prefixed 'e' to differentiate itself from the compiler that is in base on some archs). $ egfortran -v Using built-in specs. COLLECT_GCC=egfortran COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-openbsd6.8/8.4.0/lto-wrapper Target: x86_64-unknown-openbsd6.8 Configured with: /usr/obj/ports/gcc-8.4.0/gcc-8.4.0/configure --with-stage1-ldflags=-L/usr/obj/ports/gcc-8.4.0/bootstr ap/lib --verbose --program-transform-name='s,^,e,' --disable-nls --with-system-zlib --disable-libmudflap --disable-lib gomp --disable-libssp --disable-tls --with-gnu-ld --with-gnu-as --enable-threads=posix --enable-wchar_t --with-gmp=/us r/local --enable-languages=c,c++,fortran,objc,ada --disable-libstdcxx-pch --enable-default-ssp --enable-default-pie -- without-isl --enable-cpp --prefix=/usr/local --sysconfdir=/etc --mandir=/usr/local/man --infodir=/usr/local/info --loc alstatedir=/var --disable-silent-rules --disable-gtk-doc Thread model: posix gcc version 8.4.0 (GCC)