#1113359 openmm: FTBFS with CMake 4

#1113359#5
Date:
2025-08-31 23:01:52 UTC
From:
To:
Dear maintainer,

During a test rebuild for CMake 4, openmm failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Generator instance identifier.
CMAKE_GENERATOR_INSTANCE:INTERNAL=
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/build/reproducible-path/openmm-8.1.2+dfsg
//Install .so files without execute permission.
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//Name of CMakeLists files to read
CMAKE_LIST_FILE_NAME:INTERNAL=CMakeLists.txt
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=31
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//Platform information initialized
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_READELF
CMAKE_READELF-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/share/cmake-4.1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_TAPI
CMAKE_TAPI-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/usr/bin/uname
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: COMPRESSIONCOMMAND
COMPRESSIONCOMMAND-ADVANCED:INTERNAL=1
//ADVANCED property for variable: COVERAGE_COMMAND
COVERAGE_COMMAND-ADVANCED:INTERNAL=1
//ADVANCED property for variable: COVERAGE_EXTRA_FLAGS
COVERAGE_EXTRA_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CTEST_SUBMIT_RETRY_COUNT
CTEST_SUBMIT_RETRY_COUNT-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CTEST_SUBMIT_RETRY_DELAY
CTEST_SUBMIT_RETRY_DELAY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: DART_BUILD_ERROR_REPORT_LIMIT
DART_BUILD_ERROR_REPORT_LIMIT-ADVANCED:INTERNAL=1
//ADVANCED property for variable: DART_BUILD_WARNING_REPORT_LIMIT
DART_BUILD_WARNING_REPORT_LIMIT-ADVANCED:INTERNAL=1
//ADVANCED property for variable: DART_ROOT
DART_ROOT-ADVANCED:INTERNAL=1
//ADVANCED property for variable: DART_TESTING_TIMEOUT
DART_TESTING_TIMEOUT-ADVANCED:INTERNAL=1
//ADVANCED property for variable: DART_VERBOSE_BUILD
DART_VERBOSE_BUILD-ADVANCED:INTERNAL=1
//ADVANCED property for variable: DELIVER_CONTINUOUS_EMAIL
DELIVER_CONTINUOUS_EMAIL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: DL_LIBRARY
DL_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: DOXYGEN_DOT_EXECUTABLE
DOXYGEN_DOT_EXECUTABLE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: DOXYGEN_EXECUTABLE
DOXYGEN_EXECUTABLE-ADVANCED:INTERNAL=0
//Single output directory for building all executables.
EXECUTABLE_OUTPUT_PATH:INTERNAL=/build/reproducible-path/openmm-8.1.2+dfsg/obj-aarch64-linux-gnu
//Details about finding Doxygen
FIND_PACKAGE_MESSAGE_DETAILS_Doxygen:INTERNAL=[/usr/bin/doxygen][found components: doxygen missing components: dot][v1.9.8()]
//Details about finding PythonInterp
FIND_PACKAGE_MESSAGE_DETAILS_PythonInterp:INTERNAL=[/usr/bin/python3][v3.13.7()]
//ADVANCED property for variable: GUNZIPCOMMAND
GUNZIPCOMMAND-ADVANCED:INTERNAL=1
//ADVANCED property for variable: JAVACOMMAND
JAVACOMMAND-ADVANCED:INTERNAL=1
//Single output directory for building all libraries.
LIBRARY_OUTPUT_PATH:INTERNAL=/build/reproducible-path/openmm-8.1.2+dfsg/obj-aarch64-linux-gnu
//ADVANCED property for variable: MAKECOMMAND
MAKECOMMAND-ADVANCED:INTERNAL=1
//ADVANCED property for variable: MEMORYCHECK_COMMAND
MEMORYCHECK_COMMAND-ADVANCED:INTERNAL=1
//ADVANCED property for variable: MEMORYCHECK_SUPPRESSIONS_FILE
MEMORYCHECK_SUPPRESSIONS_FILE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENCL_INCLUDE_DIR
OPENCL_INCLUDE_DIR-ADVANCED:INTERNAL=0
//ADVANCED property for variable: OPENCL_LIBRARY
OPENCL_LIBRARY-ADVANCED:INTERNAL=0
//ADVANCED property for variable: OPENMM_BUILD_CPU_TESTS
OPENMM_BUILD_CPU_TESTS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENMM_BUILD_REFERENCE_TESTS
OPENMM_BUILD_REFERENCE_TESTS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENMM_BUILD_SERIALIZATION_TESTS
OPENMM_BUILD_SERIALIZATION_TESTS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENMM_PYTHON_STAGING_DIR
OPENMM_PYTHON_STAGING_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENMM_PYTHON_USER_INSTALL
OPENMM_PYTHON_USER_INSTALL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENMM_VERSION
OPENMM_VERSION-ADVANCED:INTERNAL=1
//ADVANCED property for variable: PYTHON_EXECUTABLE
PYTHON_EXECUTABLE-ADVANCED:INTERNAL=0
//ADVANCED property for variable: SITE
SITE-ADVANCED:INTERNAL=1
//Result of TRY_COMPILE
compile_result_unused:INTERNAL=FALSE

