While disabling LTO completely avoids the problem, per doc/NEWS it seems upstream does support LTO.
I found that enabling LTO again, and only disabling it for double complex test (as per attached patch) allows r-base to build with LTO and the autopkgtests of the affected packages still pass. ** Patch added: "disable-lto-for-double-complex-test.patch" https://bugs.launchpad.net/ubuntu/+source/r-base/+bug/1950283/+attachment/5582541/+files/disable-lto-for-double-complex-test.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1950283 Title: r-base: gfortran and gcc disagree on double complex To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/r-base/+bug/1950283/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs