Bug#1124022: alicevision: Please disable LTO to fix FTBFS
Sudip Mukherjee
sudipm.mukherjee at gmail.com
Fri Dec 26 19:07:39 GMT 2025
Looks like its happening because gcc-12 is being used to build this package
whereas the other dependencies have been built with gcc-15.
The comment in debian/control explains why gcc-12 is needed.
If you want to enable LTO in Debian builds to reproduce the same failure
then try this patch.
diff -Nru alicevision-3.3.1+repack/debian/rules
alicevision-3.3.1+repack/debian/rules
--- alicevision-3.3.1+repack/debian/rules 2025-11-27
01:27:11.000000000 +0000
+++ alicevision-3.3.1+repack/debian/rules 2025-12-26
18:42:45.000000000 +0000
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
# -*- makefile -*-
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
--
You can read more about LTO in Debian at
https://wiki.debian.org/ToolChain/LTO
--
Regards
Sudip
On Fri, 26 Dec 2025 at 18:17, Dima Kogan <dkogan at debian.org> wrote:
> Thanks for the fix. I'm building the new package for Debian right now.
> Do you know any details of how LTO is supposed to work in a distro? Will
> we ever be able to turn this back on?
>
--
Regards
Sudip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20251226/b119a514/attachment.htm>
More information about the debian-science-maintainers
mailing list