[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1015509: libpam-x2go: ftbfs with LTO (link time optimization) enabled



Package: src:libpam-x2go
Version: 0.0.2.0-3
Severity: minor
Tags: sid bookworm
User: debian-gcc@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/libpam-x2go_0.0.2.0-3_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/<<PKGBUILDDIR>>/tests'
make[3]: Entering directory '/<<PKGBUILDDIR>>'
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
touch debian/stamp-makefile-build
/usr/bin/make -C . check
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Making check in src
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
Making check in tests
make[2]: Entering directory '/<<PKGBUILDDIR>>/tests'
/usr/bin/make  test-x2go-auth test-x2go-wrapper   libgtest.a libgtest_main.a
make[3]: Entering directory '/<<PKGBUILDDIR>>/tests'
gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/src/gtest  -I../src -Wall -Werror  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -c -o test-x2go-auth.o test-x2go-auth.c
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wall -g  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security  -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -o test-x2go-auth test-x2go-auth.o   
libtool: link: gcc -Wall -g -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -flto=auto -ffat-lto-objects -Wl,-z -Wl,relro -Wl,-z -Wl,now -o test-x2go-auth test-x2go-auth.o 
gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/src/gtest  -I../src -Wall -Werror  -I../include -I../src -I/usr/src/gtest   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -c -o test_x2go_wrapper-mock_pam.o `test -f 'mock_pam.c' || echo './'`mock_pam.c
gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/src/gtest  -I../src -Wall -Werror  -I../include -I../src -I/usr/src/gtest   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -c -o test_x2go_wrapper-mock_guest.o `test -f 'mock_guest.c' || echo './'`mock_guest.c
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/src/gtest  -I../src -Wall -Werror  -I../include -I../src -I/usr/src/gtest   -Wdate-time -D_FORTIFY_SOURCE=2    -DAUTH_CHECK="\"/<<PKGBUILDDIR>>/tests/test-x2go-auth\""    -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -c -o test_x2go_wrapper-test-x2go-wrapper.o `test -f 'test-x2go-wrapper.cc' || echo './'`test-x2go-wrapper.cc
cp /usr/src/gtest/src/gtest-all.cc .
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/src/gtest -w -I/usr/src/gtest  -I../src -Wall -Werror   -Wdate-time -D_FORTIFY_SOURCE=2     -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -c -o libgtest_a-gtest-all.o `test -f 'gtest-all.cc' || echo './'`gtest-all.cc
rm -f libgtest.a
ar cru libgtest.a libgtest_a-gtest-all.o  
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libgtest.a
cp /usr/src/gtest/src/gtest_main.cc .
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/src/gtest -w -I/usr/src/gtest  -I../src -Wall -Werror   -Wdate-time -D_FORTIFY_SOURCE=2     -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -c -o libgtest_main_a-gtest_main.o `test -f 'gtest_main.cc' || echo './'`gtest_main.cc
rm -f libgtest_main.a
ar cru libgtest_main.a libgtest_main_a-gtest_main.o  
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libgtest_main.a
/bin/bash ../libtool  --tag=CXX   --mode=link g++    -DAUTH_CHECK="\"/<<PKGBUILDDIR>>/tests/test-x2go-auth\""    -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security   -pthread  -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -o test-x2go-wrapper test_x2go_wrapper-mock_pam.o test_x2go_wrapper-mock_guest.o test_x2go_wrapper-test-x2go-wrapper.o  libgtest.a libgtest_main.a ../src/pam_x2go.la -lssh  

*** Warning: Linking the executable test-x2go-wrapper against the loadable module
*** pam_x2go.so is not portable!
libtool: link: g++ -DAUTH_CHECK=\"/<<PKGBUILDDIR>>/tests/test-x2go-auth\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -flto=auto -ffat-lto-objects -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/test-x2go-wrapper test_x2go_wrapper-mock_pam.o test_x2go_wrapper-mock_guest.o test_x2go_wrapper-test-x2go-wrapper.o  libgtest.a libgtest_main.a ../src/.libs/pam_x2go.so -lssh -pthread -Wl,-rpath -Wl,/lib/security
make[3]: 'libgtest.a' is up to date.
make[3]: 'libgtest_main.a' is up to date.
make[3]: Leaving directory '/<<PKGBUILDDIR>>/tests'
/usr/bin/make  check-TESTS
make[3]: Entering directory '/<<PKGBUILDDIR>>/tests'
make[4]: Entering directory '/<<PKGBUILDDIR>>/tests'
FAIL: test-x2go-wrapper
============================================================================
Testsuite summary for libpam-x2go 0.0.2.0
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
============================================================================
make[4]: *** [Makefile:941: test-suite.log] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/tests'
make[3]: *** [Makefile:1049: check-TESTS] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/tests'
make[2]: *** [Makefile:1122: check-am] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/tests'
make[1]: *** [Makefile:423: check-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [/usr/share/cdbs/1/class/makefile.mk:113: debian/stamp-makefile-check] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: