[Debichem-devel] Bug#1150537: madness: FTBFS: unrecognized argument to '-flto=' option
Viktor Pashaiev
w.paszajew at gmail.com
Sat Oct 10 15:15:16 BST 2026
Package: madness
Version: 0.10.1+git20200818.eee5fd9f-4
Severity: important
Tags: patch ftbfs
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu stonking
Dear Maintainer,
madness fails to build from source on Ubuntu 26.10:
cc1plus: error: unrecognized argument to '-flto=' option: 'auto -ffat-lto-objects'
Root cause:
MPI_COMPILE_FLAGS returned by CMake FindMPI contains space-delimited flags leaked by mpich wrappers. In src/madness/CMakeLists.txt, passing quoted "${MPI_COMPILE_FLAGS}" without separate_arguments() causes CMake to pass all flags as a single compiler argument to g++.
Fix:
Split MPI_COMPILE_FLAGS using separate_arguments() in external/mpi.cmake and remove quotes in target_compile_options() in src/madness/CMakeLists.txt.
The patch is attached.
Best regards,
Viktor Pashaiev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-mpi-compile-options.patch
Type: text/x-diff
Size: 1206 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debichem-devel/attachments/20261010/b8bf0026/attachment.patch>
More information about the Debichem-devel
mailing list