Control: forwarded -1 https://github.com/Macaulay2/M2/issues/2604

On Tue, 19 Jul 2022 16:56:31 +0000 Matthias Klose <d...@debian.org> wrote:
This package currently fails to build (at least on the amd64
architecture) with link time optimizations enabled.  For a background
for LTO please see

https://wiki.debian.org/ToolChain/LTO

The goal is to enable this optimization by default in an upcoming
Debian release in dpkg-buildflags for 64bit architectures.  The goal
is to get this package to build with link time optimizations, or to
explicitly disable link time optimizations for this package build.

To reproduce the build failure, enable the lto optimization in
testing/unstable by adding "optimize=+lto" to DEB_BUILD_MAINT_OPTIONS
in the debian/rules file, or if this macro is unset, just set it:

export DEB_BUILD_MAINT_OPTIONS = optimize=+lto

Please try to fix the build with lto enabled, fixing the packaging or
forwarding the issue upstream. If the issue cannot be fixed,
explicitly disallow building the package with lto by adding to your
rules file:

export DEB_BUILD_MAINT_OPTIONS = optimize=-lto

or adding that string to your existing setting of DEB_BUILD_MAINT_OPTIONS.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/dpkglto/macaulay2_1.20+ds-4_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
testing: schorder2.m2
testing: schreyer.m2
testing: schubert.m2
testing: schur.m2
testing: selectInSubring.m2
testing: singular.m2
testing: size.m2
testing: skew.m2
testing: skewmonideal.m2
testing: skewmult.m2
testing: smith.m2
testing: socket.m2
testing: sort.m2
testing: sortcol.m2
testing: sottile.m2
testing: strings.m2
testing: submatrix.m2
testing: subring.m2
testing: subsets.m2
testing: subst.m2
testing: subst2.m2
testing: subst3.m2
testing: subst4.m2
testing: subst5.m2
testing: subst6.m2
testing: subst7.m2
testing: substitute-1.2.m2
testing: sums.m2
testing: symbols.m2
testing: symmetricAlgebra.m2
testing: symmetricPowers.m2
testing: syz-schreyer-order.m2
testing: syz1.m2
testing: syz2.m2
testing: tensor.m2
testing: tensor_monoid.m2
testing: tensor_ring.m2
testing: terms.m2
testing: testdet.m2
testing: testgb.m2
testing: testing.m2
testing: testmat.m2
testing: testpromote.m2
testing: testskew.m2
testing: testsubring.m2
testing: threads.m2
testing: timing-quotient.m2
      -- occasionally caused build failures, see:
      -- https://github.com/Macaulay2/M2/issues/1804
      -- https://github.com/Macaulay2/M2/pull/1811
      -- https://github.com/Macaulay2/M2/pull/1957
      assert BinaryOperation {symbol <, tim#0, standardSecond}
timing-quotient.m2:224:1:(3):[5]: error: assertion failed:
.569765<.381781 is false

I was never able to reliably duplicate this particular error, and I think it's 
likely unrelated to LTO (see [1,2]).

However, PPA builds of Macaulay2 are now consistently failing in Ubuntu 22.10, 
which enables LTO and uses GCC 12 (the GCC version in the above log was 11), 
e.g., [3].  I've opening a corresponding issue upstream [4].

Doug

[1] https://github.com/Macaulay2/M2/issues/1804
[2] https://github.com/Macaulay2/M2/issues/2533
[3] 
https://launchpadlibrarian.net/622254125/buildlog_ubuntu-kinetic-amd64.macaulay2_1.20.0.1+git202209061708-0ppa202209021435~ubuntu22.10.1_BUILDING.txt.gz
[4] https://github.com/Macaulay2/M2/issues/2604

Attachment: signature.asc
Description: PGP signature

Reply via email to