Fortran
From Gentoo Wiki
Jump to:navigation
Jump to:search
Fortran is a general-purpose, compiled imperative programming language that is especially suited to numeric computation and scientific computing.
Installation
GCC
gfortran is GCC's Fortran [1] . Enable fortran to obtain gfortran.
If your package.use is a file:
FILE
/etc/portage/package.usesys-devel/gcc fortran
If your package.use is a folder:
FILE
/etc/portage/package.use/gcc-fortransys-devel/gcc fortran
For more information, see this wiki.
Flang
Flang is LLVM's fortran compiler.
USE flags for llvm-runtimes/flang-rt LLVM's Fortran runtime
+debug
Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
test
Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
verify-sig
Verify upstream signatures on distfiles
Data provided by the Gentoo Package Database
·
Last update: 2026年08月29日 13:20
More information about USE flags
Change the FC variable in /etc/portage/make.conf to select the Flang compiler. Changing F77 might also be necessary:
FILE
/etc/portage/make.confFCFLAGS="${FCFLAGS}" FFLAGS="${FFLAGS}" F77FLAGS="${F77FLAGS}" FC="flang" F77="flang"
References
- ↑ https://gcc.gnu.org/fortran Retrieved on Feb 2, 2023
Retrieved from "https://wiki.gentoo.org/index.php?title=Fortran&oldid=1443711"