Package: src:libvpx
Version: 1.11.0-2
Severity: minor
Tags: sid bookworm
User: [email protected]
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/libvpx_1.11.0-2_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
a - vp9/encoder/vp9_mbgraph.c.o
a - vp9/encoder/x86/temporal_filter_sse4.c.o
a - vp9/encoder/x86/vp9_quantize_sse2.c.o
a - vp9/encoder/x86/vp9_quantize_avx2.c.o
a - vp9/encoder/x86/vp9_diamond_search_sad_avx.c.o
a - vp9/encoder/x86/vp9_highbd_block_error_intrin_sse2.c.o
a - vp9/encoder/x86/highbd_temporal_filter_sse4.c.o
a - vp9/encoder/x86/vp9_dct_intrin_sse2.c.o
a - vp9/encoder/x86/vp9_frame_scale_ssse3.c.o
a - vp9/encoder/x86/vp9_denoiser_sse2.c.o
a - vp9/encoder/x86/vp9_error_avx2.c.o
a - vp9/common/x86/vp9_mfqe_sse2.asm.o
a - vp9/encoder/x86/vp9_dct_sse2.asm.o
a - vp9/encoder/x86/vp9_error_sse2.asm.o
a - vp9/encoder/x86/vp9_quantize_ssse3_x86_64.asm.o
a - vp9/ratectrl_rtc.cc.o
ar -crsv libgtest_g.a third_party/googletest/src/src/gtest-all.cc.o
strip --strip-debug \
          -o libvpx.a libvpx_g.a
a - third_party/googletest/src/src/gtest-all.cc.o
strip --strip-debug \
          -o libvp9rc.a libvp9rc_g.a
strip --strip-debug \
          -o libgtest.a libgtest_g.a
mkdir -p vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/
cp -p libvpx.a vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/libvpx.a
./vp9/encoder/vp9_bitstream.c: In function ‘encode_tile_worker’:
./vp9/encoder/vp9_bitstream.c:948:3: warning: ‘write_modes’ accessing 64 bytes 
in a region of size 16 [-Wstringop-overflow=]
./vp9/encoder/vp9_bitstream.c:948:3: note: referencing argument 8 of type 
‘int[4] *’
./vp9/encoder/vp9_bitstream.c:488:13: note: in a call to function ‘write_modes’
./vp8/decoder/threading.c: In function ‘vp8mt_alloc_temp_buffers.part.0’:
./vp8/decoder/threading.c:768:7: warning: ‘memset’ specified bound between 
18446744071562068032 and 18446744073709551592 exceeds maximum object size 
9223372036854775807 [-Wstringop-overflow=]
./vp8/decoder/threading.c:776:7: warning: ‘memset’ specified bound between 
18446744072635809824 and 18446744073709551592 exceeds maximum object size 
9223372036854775807 [-Wstringop-overflow=]
./vp8/decoder/threading.c:784:7: warning: ‘memset’ specified bound between 
18446744072635809824 and 18446744073709551592 exceeds maximum object size 
9223372036854775807 [-Wstringop-overflow=]
    [LN]      libvpx.so.7.0.0 libvpx.so
    [LN]      libvpx.so.7.0.0 libvpx.so.7
mkdir -p ./
    [LN]      libvpx.so.7.0.0 libvpx.so.7.0
mkdir -p ./
mkdir -p ./
    [LN]      libvpx.so.7.0.0 vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/libvpx.so
mkdir -p vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/
ln -sf  libvpx.so.7.0.0 libvpx.so
ln -sf  libvpx.so.7.0.0 libvpx.so.7
ln -sf  libvpx.so.7.0.0 libvpx.so.7.0
ln -sf  libvpx.so.7.0.0 vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/libvpx.so
    [LN]      libvpx.so.7.0.0 vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/libvpx.so.7
mkdir -p vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/
mkdir -p vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/
    [LN]      libvpx.so.7.0.0 vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/libvpx.so.7.0
