lto-wrapper conflict with interest module

73 views
Skip to first unread message

Johann Pototschnig

unread,
Aug 23, 2022, 12:25:57 PM8/23/22
to dirac-users
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

Ilias Miroslav, doc. RNDr., PhD.

unread,
Aug 23, 2022, 3:43:33 PM8/23/22
to dirac...@googlegroups.com
Hi,

thanks for reporting.

Maybe here, https://gitlab.com/dirac/dirac/-/blob/master/cmake/custom/workarounds.cmake , is the place to insert this new exception, for the newest GNU.

Miro



From: dirac...@googlegroups.com <dirac...@googlegroups.com> on behalf of Johann Pototschnig <pototschn...@gmail.com>
Sent: Tuesday, August 23, 2022 18:25
To: dirac-users <dirac...@googlegroups.com>
Subject: [dirac-users] lto-wrapper conflict with interest module
 
--
You received this message because you are subscribed to the Google Groups "dirac-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dirac-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dirac-users/66c57b8f-6462-421b-9cc8-94a45e63a4e9n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages