Fortran installation problem
Harald Arnesen
lists at skogtun.org
Sat Jan 4 02:58:47 PST 2025
Sayed Mohammad Badiezadegan [2025-01-04 06:41:05]:
> Hi Naoya,
>
> Thank you for your response.
> I try it with the GCC according to my attached screenshot but it doesn't
> work.
>
> I think I should add another repository (Not Avalon)
I assume you use the GCC in the base system, which does not include the
Fortran compiler. Install a GCC from dports (I use gcc13), and you will
get gfortran:
$ which gfortran
/usr/local/bin/gfortran
$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc13/gcc/x86_64-portbld-dragonfly6.4/13.2.0/lto-wrapper
Target: x86_64-portbld-dragonfly6.4
Configured with: /construction/lang/gcc13/gcc-13.2.0/configure
--disable-multilib --with-build-config=bootstrap-lto-noplugin
--disable-nls --enable-gnu-indirect-function --enable-host-shared
--enable-plugin --libdir=/usr/local/lib/gcc13
--libexecdir=/usr/local/libexec/gcc13 --program-suffix=13
--with-as=/usr/local/bin/as --with-gmp=/usr/local
--with-gxx-include-dir=/usr/local/lib/gcc13/include/c++/
--with-gxx-libcxx-include-dir=/usr/include/c++/v1
--with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection'
--with-system-zlib --without-zstd
--enable-languages=c,c++,objc,fortran,jit --prefix=/usr/local
--localstatedir=/var --mandir=/usr/local/man
--infodir=/usr/local/share/info/gcc13 --build=x86_64-portbld-dragonfly6.4
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.2.0 (FreeBSD Ports Collection)
More information about the Users
mailing list