[Pkg-pascal-devel] Bug#1015407: fpc: ftbfs with LTO (link time optimization) enabled

Matthias Klose doko at debian.org
Tue Jul 19 17:52:13 BST 2022


Package: src:fpc
Version: 3.2.2+dfsg-11
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/fpc_3.2.2+dfsg-11_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
writer.inc(414,28) Note: Call to subroutine "operator :=(const source:Variant):Extended;" marked as inline is not inlined
writer.inc(418,27) Note: Call to subroutine "operator :=(const source:Variant):Double;" marked as inline is not inlined
writer.inc(423,33) Note: Call to subroutine "operator :=(const source:Variant):UnicodeString;" marked as inline is not inlined
17129 lines compiled, 0.4 sec
7 warning(s) issued
31 note(s) issued
/usr/bin/ppcx64 -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU../../rtl/units/x86_64-linux -Cg @/<<PKGBUILDDIR>>/debian/deb-build-fpc.cfg -dx86_64 ../unix/cwstring.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 ../unix/cwstring.pp
cwstring.pp(436,5) Note: Local variable "iconvindex" not used
cwstring.pp(739,21) Warning: function result variable of a managed type does not seem to be initialized
1190 lines compiled, 0.0 sec
1 warning(s) issued
1 note(s) issued
/usr/bin/ppcx64 -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU../../rtl/units/x86_64-linux -Cg @/<<PKGBUILDDIR>>/debian/deb-build-fpc.cfg -dx86_64 fpcylix.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 fpcylix.pp
55 lines compiled, 0.0 sec
/usr/bin/ppcx64 -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU../../rtl/units/x86_64-linux -Cg @/<<PKGBUILDDIR>>/debian/deb-build-fpc.cfg -dx86_64 ../inc/softfpu.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 ../inc/softfpu.pp
9387 lines compiled, 0.1 sec
/usr/bin/ppcx64 -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU../../rtl/units/x86_64-linux -Cg @/<<PKGBUILDDIR>>/debian/deb-build-fpc.cfg -dx86_64 ../inc/sfpux80.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 ../inc/sfpux80.pp
18799 lines compiled, 0.1 sec
/usr/bin/ppcx64 -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU../../rtl/units/x86_64-linux -Cg @/<<PKGBUILDDIR>>/debian/deb-build-fpc.cfg -dx86_64 ../inc/ufloatx80.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 ../inc/ufloatx80.pp
91 lines compiled, 0.0 sec
/usr/bin/ppcx64 -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU../../rtl/units/x86_64-linux -Cg @/<<PKGBUILDDIR>>/debian/deb-build-fpc.cfg -dx86_64 ../inc/sfpu128.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 ../inc/sfpu128.pp
18799 lines compiled, 0.1 sec
/usr/bin/ppcx64 -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU../../rtl/units/x86_64-linux -Cg @/<<PKGBUILDDIR>>/debian/deb-build-fpc.cfg -dx86_64 ../inc/ufloat128.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 ../inc/ufloat128.pp
91 lines compiled, 0.0 sec
make[2]: Leaving directory '/<<PKGBUILDDIR>>/fpcsrc/rtl/linux'
make[1]: Leaving directory '/<<PKGBUILDDIR>>/fpcsrc/rtl'
/usr/bin/make -C fpcsrc/packages/fpmkunit bootstrap OPT=@/<<PKGBUILDDIR>>/debian/deb-build-fpc.cfg
make[1]: Entering directory '/<<PKGBUILDDIR>>/fpcsrc/packages/fpmkunit'
/bin/mkdir -p units_bs/x86_64-linux
/usr/bin/ppcx64 src/fpmkunit.pp -n -Fu../../rtl/units/x86_64-linux -FUunits_bs/x86_64-linux -Fu../paszlib/src -Fu../hash/src -Fi../paszlib/src -Cg -Fi../fcl-process/src/unix -Fu../fcl-process/src -Fi../fcl-process/src/linux -Fi../fcl-process/src/dummy -Fu../libtar/src @/<<PKGBUILDDIR>>/debian/deb-build-fpc.cfg
make[1]: Leaving directory '/<<PKGBUILDDIR>>/fpcsrc/packages/fpmkunit'
/usr/bin/make -C fpcsrc/utils/fpcm OPT=@/<<PKGBUILDDIR>>/debian/deb-build-fpc.cfg
make[1]: Entering directory '/<<PKGBUILDDIR>>/fpcsrc/utils/fpcm'
/usr/bin/ppcx64 fpmake.pp -n -Fu../../rtl/units/x86_64-linux -Fu../../packages/paszlib -Fu../../packages/fcl-process -Fu../../packages/hash -Fu../../packages/libtar -Fu../../packages/fpmkunit/units_bs/x86_64-linux  @/<<PKGBUILDDIR>>/debian/deb-build-fpc.cfg
/usr/bin/ld.bfd: -f may not be used without -shared
fpmake.pp(252,1) Error: Error while linking
fpmake.pp(252,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[1]: *** [Makefile:2486: fpmake] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>/fpcsrc/utils/fpcm'
make: *** [debian/rules:536: fpcsrc/utils/fpcm/bin/x86_64-linux/fpcmake] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2



More information about the Pkg-pascal-devel mailing list