--- Begin Message ---
Package: src:papi
Version: 6.0.0~dfsg-2
Severity: minor
Tags: sid bookworm
User: debian-...@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/papi_6.0.0~dfsg-2_unstable_dpkglto.log
The last lines of the build log are at the end of this report.
[...]
gfortran -I../testlib -I. -I.. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -Wextra -Wall
-ffixed-line-length-132 -O1 openmp.F ../testlib/libtestlib.a
../libpapi.so.6.0.0.0 -o openmp -flto=auto -ffat-lto-objects -Wl,-z,relro
-Wl,-z,now -ldl -fopenmp
f951: Warning: command-line option ‘-Wformat=1’ is valid for C/C++/ObjC/ObjC++
but not for Fortran
f951: Warning: ‘-Werror=’ argument ‘-Werror=format-security’ is not valid for
Fortran
cc -I../testlib -I.. -I. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto
-ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security
-Wdate-time -D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -c matrix_multiply.c
gfortran -I../testlib -I. -I.. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -Wextra -Wall
-ffixed-line-length-132 -O1 serial_hl.F ../testlib/libtestlib.a
../testlib/do_loops.o ../libpapi.so.6.0.0.0 -flto=auto -ffat-lto-objects
-Wl,-z,relro -Wl,-z,now -ldl -o serial_hl
cc -o papi_cost papi_cost.o cost_utils.o ../libpapi.so.6.0.0.0 -lm -flto=auto
-ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl
f951: Warning: command-line option ‘-Wformat=1’ is valid for C/C++/ObjC/ObjC++
but not for Fortran
f951: Warning: ‘-Werror=’ argument ‘-Werror=format-security’ is not valid for
Fortran
cc -o papi_clockres papi_clockres.o ../libpapi.so.6.0.0.0
../testlib/clockcore.o -lm -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now
-ldl
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c
papi_l1_dcm.c
cc -I../testlib -I.. -I. -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto
-ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security
-Wdate-time -D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -c cache_helper.c
cc -o papi_native_avail papi_native_avail.o ../libpapi.so.6.0.0.0
print_header.o -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl
papi_sde_interface.o
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c
papi_l2_dca.c
cc -o papi_command_line papi_command_line.o ../libpapi.so.6.0.0.0
../testlib/do_loops.o -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src/components/perf_event/tests'
+ make -C components/perf_event_uncore/tests
cc -o papi_event_chooser papi_event_chooser.o print_header.o
../libpapi.so.6.0.0.0 -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl
make[2]: Entering directory
'/<<PKGBUILDDIR>>/src/components/perf_event_uncore/tests'
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I. -I/usr/include -I../../..
-I../../../testlib -I../../../validation_tests -c -o perf_event_uncore.o
perf_event_uncore.c
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c
papi_l2_dcm.c
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src/ftests'
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c
papi_l2_dcr.c
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -I. -I/usr/include -I../../..
-I../../../testlib -I../../../validation_tests -c perf_event_uncore_lib.c
cc -o papi_decode papi_decode.o ../libpapi.so.6.0.0.0 -flto=auto
-ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c
papi_l2_dcw.c
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c
papi_ld_ins.c
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c
papi_sr_ins.c
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I. -I/usr/include -I../../..
-I../../../testlib -I../../../validation_tests -c -o perf_event_uncore_attach.o
perf_event_uncore_attach.c
cc -o papi_xml_event_info papi_xml_event_info.o ../libpapi.so.6.0.0.0
-flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl
cc -o papi_version papi_version.o ../libpapi.so.6.0.0.0 -flto=auto
-ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl
cc -o papi_multiplex_cost papi_multiplex_cost.o cost_utils.o
../libpapi.so.6.0.0.0 -lm -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now
-ldl
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c
papi_ref_cyc.c
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c
papi_tot_cyc.c
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I. -I/usr/include -I../../..
-I../../../testlib -I../../../validation_tests -c -o
perf_event_uncore_multiple.o perf_event_uncore_multiple.c
cc -o papi_component_avail papi_component_avail.o ../libpapi.so.6.0.0.0
print_header.o -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c
papi_tot_ins.c
cc -o papi_error_codes papi_error_codes.o ../libpapi.so.6.0.0.0 -flto=auto
-ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl
cc -o fp_validation_hl fp_validation_hl.o ../testlib/libtestlib.a
flops_testcode.o ../libpapi.so.6.0.0.0 -flto=auto -ffat-lto-objects
-Wl,-z,relro -Wl,-z,now -ldl -lrt -lpthread
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I. -I/usr/include -I../../..
-I../../../testlib -I../../../validation_tests -c -o
perf_event_amd_northbridge.o perf_event_amd_northbridge.c
cc -o cycles_validation cycles_validation.o ../testlib/libtestlib.a
display_error.o instructions_testcode.o ../libpapi.so.6.0.0.0 -flto=auto
-ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl -lrt
cc -o flops_validation flops_validation.o ../testlib/libtestlib.a
display_error.o branches_testcode.o flops_testcode.o ../libpapi.so.6.0.0.0
-flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl -lrt
cc -o papi_br_cn papi_br_cn.o ../testlib/libtestlib.a display_error.o
branches_testcode.o ../libpapi.so.6.0.0.0 -flto=auto -ffat-lto-objects
-Wl,-z,relro -Wl,-z,now -ldl -flto=auto -ffat-lto-objects -Wl,-z,relro
-Wl,-z,now -ldl -lrt
cc -o papi_br_ins papi_br_ins.o ../testlib/libtestlib.a display_error.o
branches_testcode.o ../libpapi.so.6.0.0.0 -flto=auto -ffat-lto-objects
-Wl,-z,relro -Wl,-z,now -ldl -lrt
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -O2 -I. -I/usr/include -I../../..
-I../../../testlib -I../../../validation_tests -c -o perf_event_uncore_cbox.o
perf_event_uncore_cbox.c
cc -o papi_br_msp papi_br_msp.o ../testlib/libtestlib.a display_error.o
branches_testcode.o ../libpapi.so.6.0.0.0 -flto=auto -ffat-lto-objects
-Wl,-z,relro -Wl,-z,now -ldl -lrt
cc -o papi_br_ntk papi_br_ntk.o ../testlib/libtestlib.a display_error.o
branches_testcode.o ../libpapi.so.6.0.0.0 -flto=auto -ffat-lto-objects
-Wl,-z,relro -Wl,-z,now -ldl -lrt
instructions_testcode.c: Assembler messages:
instructions_testcode.c:13: Error: symbol `test_loop' is already defined
make[3]: *** [/tmp/ccsnxGXX.mk:2: /tmp/cc5pR6XG.ltrans0.ltrans.o] Error 1
cc -o papi_br_prc papi_br_prc.o ../testlib/libtestlib.a display_error.o
branches_testcode.o ../libpapi.so.6.0.0.0 -flto=auto -ffat-lto-objects
-Wl,-z,relro -Wl,-z,now -ldl -lrt
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile.recipies:45: cycles_validation] Error 1
make[2]: *** Waiting for unfinished jobs....
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -o perf_event_uncore perf_event_uncore.o
perf_event_uncore_lib.o ../../../testlib/libtestlib.a
../../../testlib/do_loops.o ../../../libpapi.so.6.0.0.0 -flto=auto
-ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -o perf_event_uncore_attach
perf_event_uncore_attach.o perf_event_uncore_lib.o
../../../testlib/libtestlib.a ../../../testlib/do_loops.o
../../../libpapi.so.6.0.0.0 -flto=auto -ffat-lto-objects -Wl,-z,relro
-Wl,-z,now -ldl
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -I. -I/usr/include -I../../..
-I../../../testlib -I../../../validation_tests -o perf_event_uncore_multiple
perf_event_uncore_multiple.o perf_event_uncore_lib.o
../../../testlib/libtestlib.a ../../../testlib/do_loops.o
../../../libpapi.so.6.0.0.0 -flto=auto -ffat-lto-objects -Wl,-z,relro
-Wl,-z,now -ldl
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -o perf_event_amd_northbridge
perf_event_amd_northbridge.o ../../../testlib/libtestlib.a
../../../testlib/do_loops.o ../../../libpapi.so.6.0.0.0 -flto=auto
-ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g -Wextra -Wall -I. -I/usr/include -I../../..
-I../../../testlib -I../../../validation_tests -o perf_event_uncore_cbox
perf_event_uncore_cbox.o perf_event_uncore_lib.o ../../../testlib/libtestlib.a
../../../testlib/do_loops.o ../../../libpapi.so.6.0.0.0 -flto=auto
-ffat-lto-objects -Wl,-z,relro -Wl,-z,now -ldl
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src/utils'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src/validation_tests'
make[1]: *** [Makefile.inc:239: validation_tests] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
'/<<PKGBUILDDIR>>/src/components/perf_event_uncore/tests'
make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
dh_auto_build: error: cd src && make -j8 returned exit code 2
make: *** [debian/rules:19: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--- End Message ---