Bug#1015579: perl: ftbfs with LTO (link time optimization) enabled

Matthias Klose doko at debian.org
Tue Jul 19 17:57:58 BST 2022


Package: src:perl
Version: 5.34.0-4
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

Please try to fix the build with lto enabled, fixing the packaging or
forwarding the issue upstream. If the issue cannot be fixed,
explicitly disallow building the package with lto by adding to your
rules file:

export DEB_BUILD_MAINT_OPTIONS = optimize=-lto

or adding that string to your existing setting of DEB_BUILD_MAINT_OPTIONS.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/dpkglto/perl_5.34.0-4_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
cpan/version/t/04strict_lax ...................................... ok
cpan/version/t/05sigdie .......................................... ok
cpan/version/t/06noop ............................................ ok
cpan/version/t/07locale .......................................... ok
cpan/version/t/08_corelist ....................................... ok
cpan/version/t/09_list_util ...................................... ok
cpan/version/t/10_lyon ........................................... ok
cpan/version/t/11_taint .......................................... skipped
t/perf/benchmarks ................................................ ok
t/perf/opcount ................................................... ok
t/perf/optree .................................................... ok
t/perf/speed ..................................................... ok
t/perf/taint ..................................................... ok
t/porting/FindExt ................................................ ok
t/porting/args_assert ............................................ ok
t/porting/authors ................................................ skipped
t/porting/bench .................................................. skipped
t/porting/bench_selftest ......................................... ok
t/porting/bincompat .............................................. ok
t/porting/checkcase .............................................. ok
t/porting/checkcfgvar ............................................ ok
t/porting/cmp_version ............................................ skipped
t/porting/copyright .............................................. ok
t/porting/corelist ............................................... ok
t/porting/customized ............................................. skipped
t/porting/diag ................................................... ok
t/porting/dual-life .............................................. ok
t/porting/exec-bit ............................................... ok
t/porting/extrefs ................................................ ok
t/porting/filenames .............................................. ok
t/porting/globvar ................................................ ok
t/porting/libperl ................................................ # Failed test 4 - has data const symbols at porting/libperl.t line 323
# Failed test 5 - has PL_no_mem at porting/libperl.t line 324
FAILED at test 4
t/porting/maintainers ............................................ ok
t/porting/manifest ............................................... ok
t/porting/pending-author ......................................... skipped
t/porting/perlfunc ............................................... ok
t/porting/pod_rules .............................................. ok
t/porting/podcheck ............................................... skipped
t/porting/re_context ............................................. ok
t/porting/readme ................................................. ok
t/porting/regen .................................................. ok
t/porting/ss_dup ................................................. ok
t/porting/test_bootstrap ......................................... ok
t/porting/utils .................................................. skipped
Failed 1 test out of 2543, 99.96% okay.
	porting/libperl.t
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
###   ./perl harness
### in the 't' directory since most (>=80%) of the tests succeeded.
### You may have to set your dynamic library search path,
### LD_LIBRARY_PATH, to point to the build directory:
###   setenv LD_LIBRARY_PATH `pwd`; cd t; ./perl harness
###   LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH; cd t; ./perl harness
###   export LD_LIBRARY_PATH=`pwd`; cd t; ./perl harness
### for csh-style shells, like tcsh; or for traditional/modern
### Bourne-style shells, like bash, ksh, and zsh, respectively.
Elapsed: 1282 sec
u=12.11  s=4.54  cu=1398.92  cs=92.95  scripts=2543  tests=1196755
make[2]: *** [makefile:808: test] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build-static'
dh_auto_test: error: cd build-static && make -j8 test returned exit code 2
make[1]: *** [debian/rules:127: perl-test-static-stamp] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:79: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2




More information about the Perl-maintainers mailing list