[Pkg-electronics-devel] Bug#1015502: libmawk: ftbfs with LTO (link time optimization) enabled

Matthias Klose doko at debian.org
Tue Jul 19 17:55:20 BST 2022


Package: src:libmawk
Version: 1.0.2-3
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/libmawk_1.0.2-3_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
Makefile:44: warning: ignoring prerequisites on suffix rule definition
Makefile:44: warning: ignoring prerequisites on suffix rule definition
Makefile:41: warning: ignoring prerequisites on suffix rule definition
Makefile:41: warning: ignoring prerequisites on suffix rule definition
Makefile:58: warning: ignoring prerequisites on suffix rule definition
Makefile:52: warning: ignoring prerequisites on suffix rule definition
Makefile:52: warning: ignoring prerequisites on suffix rule definition
../lmawk -f io_print1.awk < test.in > io_print1.out 2>&1; true
../lmawk -f io_printf.awk < test.in > io_printf.out 2>&1; true
../lmawk -f nan_if.awk < test.in > nan_if.out 2>&1; true
../lmawk -f nan_ops.awk < test.in > nan_ops.out 2>&1; true
../lmawk -f nan_io.awk < test.in > nan_io.out 2>&1; true
../lmawk -f nan_isnan.awk < test.in > nan_isnan.out 2>&1; true
../lmawk -f math_func.awk < test.in > math_func.out 2>&1; true
../lmawk -f math_fmod.awk < test.in > math_fmod.out 2>&1; true
../lmawk -f arr_orig.awk < test.in > arr_orig.out 2>&1; true
../lmawk -f arr_order.awk < test.in > arr_order.out 2>&1; true
../lmawk -f getln_nul.awk < test.in > getln_nul.out 2>&1; true
../lmawk -f valueof.awk < test.in > valueof.out 2>&1; true
../lmawk -f wc.awk < test.in > wc.out 2>&1; true
../lmawk -f reg012.awk < test.in > reg012.out 2>&1; true
../lmawk -f wfrq0.awk < test.in > wfrq0.out 2>&1; true
../lmawk -f decl.awk < test.in > decl.out 2>&1; true
-> fpe test
-> re_test
../lmawk -f call.awk < test.in > call.out 2>&1; true
../lmawk -f acall.awk < test.in > acall.out 2>&1; true
../lmawk -f stack_grow.awk < test.in > stack_grow.out 2>&1; true
zfifo/zfifo_test < stage1.zf > stage1.out 2>&1; true
zfifo/zfifo_test < stage2.zf > stage2.out 2>&1; true
zfifo/zfifo_test < large_writes.zf > large_writes.out 2>&1; true
zfifo/zfifo_test < small_reads.zf > small_reads.out 2>&1; true
LMAWK=../lmawk ./da_bin_test.sh arr_order.awk
*** buffer overflow detected ***: terminated
Aborted
1,21d0
< function side_effect
< 000 pushd	1
< 002 a_pusha	A
< 004 a_del
< 005 pushd	6
< 007 ret
< 008 ret0
< 
< BEGIN
< 000 pushd	1
< 002 ae_pusha_wr	A
< 004 call	side_effect	0
< 007 assign_arr
< 008 pop
< 009 pushd	1
< 011 ae_pushi	A
< 013 pushd	1
< 015 add
< 016 pushint	1
< 018 print
< 020 exit0
make[5]: *** [Makefile:58: arr_order.dab] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/src/libmawk/regression'
make[4]: *** [Makefile:35: all] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/libmawk/regression'
make[3]: *** [Makefile:118: test] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/libmawk'
make[2]: *** [Makefile:7: test] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:22: test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j8 test "TESTSUITEFLAGS=-j8 --verbose" VERBOSE=1 returned exit code 2
make: *** [debian/rules:8: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-electronics-devel mailing list