mkdir -p vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/
ln -sf  libvpx.so.7.0.0 vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/libvpx.so.7
g++ -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -m64 -o test_libvpx 
ivfenc.c.o md5_utils.c.o test/active_map_refresh_test.cc.o 
test/active_map_test.cc.o test/alt_ref_aq_segment_test.cc.o 
test/altref_test.cc.o test/aq_segment_test.cc.o test/bench.cc.o 
test/borders_test.cc.o test/byte_alignment_test.cc.o test/config_test.cc.o 
test/cpu_speed_test.cc.o test/cq_test.cc.o test/decode_api_test.cc.o 
test/decode_corrupted.cc.o test/decode_svc_test.cc.o 
test/decode_test_driver.cc.o test/encode_api_test.cc.o 
test/encode_test_driver.cc.o test/error_resilience_test.cc.o 
test/external_frame_buffer_test.cc.o test/frame_size_tests.cc.o 
test/invalid_file_test.cc.o test/keyframe_test.cc.o test/level_test.cc.o 
test/realtime_test.cc.o test/resize_test.cc.o test/svc_datarate_test.cc.o 
test/svc_end_to_end_test.cc.o test/svc_test.cc.o test/test_libvpx.cc.o 
test/test_vector_test.cc.o test/test_vectors.cc.o test/timestamp_test.cc.o 
test/user_priv_test.cc.o test/vp8_datarate_test.cc.o test/vp9_datara
 te_test.cc.o test/vp9_end_to_end_test.cc.o test/vp9_ethread_test.cc.o 
test/vp9_ext_ratectrl_test.cc.o test/vp9_lossless_test.cc.o 
test/vp9_motion_vector_test.cc.o test/vp9_skip_loopfilter_test.cc.o 
test/y4m_test.cc.o third_party/libwebm/mkvparser/mkvparser.cc.o 
third_party/libwebm/mkvparser/mkvreader.cc.o webmdec.cc.o y4menc.c.o 
y4minput.c.o -L. -lvpx -lgtest -lpthread -lm -lpthread
cp -p libvpx.so.7.0.0 vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/libvpx.so.7.0.0
ln -sf  libvpx.so.7.0.0 vpx-vp8-vp9-x86_64-linux-v1.11.0/lib/libvpx.so.7.0
/usr/bin/ld: /tmp/cc5R1vEi.ltrans0.ltrans.o:(.debug_info+0x71fb): undefined 
reference to `gtest_all.cc.f7ea9954'
/usr/bin/ld: /tmp/cc5R1vEi.ltrans0.ltrans.o:(.debug_info+0x15f31): undefined 
reference to `gtest_all.cc.f7ea9954'
/usr/bin/ld: /tmp/cc5R1vEi.ltrans0.ltrans.o:(.debug_info+0x15f67): undefined 
reference to `gtest_all.cc.f7ea9954'
/usr/bin/ld: /tmp/cc5R1vEi.ltrans0.ltrans.o:(.debug_info+0x15f74): undefined 
reference to `gtest_all.cc.f7ea9954'
/usr/bin/ld: /tmp/cc5R1vEi.ltrans0.ltrans.o:(.debug_info+0x15f79): undefined 
reference to `gtest_all.cc.f7ea9954'
/usr/bin/ld: /tmp/cc5R1vEi.ltrans0.ltrans.o:(.debug_info+0x15f9f): more 
undefined references to `gtest_all.cc.f7ea9954' follow
collect2: error: ld returned 1 exit status
make[3]: *** [/<<PKGBUILDDIR>>/libs.mk:650: test_libvpx] Error 1
make[2]: *** [Makefile:41: dist] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/builddir'
dh_auto_build: error: cd builddir && make -j8 verbose=yes dist returned exit 
code 2
make[1]: *** [debian/rules:107: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:90: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Reply via email to