Looks like you have the new ubuntu 22.04.1 error with gnu 11 suite of packages.
This post might help you
Good morning everyone, I am writing this post here so that everyone can benefit from my struggles. First a little background information on this error. In GNU 9 there were flags for gfortran that were hidden in the system code that were turn on by default. These flags allowed for old fortran...
forum.mmm.ucar.edu
Thank you for your kind help. I am not sure if the system is ubuntu, because I installed in ucar Cheyenne HPC. I just use module load GNU. I follw the instruction your provide to paste in .bashrc. I am not sure if I am doing correct. However, I can' t go through it I got error message as follow:
gcc: fatal error: no input files
compilation terminated.
gfortran: fatal error: no input files
compilation terminated.
g++: fatal error: no input files
compilation terminated.
-bash: [: -ge: unary operator expected
-bash: [: -ge: unary operator expected
-bash: [: -ge: unary operator expected
##########################################
FFLAGS =
FCFLAGS =
##########################################
May I ask you to help me to figure it out?