Where is gfortran?

Just trying out Manjaro for first time (KDE 20). I find it has gcc and g++ compilers. When I try to install gcc-gfortran, it complains
error: target not found: gcc-gfortran

Isn’t that gcc-fortran ?


Package Contents

* usr/
* usr/bin/
* usr/bin/f95
* usr/bin/gfortran
* usr/bin/x86_64-pc-linux-gnu-gfortran
* usr/lib/
* usr/lib/gcc/
* usr/lib/gcc/x86_64-pc-linux-gnu/
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/32/
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/32/finclude/
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/32/finclude/ieee_arithmetic.mod
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/32/finclude/ieee_exceptions.mod
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/32/finclude/ieee_features.mod
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/32/libcaf_single.a
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/f951
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/finclude/
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/finclude/ieee_arithmetic.mod
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/finclude/ieee_exceptions.mod
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/finclude/ieee_features.mod
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/finclude/omp_lib.f90
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/finclude/omp_lib.h
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/finclude/omp_lib.mod
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/finclude/omp_lib_kinds.mod
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/finclude/openacc.f90
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/finclude/openacc.mod
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/finclude/openacc_kinds.mod
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/finclude/openacc_lib.h
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/ISO_Fortran_binding.h
* usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/libcaf_single.a
* usr/lib/libgfortran.spec
* usr/lib32/
* usr/lib32/libgfortran.spec
* usr/share/
* usr/share/info/
* usr/share/info/gfortran.info.gz
* usr/share/licenses/
* usr/share/licenses/gcc-fortran/
* usr/share/licenses/gcc-fortran/RUNTIME.LIBRARY.EXCEPTION
* usr/share/man/
* usr/share/man/man1/
* usr/share/man/man1/gfortran.1.gz
1 Like

I enabled AUR in pamac, but that turned out to be a disaster. Then it wants to update more than 500 items as well as installed the desired gfortran. Anyway it fails after integrity check with error message
invalid or corrupted package
That isn’t much help, so I try running pamac from command line. Then it shows a few dozen items
signature from Jan Alexander Steffens is invalid.

this could help:

Btw whats wrong with gcc-fortran package in the official repo? It is gfortran.

pamac install gcc-fortran
1 Like

That is normal. It is a rolling release. You get updates every 2 weeks on stable branch.

Partial upgrade = Broken System (that are not only security updates like on other distros)

Anyway I returned to problem next morning. I installed yay and that did the bulk update.
Then I was able to install gcc9 and gcc8 and then gfortran from GUI pamac.
I don’t like the latest gfortran 10 as it is intolerant of old code, and needs extra compiler flags.
Once I figure out all these idiosyncracies, I will wipe the disk and install from scratch, so I have just the bits and pieces I want.

1 Like