#1034873 cmake: FTBFS with LTO enabled on many architectures

Package:
cmake
Source:
cmake
Description:
cross-platform, open-source make system
Submitter:
Lukas Märdian
Date:
2023-05-23 17:09:03 UTC
Severity:
normal
Tags:
#1034873#5
Date:
2023-04-26 10:52:04 UTC
From:
To:
Dear Maintainer,

cmake fails to execute its buildtime tests (dh_auto_test) on many
architectures when compiled with an LTO enabled toolchain. E.g. on
Ubuntu/s390x (GCC-12 + LTO) we saw the following failure:

# CustomCommand test fails (LP: #2015872):
#   No INFO:symbol[pcStatic] found in: /<<PKGBUILDDIR>>/Build/Tests/CustomCommand/bin/libpcStatic.a
# Instead it produces the following strings (`strings bin/libpcStatic.a | grep INFO`):
#   INFO:symbol[]
#   INFO:symbol[pcStatic]

We also observed failures on amd64, arm64 and ppc64el in addition to s390x:
https://git.launchpad.net/ubuntu/+source/lto-disabled-list/commit/?h=ubuntu/devel&id=57f7f783

This does not directly affect Debian, but might, should Debian enable LTO by
default in the future. Please consider disabling LTO explicitly to avoid such
(future) failure, or feel free to reject this patch if you feel like it doesn't
apply.

  * d/rules: Disable LTO to fix FTBFS (LP: #2015872)


Thanks for considering the patch.

#1034873#8
Date:
2023-05-03 22:16:57 UTC
From:
To:
Hello,

Bug #1034873 in cmake reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/cmake-team/cmake/-/commit/e62fa5e5320cec75521be0c0bbbef29e134be5aa
------------------------------------------------------------------------
Do not build with link-time optimization

Closes: #1034873
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1034873

#1034873#15
Date:
2023-05-23 17:05:42 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
cmake, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1034873@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Timo Röhling <roehling@debian.org> (supplier of updated cmake package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 23 May 2023 17:38:50 +0200
Source: cmake
Architecture: source
Version: 3.26.4-1
Distribution: experimental
Urgency: medium
Maintainer: Debian CMake Team <pkg-cmake-team@lists.alioth.debian.org>
Changed-By: Timo Röhling <roehling@debian.org>
Closes: 1034873
Changes:
 cmake (3.26.4-1) experimental; urgency=medium
 .
   * Do not build with link-time optimization (Closes: #1034873)
   * Fix obsolete Build-Depend on libncurses5-dev
   * Bump Standards-Version to 4.6.2
   * New upstream version 3.26.4
   * Enable hardening flags
Checksums-Sha1:
 f4bde2b4d07e8588b24cbf26bb6724a0ad766af9 3886 cmake_3.26.4-1.dsc
 8aedeb1dcd57f0b3c8953ac3589a898373899faa 10669686 cmake_3.26.4.orig.tar.gz
 033b804e31059b788216f85f1cc9429dc58ec2a4 32608 cmake_3.26.4-1.debian.tar.xz
 291dcd17ddd629aba049ab0b16a6ab751a0f2148 13358 cmake_3.26.4-1_amd64.buildinfo
Checksums-Sha256:
 a1f588ef72f3f18d02ddcd3959aad255dac7ab96db11aac19a8d257126a5cb9e 3886 cmake_3.26.4-1.dsc
 313b6880c291bd4fe31c0aa51d6e62659282a521e695f30d5cc0d25abbd5c208 10669686 cmake_3.26.4.orig.tar.gz
 7565457e49e32b5fc38521db2267328b65f515b625026b789a95e0ccef826172 32608 cmake_3.26.4-1.debian.tar.xz
 04d22bf0dbef283b16533e0fe1c6a6e841ea1d49941b9c55296ad3e2eb326f2d 13358 cmake_3.26.4-1_amd64.buildinfo
Files:
 c75dbcdfe1808f023965881eba02e211 3886 devel optional cmake_3.26.4-1.dsc
 9095556a3b268fd88c995d2bb4c90320 10669686 devel optional cmake_3.26.4.orig.tar.gz
 3abcc43db520cf2ec91fc23288eb9c92 32608 devel optional cmake_3.26.4-1.debian.tar.xz
 62955c7ad98dbd91a38df83945cdaee3 13358 devel optional cmake_3.26.4-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQHIBAEBCgAyFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmRs7jIUHHJvZWhsaW5n
QGRlYmlhbi5vcmcACgkQ+C8H+466LVlYZwwA9EfRuVAqjqon/0QBUtvO7smRRTtK
qj+TjJmvWgHCtW1lqud7/k2TjNleLmEF9nP+Rl7koUYrsJuZEKel5pB81eSyy+3e
5FAiK7ezTiA29QaumERhKJwNO5DsdVgLScQm3qjKgX7MIhiz+gecE9Eza7gy2G1Z
MMUsylf1NZBSgrjxVDZfyC1JxMmswWOdCXxHqtcPrO4iXCSC+89A3zHTj9j4uUpY
1UoLyHJAwSZr848kyIjWUNWQLRImkyo5pgH/Nt54DyZSFWNq8aD/Q1w6QHLdjk3J
pjCAE+KiSEQNuLRTBed2Y6j6n56+DJN8PqaWmmJ6/kAqieQTNYbOaNoKU8rz1UGG
L9t+AD3b3R7XWLkoHQeF8QWeoc/RYEK5YGlpzNq+GZSKwwZjcQ6eRkok227SLc3l
52N/5NLqLokV6MPsO1N+kYVfA5utCJguWScAz0O7AZiV6ctoydM/+QJVf1OZBSqR
F8inXjFCPXsc3qvbULgwI2HprM564AeXcubq
=xuhT
-----END PGP SIGNATURE-----