the configure script of Yambo tries to be clever and guess appropriate compiler flags from the name of the compiler executables.
However, CSCS HPC machines (http://user.cscs.ch/) use compiler driver scripts, which point to different compilers depending on the module currently loaded.
For example, the Fortran compiler is always invoked by 'ftn' . 'module load PrgEnv-gnu' will make it point to gfortran.
Of course, this means that the guess by the configure script will fail in some cases. In my case, Yambo thinks it recognizes 'ftn' and sets some FCFLAGS that the actual compiler does not understand. The problem is that the configure error message does not tell me this:
Code: Select all
configure: error: Found precompiler problems in processing the F90/C source.
Code: Select all
eval $FC $FCFLAGS -c conftest.${F90SUFFIX} 2> conftest.er2
As for the larger picture, it would be nice to have some general instructions on how to proceed with the configure, when your system is using compiler drivers. The modules framework is becoming quite common on HPC machines.
Best,
leoteo
EDIT: Before writing this post, I was tempted to file a bug report on http://qe-forge.org/gf/project/yambo/tracker, but I see only two quite old bug reports there. Should this tracker be used or not?