dh_auto_configure: error: cd obj-aarch64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/aarch64-linux-gnu -DCMAKE_VERBOSE_MAKEFILE=ON "-DCMAKE_C_FLAGS_RELEASE=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/openmm-8.1.2+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -fopenmp-simd -DSIMDE_ENABLE_OPENMP" "-DCMAKE_CXX_FLAGS_RELEASE=-g -O2 -ffile-prefix-map=/build/reproducible-path/openmm-8.1.2+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -fopenmp-simd -DSIMDE_ENABLE_OPENMP" "-DCMAKE_SHARED_LINKER_FLAGS_RELEASE=-Wl,-z,relro -Wl,--as-needed" -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON -DCMAKE_BUILD_TYPE=Release -DOPENMM_BUILD_SERIALIZATION_SUPPORT=ON -DOPENMM_BUILD_C_AND_FORTRAN_WRAPPERS=OFF -DOPENMM_BUILD_OPENCL_TESTS=OFF .. returned exit code 1
make[1]: *** [debian/rules:75: override_dh_auto_configure] Error 2
make[1]: Leaving directory '/build/reproducible-path/openmm-8.1.2+dfsg'
make: *** [debian/rules:72: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2025-08-30T11:45:59Z
-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/2406209/

The most likely cause of build failures is the removed backwards compatibility for
CMake versions earlier than 3.5. You can find additional information in my
debian-devel announcement:

https://lists.debian.org/debian-devel/2025/04/msg00310.html

About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.

You can find the build task here:
https://debusine.debian.net/work-request/154348/

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks,
Timo

#1113359#12
Date:
2025-09-01 11:52:22 UTC
From:
To:
I have downgraded the bug to non-RC severity temporarily and reverted
CMake in unstable to version 3.31.6. I plan to re-upgrade in about a
month's time. I realize that despite my April announcement, the upload
to unstable came rather surprising, and I don't want to cause
unnecessary pain.

Also, the build log URL has an unfortunate mistake. The correct URL
should include the workspace, i.e.,

https://debusine.debian.net/debian/developers/artifact/XXXX

CMake 4 will also be available in experimental again, so it can be
used to verify that the bug is fixed.

Cheers
Timo

#1113359#19
Date:
2025-09-29 09:20:07 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
openmm, 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 1113359@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrius Merkys <merkys@debian.org> (supplier of updated openmm 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: Mon, 29 Sep 2025 04:58:19 -0400
Source: openmm
Architecture: source
Version: 8.1.2+dfsg-12
Distribution: unstable
Urgency: medium
Maintainer: Debichem Team <debichem-devel@lists.alioth.debian.org>
Changed-By: Andrius Merkys <merkys@debian.org>
Closes: 1113359
Changes:
 openmm (8.1.2+dfsg-12) unstable; urgency=medium
 .
   * Patch out CMake's CMP0042 (Closes: #1113359)
Checksums-Sha1:
 e3a9b7bce6524813636b3975689aeffe21226991 2579 openmm_8.1.2+dfsg-12.dsc
 01a11106a69fc8eaa8acd6e72db31733189a71f6 23668 openmm_8.1.2+dfsg-12.debian.tar.xz
 f727ec424602f659022a0485f9862ce20ee20b90 10306 openmm_8.1.2+dfsg-12_source.buildinfo
Checksums-Sha256:
 a45e1f2b5bee83a3e5c7ad9810f201e00d7c49e68d6b9aadfec23089e4253b0d 2579 openmm_8.1.2+dfsg-12.dsc
 a14b0e188d1f86de18aba8803e4692de9099e21a07b37e37ca4db5b7980152ad 23668 openmm_8.1.2+dfsg-12.debian.tar.xz
 f4847fd907bb32e2ffe1c153c95ad2bdba2a86f7d2ef14b8d09fc8c6bb0f0e53 10306 openmm_8.1.2+dfsg-12_source.buildinfo
Files:
 bb4e7b00d2315247bff2ad36b824558d 2579 libs optional openmm_8.1.2+dfsg-12.dsc
 dc443aa8cb1b8451175d30a04e53b9e4 23668 libs optional openmm_8.1.2+dfsg-12.debian.tar.xz
 ff78f3cccd03655549cbb62b483d553c 10306 libs optional openmm_8.1.2+dfsg-12_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEdyKS9veshfrgQdQe5fQ/nCc08ocFAmjaSo0SHG1lcmt5c0Bk
ZWJpYW4ub3JnAAoJEOX0P5wnNPKHwBkQAJV/EJk9xoFe7j9eD7rLftm8iPbAVh1E
fbiRaQ0XYibxcV8u+/v3RqUsUOAodIrgFlcEi8ZScKqT5Aq/SS2onEhJhmeNb94l
Yx6HvJQjolyKWrVsTvStoDqIsjrhwERV3jwcne80ObgJnxD18Re2CR6WmlF2sm8e
USziaf3ygZphszFycGmPYSUvrHMjRl70ltoyVz9y3tUFyd/BFxz4s3Li/K5dzSSt
uymFG4zXpQ8sH37SxR7jEi81n8l6mvxJkTSY7adoeUwld1L1/uN26dSU5RZHCRDX
mL8zN8zMVmLdXxzbMrtrtx4k4+e6Hg6SN4HrcQXB618NsrCUXVjDEHz5OFc1ybGQ
nh9q9ZCko6Q0Cp+W2eRQQMaWKEYH8xnOgUQ9XIOWh6VVAHPtWw8LMJbuO+B7QmnN
M6RYwmbZGjqGtuhfDENyjnfyCQtO8Hk0/Ko84PPJh/Vb2iphQK7pG5HrN72A/DYo
gJB6/RNXMq/WF30/fxAWCt1qH3RYiMM/IYn2WyhWzB+Sfpemz0J3/WPjUyITc8OR
gA3t8zWp7vT2EDNJ5SaaQ/MANn/8JxXHqtepR2bHiQ9P8T9a24UJgks5tslc18FD
D4PD8NR/H9GY9wh462r4QtOhiA7thlUngoOOqNK67I2XnwrmKspcTs4P8OD+ZPHu
ZEO88wJa16Vy
=biAp
-----END PGP SIGNATURE-----

#1113359#22
Date:
2025-09-29 09:21:05 UTC
From:
To:
Hello,

Bug #1113359 in openmm 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/debichem-team/openmm/-/commit/aa4f0249bf5c59e9ecf6bf107e7acf54b09f8e53

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1113359