Bug#1015672: sundials: ftbfs with LTO (link time optimization) enabled
Graham Inggs
ginggs at debian.org
Sat Dec 31 11:18:46 GMT 2022
The failure described in this report was fixed in openSUSE by the
attached patch.
However, since 6.4.1, there's a new failure, already reported upstream [1].
[ 85%] Linking Fortran executable test_fsunlinsol_spfgmr_mod_serial
cd /<<PKGBUILDDIR>>/debian/build/examples/sunlinsol/spfgmr/serial &&
/usr/bin/cmake -E cmake_link_script
CMakeFiles/test_fsunlinsol_spfgmr_mod_serial.dir/link.txt --verbose=1
/usr/bin/gfortran -Wl,-Bsymbolic-functions -flto=auto
-ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-flto=auto -ffat-lto-objects -fstack-protector-strong
CMakeFiles/test_fsunlinsol_spfgmr_mod_serial.dir/test_fsunlinsol_spfgmr_mod_serial.f90.o
CMakeFiles/test_fsunlinsol_spfgmr_mod_serial.dir/__/__/__/utilities/test_utilities.f90.o
CMakeFiles/test_fsunlinsol_spfgmr_mod_serial.dir/__/__/test_sunlinsol.f90.o
-o test_fsunlinsol_spfgmr_mod_serial
-Wl,-rpath,/<<PKGBUILDDIR>>/debian/build/src/nvector/serial/fmod:/<<PKGBUILDDIR>>/debian/build/src/sunlinsol/spfgmr/fmod:/<<PKGBUILDDIR>>/debian/build/src/nvector/serial:/<<PKGBUILDDIR>>/debian/build/src/sunlinsol/spfgmr
../../../../src/nvector/serial/fmod/libsundials_fnvecserial_mod.so.6.4.1
../../../../src/sunlinsol/spfgmr/fmod/libsundials_fsunlinsolspfgmr_mod.so.4.4.1
-lm ../../../../src/nvector/serial/libsundials_nvecserial.so.6.4.1
../../../../src/sunlinsol/spfgmr/libsundials_sunlinsolspfgmr.so.4.4.1
/usr/bin/ld: /tmp/ccYCfvAc.ltrans0.ltrans.o: in function `MAIN__':
/usr/bin/cmake -E cmake_copy_f90_mod
examples/sunlinsol/spbcgs/serial/test_sunlinsol.mod
examples/sunlinsol/spbcgs/serial/CMakeFiles/test_fsunlinsol_spbcgs_mod_serial.dir/test_sunlinsol.mod.stamp
GNU
./debian/build/examples/sunlinsol/spgmr/serial/./examples/sunlinsol/test_sunlinsol.f90:213:
undefined reference to `psolve'
/usr/bin/ld: /tmp/ccYCfvAc.ltrans0.ltrans.o:./debian/build/examples/sunlinsol/spgmr/serial/./examples/sunlinsol/test_sunlinsol.f90:213:
undefined reference to `psetup'
collect2: error: ld returned 1 exit status
[1] https://github.com/LLNL/sundials/issues/97
-------------- next part --------------
A non-text attachment was scrubbed...
Name: link-pthread.patch
Type: text/x-patch
Size: 450 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20221231/6d81e9d6/attachment.bin>
More information about the debian-science-maintainers
mailing list