Jump to content

Fortran: Difference between revisions

From Official NixOS Wiki
Initial page
(No difference)

Revision as of 16:58, 31 May 2025

The Fortran front-end for gcc can be enabled by adding pkgs.gfortran.cc to environment.systemPackages. [1]

The addition of .cc indicates the compiler itself without the gcc-wrapper Nix expressions used by gfortran. [2]

If both gcc and gfortran (without .cc) are included, the build may fail with an error of the form: "collision between gfortran-wrapper/bin/gcc and gcc-wrapper/bin/gcc".