Hi All,
How to compile the code using gfortran? It seems that the default configure cannot detect the gfortran compiler as
checking if precompiler works on F90 source... no
configure: error: Found precompiler problems in processing the F90/C source.
Thanks,
SL
Configure found precompiler problems
Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan, Nicola Spallanzani
Forum rules
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
- myrta gruning
- Posts: 242
- Joined: Tue Mar 17, 2009 11:38 am
- Contact:
Re: Compiling error
Hallo Shenghui
If the gfortran compiler is in the path it is usually recognized automatically.
To be sure you can try to specify the compiler. You can look at several examples of setup:
http://www.yambo-code.org/download/compiling.php
in general
Gives you all the options.
In case the problem persists please upload the config.log. It is difficult to understand just from the error message
Furthermore, can you please fill in the signature in your profile? It is a forum-rule. Thanks!
Best,
Myrta
If the gfortran compiler is in the path it is usually recognized automatically.
To be sure you can try to specify the compiler. You can look at several examples of setup:
http://www.yambo-code.org/download/compiling.php
in general
Code: Select all
./configure --help
In case the problem persists please upload the config.log. It is difficult to understand just from the error message
Furthermore, can you please fill in the signature in your profile? It is a forum-rule. Thanks!
Best,
Myrta
Dr Myrta Grüning
School of Mathematics and Physics
Queen's University Belfast - Northern Ireland
http://www.researcherid.com/rid/B-1515-2009
School of Mathematics and Physics
Queen's University Belfast - Northern Ireland
http://www.researcherid.com/rid/B-1515-2009
- Daniele Varsano
- Posts: 4198
- Joined: Tue Mar 17, 2009 2:23 pm
- Contact:
Re: Compiling error
Dear Shengie,
the error you have it seems to be related to the precompiler and not to the fortran compiler.
As Myrta suggested, have a look to the options (configure -h) and probably you will need to assign the precompiler command.
In general, please post all the useful files (here config.log) that can be useful to spot the probem.
Best,
Daniele
the error you have it seems to be related to the precompiler and not to the fortran compiler.
As Myrta suggested, have a look to the options (configure -h) and probably you will need to assign the precompiler command.
In general, please post all the useful files (here config.log) that can be useful to spot the probem.
Best,
Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/
- myrta gruning
- Posts: 242
- Joined: Tue Mar 17, 2009 11:38 am
- Contact:
Re: Configure found precompiler problems
Dear Shengui
I split the topic as indeed your problem is with the precompiler, not related with previous posts in the topic.
Which gcc are you using?
It seems that there may be problems related to the new preprocessor behaviour.
Let us know
Myrta
I split the topic as indeed your problem is with the precompiler, not related with previous posts in the topic.
Which gcc are you using?
It seems that there may be problems related to the new preprocessor behaviour.
Let us know
Myrta
Dr Myrta Grüning
School of Mathematics and Physics
Queen's University Belfast - Northern Ireland
http://www.researcherid.com/rid/B-1515-2009
School of Mathematics and Physics
Queen's University Belfast - Northern Ireland
http://www.researcherid.com/rid/B-1515-2009