[Debian-on-mobile-maintainers] Bug#1015419: gnome-calls: ftbfs with LTO (link time optimization) enabled

Evangelos Ribeiro Tzaras devrtz at fortysixandtwo.eu
Mon Aug 8 19:28:21 BST 2022


control: forwarded -1 https://gitlab.gnome.org/GNOME/calls/-/issues/427

Hi Matthias and thanks for your report!

On Tue, 19 Jul 2022 16:52:35 +0000 Matthias Klose <doko at debian.org> wrote:
> Package: src:gnome-calls
> Version: 43~alpha.1-1
> Severity: minor
> Tags: sid bookworm
> User: debian-gcc at lists.debian.org
> Usertags: ftbfs-lto
> 
> 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

I could reproduce the issue just now, thanks for the pointer.

Part of the problem seems to be that some wrapped symbols
(`--wrap` is passed to `ld`)
is being stripped/optimized away.

I will investigate and try to come up with a fix upstream
so that the we don't need to be wrapping the symbol any more.

It is currently used to stop the code from making contact lookups
which I've expected to fail in test environments such as in CI or buildd.
For this reason the tests use --wrap to stub out the relevant functions.

The correct fix would be making sure that the contact lookups with folks
are using some sort of dummy backend
as discussed in the upstream issue.

-- 
Cheers,

Evangelos
PGP: B938 6554 B7DD 266B CB8E 29A9 90F0 C9B1 8A6B 4A19
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 870 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/debian-on-mobile-maintainers/attachments/20220808/b220d9e5/attachment.sig>


More information about the Debian-on-mobile-maintainers mailing list