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/pike8.0_8.0.1116-1.1_unstable_dpkglto.log
The last lines of the build log are at the end of this report.
[...]
checking for USHRT_MAX definition... yes
checking for strchr declaration... existent
checking for malloc declaration... existent
checking for getpeername declaration... existent
checking for popen declaration... existent
checking for getenv declaration... existent
checking for gethostname declaration... existent
checking for size_t... (cached) yes
checking for working alloca.h... yes
checking for alloca... yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... inline
checking for ualarm... yes
checking for setitimer... yes
checking no of arguments to ualarm... 2
checking no of arguments to ptrace... 4
checking type of argument 3 (addr) to ptrace... pointer
checking stack direction... down
checking byteorder... 1234
checking pointer alignment... 8
checking for the RDTSC instruction (x86)... yes
checking for working fork... yes
checking for working fpsetmask... no
checking for working fpsetround... no
checking for working isless... yes
checking for working isunordered... yes
checking for working dlopen... yes
checking for working rint... yes
checking for working GetSystemTimeAsFileTime... no
checking for working gethostname... yes
checking if we can declare environ... yes
checking for union wait (old BSD convention)... no
checking how to extract an unsigned char... by cast
checking how to extract a signed char... by cast
checking if float conversion can cause SIGFPE... no
checking for type of float... IEEE little endian
checking for type of double... IEEE little endian
checking for volatile... yes
checking for sig_atomic_t... yes
checking if signal handlers reset automatically... no
checking full availability of struct rusage members... all there
checking if __func__ exists and works... yes
checking if __FUNCTION__ exists and works... yes
checking for lc __declspec... no
checking for gcc function attributes... yes
checking if va_list is a state pointer... yes
checking for va_copy... yes
checking how to set things nonblocking... USE_FCNTL_O_NONBLOCK
checking how well OOB handling works... TIMEOUT
checking how to printf size_t... %zu, %zx
checking how to printf ptrdiff_t... %td, %tx
checking how to printf off_t... %td, %tx
checking how to printf INT64... %ld, %lx
checking if union initialization works... yes
checking if union aliasing works... yes
checking if port.c works in CONFIGURE_TEST mode... yes
checking if gettimeofday takes two arguments... yes
checking if gethrvtime really works... no
checking if rusage.c works in CONFIGURE_TEST mode... no
configure: error:
rusage.c does not work in CONFIGURE_TEST mode. This is an internal
problem in Pike. configure aborted since further configure tests will
be unreliable.
make[2]: *** [Makefile:95: configure] Error 1
make[1]: *** [Makefile:56: force_configure] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:153: configure-stamp] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2