In the latest GNU compiler version the lto-wrapper is activated automatically, which gives the following error:
-----------------------------------------------------------------------------------------
[ 51%] Built target exacorr
[ 52%] Built target dirrci
[ 55%] Built target x2c
[ 56%] Built target localization
[ 59%] Built target luciarel
[ 59%] Built target qcorr
Consolidate compiler generated dependencies of target reladc
[ 63%] Built target reladc
[ 67%] Built target krcc
[ 68%] Built target aoosoc
[ 68%] Built target srdft
[ 72%] Built target dirac
[ 74%] Built target moltra
Consolidate compiler generated dependencies of target cfun
[ 78%] Built target cfun
Consolidate compiler generated dependencies of target lucita
[ 81%] Built target lucita
Consolidate compiler generated dependencies of target krmc
[ 84%] Built target krmc
[ 84%] Built target esr
[ 84%] Built target amfi
[ 90%] Built target relccsd
[ 94%] Built target prp
[ 94%] Built target laplace
[ 94%] Linking Fortran static library libinput.a
[ 95%] Built target input
[ 95%] Linking Fortran static library libobjlib.dirac.x.a
[ 95%] Built target objlib.dirac.x
[ 95%] Linking Fortran executable dirac.x
INFO:basis set directories, basis*, synchronized into current installation directory
lto1: fatal error: multiple prevailing defs for ‘__def_init_module_interest_interface_Type_atom’
compilation terminated.
lto-wrapper: fatal error: gfortran returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/dirac.x.dir/build.make:129: dirac.x] Error 1
make[1]: *** [CMakeFiles/Makefile2:1754: CMakeFiles/dirac.x.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
------------------------------------------------------------------------
It seems to be a problem with Michal's modules.
Solution:
add the flags: --extra-fc-flags=-fno-lto --extra-cc-flags=-fno-lto --extra-cxx-flags=-fno-lto
best,
Johann Pototschnig