make error (gfortran: unrecognized option '-cpp') - D-Flow Flexible Mesh - Delft3D
intro story D-Flow FM
D-Flow Flexible MeshD-Flow Flexible Mesh (D-Flow FM) is the new software engine for hydrodynamical simulations on unstructured grids in 1D-2D-3D. Together with the familiar curvilinear meshes from Delft3D 4, the unstructured grid can consist of triangles, pentagons (etc.) and 1D channel networks, all in one single mesh. It combines proven technology from the hydrodynamic engines of Delft3D 4 and SOBEK 2 and adds flexible administration, resulting in:
An overview of the current developments can be found here. The D-Flow FM - team would be delighted if you would participate in discussions on the generation of meshes, the specification of boundary conditions, the running of computations, and all kinds of other relevant topics. Feel free to share your smart questions and/or brilliant solutions!
======================================================= | Sub groups
|
Message Boards
make error (gfortran: unrecognized option '-cpp')
Hello,
I have an error related to make script. All the scripts ran smoothly (autogen.sh, configure).
On make script I have an error:
gfortran: unrecognized option '-cpp'
In file precision.F90:82
Please see the attached file.
Could you please send some advice on approach his?
Best regards,
Cezar BALANESCU
I have an error related to make script. All the scripts ran smoothly (autogen.sh, configure).
On make script I have an error:
gfortran: unrecognized option '-cpp'
In file precision.F90:82
Please see the attached file.
Could you please send some advice on approach his?
Best regards,
Cezar BALANESCU
Attachments:
Fedor Baart, modified 8 Years ago.
RE: make error (gfortran: unrecognized option '-cpp')
Padawan Posts: 44 Join Date: 3/2/11 Recent Posts 00
Cezar BALANESCU:
gfortran: unrecognized option '-cpp'
In file precision.F90:82
The -cpp option is used to preprocess fortran files. This is an intel specific option.
It should not be set. It might be caused by the AC_FC_PREPROCESS macro in m4/fortran.m4 or it might be that someone accidently put it in the Makefile.am. Which version are you building? Could you also post your config.log?
However in your case this -cpp option is not causing a problem. The files are preprocessed anyway because gfortran adheres to the .F90 -> preprocess, .f90 -> no preprocessing convention.
The real problem is here:
In file precision.F90:82 | |
use iso_c_binding | |
1 | |
Fatal Error: Can't open module file 'iso_c_binding.mod' for reading at (1): No such file or directory |
It seems that your fortran compiler can't find the iso_c_binding module. This module is part of newer fortran compilers such as gfortran >= 4.5. Could it be that you are using an older version? In this case the way forward is to use an up to date gfortran.
Cheers,
Fedor
Good morning, Fedor
I am trying to compile 5.00.10.1983 version, revision 2032. Attached you may find the config.log
[EDIT]: Indeed my gnu fortran version is quite old: GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
Please advice.
The operating system is CentOS 5.8 (uname -a -> Linux centos 2.6.18-308.20.1.el5 #1 SMP Tue Nov 13 10:15:12 EST 2012 x86_64 x86_64 x86_64 GNU/Linux)
Should I try to use Mandriva? It has the most recent versions of 'Developement Tools'...
I am trying to compile 5.00.10.1983 version, revision 2032. Attached you may find the config.log
[EDIT]: Indeed my gnu fortran version is quite old: GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
Please advice.
The operating system is CentOS 5.8 (uname -a -> Linux centos 2.6.18-308.20.1.el5 #1 SMP Tue Nov 13 10:15:12 EST 2012 x86_64 x86_64 x86_64 GNU/Linux)
Should I try to use Mandriva? It has the most recent versions of 'Developement Tools'...
Attachments:
Fedor Baart, modified 8 Years ago.
RE: make error (gfortran: unrecognized option '-cpp')
Padawan Posts: 44 Join Date: 3/2/11 Recent Posts 00
Cezar BALANESCU:
[EDIT]: Indeed my gnu fortran version is quite old: GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
Should I try to use Mandriva? It has the most recent versions of 'Developement Tools'...
You need a new gfortran compiler, at least 4.5, or at least that is what I test with. You can either install a new compiler (for example by building it from source) or upgrade your distribution.
Formally we only support the latest redhat, but a lot of people use ubuntu on the forum.
I have no Mandriva experience.
Cheers,
Fedor
Thank you for your advice!
I will upgrade my distribition although, I saw that even for CentOS 6, the gfortran is still at an old version (in the official repository) and I couldn't find another repo with higher version. Compiling gcc is a difficult task (you must know what to do) so I am trying to avoid this step.
Best regards,
Cezar
I will upgrade my distribition although, I saw that even for CentOS 6, the gfortran is still at an old version (in the official repository) and I couldn't find another repo with higher version. Compiling gcc is a difficult task (you must know what to do) so I am trying to avoid this step.
Best regards,
Cezar