Thanks Patrick for this bug report, I've been able to reproduce it on a Raspberry Pi 4.
In these cases it is worth checking if the bug is caused by LTO by trying to recompile the package with LTO disabled. This means recompiling the package with
DEB_BUILD_MAINT_OPTIONS=optimize=-lto
As you recompiled the package already, would you be able to try recompiling it without LTO (i.e. by setting that flag) and report your findings?
If you do so, please check that the build log doesn't show:
Building with LTO : yes
and that the compiled is not called with the "-flto" flag. For reference see the build log of the package currently in Jammy [1]: you'll find plenty of "-flto" occurrences.
Thanks Patrick for this bug report, I've been able to reproduce it on a Raspberry Pi 4.
In these cases it is worth checking if the bug is caused by LTO by trying to recompile the package with LTO disabled. This means recompiling the package with
DEB_BUILD_ MAINT_OPTIONS= optimize= -lto
As you recompiled the package already, would you be able to try recompiling it without LTO (i.e. by setting that flag) and report your findings?
If you do so, please check that the build log doesn't show:
Building with LTO : yes
and that the compiled is not called with the "-flto" flag. For reference see the build log of the package currently in Jammy [1]: you'll find plenty of "-flto" occurrences.
See https:/ /wiki.ubuntu. com/ToolChain/ LTO for more information on LTO and on the ways to disable it.
Thanks!
[1] https:/ /launchpadlibra rian.net/ 582144161/ buildlog_ ubuntu- jammy-armhf. glusterfs_ 10.1-1_ BUILDING. txt.gz