[Pkg-pascal-devel] Bug#1015468: lazarus: ftbfs with LTO (link time optimization) enabled
Matthias Klose
doko at debian.org
Tue Jul 19 17:54:17 BST 2022
Package: src:lazarus
Version: 2.2.0+dfsg1-6
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/lazarus_2.2.0+dfsg1-6_unstable_dpkglto.log
The last lines of the build log are at the end of this report.
[...]
qtwinapi.inc(426,7) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
qtwinapi.inc(450,5) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
qtwinapi.inc(472,5) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
qtwinapi.inc(596,5) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
qtwinapi.inc(887,7) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
qtwinapi.inc(1389,8) Note: User defined: remove ifdef if I'm wrong about DT_WORDBREAK OBSERVATION
qtwinapi.inc(2187,18) Note: Call to subroutine "function UTF8CodepointSize(p:PChar):LongInt;" marked as inline is not inlined
qtwinapi.inc(2659,7) Warning: unreachable code
qtwinapi.inc(5244,7) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
qtwinapi.inc(5189,9) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
qtwinapi.inc(5127,9) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
qtwinapi.inc(6117,4) Note: User defined: this should return current system active window, not application one, if our app isn''t active. This is per MSDN and pretty win32 specific
qtlclintf.inc(130,5) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
Compiling qtwsextdlgs.pp
Compiling interfaces.pp
Compiling qtwsimglist.pp
67864 lines compiled, 2.5 sec
55 warning(s) issued
54 note(s) issued
/bin/cp -f Makefile.compiled ../../units/x86_64-linux/qt5/LCL.compiled
make[5]: Leaving directory '/<<PKGBUILDDIR>>/lcl/interfaces/qt5'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/lcl/interfaces'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/lcl'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/lcl'
/usr/bin/make -C tools
make[2]: Entering directory '/<<PKGBUILDDIR>>/tools'
Makefile:2878: warning: overriding recipe for target '.'
Makefile:2876: warning: ignoring old recipe for target '.'
/usr/bin/make --assume-new=lazres.pp lazres
make[3]: Entering directory '/<<PKGBUILDDIR>>/tools'
Makefile:2878: warning: overriding recipe for target '.'
Makefile:2876: warning: ignoring old recipe for target '.'
/usr/bin/ppcx64 -gl -Fu. -Fu../components/lazutils/lib/x86_64-linux -Fu../lcl/units/x86_64-linux -Fu../lcl/units/x86_64-linux/nogui -Fu/usr/lib/x86_64-linux-gnu/fpc/3.2.2/units/x86_64-linux/rtl -FE. -FU. -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/11 -Flinclude -Fl/etc/ld.so.conf.d/*.conf @/<<PKGBUILDDIR>>/debian/deb-host-fpc.cfg -dx86_64 lazres.pp
Free Pascal Compiler version 3.2.2+dfsg-11 [2022/05/26] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling lazres.pp
lazres.pp(65,9) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(81,3) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(95,11) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(98,9) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(109,11) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(112,9) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(121,5) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(124,3) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(261,3) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(275,3) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(257,5) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(231,7) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(233,7) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(208,5) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(180,11) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(306,5) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(308,5) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(321,9) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(348,9) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
lazres.pp(361,7) Note: Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
Linking ./lazres
/usr/bin/ld.bfd: -f may not be used without -shared
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [Makefile:2886: lazres] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/tools'
make[2]: *** [Makefile:3309: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/tools'
make[1]: *** [Makefile:3360: lazbuild] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:152: build-arch-stamp] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the Pkg-pascal-devel
mailing list