[Pkg-pascal-devel] Bug#1015702: view3dscene: ftbfs with LTO (link time optimization) enabled
Matthias Klose
doko at debian.org
Tue Jul 19 18:02:10 BST 2022
Package: src:view3dscene
Version: 4.0.0-3
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/view3dscene_4.0.0-3_unstable_dpkglto.log
The last lines of the build log are at the end of this report.
[...]
[ Generating Animations (TRGBAlphaImage, alpha: BLENDING) ]
............................................................
[ Generating Panel (TRGBAlphaImage, alpha: BLENDING) ]
............................................................
[ Generating PanelSeparator (TRGBImage, alpha: NONE) ]
............................................................
[ Generating Examine_tooltip (TRGBImage, alpha: NONE) ]
............................................................
[ Generating Walk_fly_tooltip (TRGBImage, alpha: NONE) ]
............................................................
make[3]: Leaving directory '/<<PKGBUILDDIR>>/embedded_data/images'
/usr/bin/make -C embedded_data/screen_effects/
make[3]: Entering directory '/<<PKGBUILDDIR>>/embedded_data/screen_effects'
file_to_pascal_string flashlight.glsl screen_effects_flashlight.glsl.inc
file_to_pascal_string edge_detect.glsl screen_effects_edge_detect.glsl.inc
make[3]: Leaving directory '/<<PKGBUILDDIR>>/embedded_data/screen_effects'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
fpc -k"-flto=auto -ffat-lto-objects -z relro -z now" -dRELEASE -Mobjfpc -Sh -Ci -Sm -Sc -Sg -Si -O2 -Xs -Fu/usr/lib/x86_64-linux-gnu/fpc/3.2.2/units/castle-game-engine code/view3dscene.lpr
Compiling Release Version
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 code/view3dscene.lpr
Compiling code/v3dscenetexturefilters.pas
Compiling code/v3dscenelights.pas
Compiling code/v3dscenefillmode.pas
Compiling code/v3dsceneraytrace.pas
v3dsceneraytrace.pas(45,56) Warning: Unit "CastleWindowModes" is deprecated: "use CastleUIState to implement user-interface states in a cross-platform way"
Compiling code/v3dscenestatus.pas
Compiling code/v3dscenewindow.pas
Compiling code/v3dscenenavigationtypes.pas
Compiling code/v3dsceneimages.pas
Compiling code/v3dscenescenechanges.pas
Compiling code/v3dscenebgcolors.pas
Compiling code/v3dsceneviewports.pas
Compiling code/v3dsceneviewpoints.pas
Compiling code/v3dscenecaptions.pas
Compiling code/v3dscenewarnings.pas
Compiling code/v3dsceneantialiasing.pas
Compiling code/v3dscenescreenshot.pas
generics.collections.pas(1186,20) Note: Call to subroutine "function TEnumerable<V3DSceneScreenShot.TScreenShot>.GetEnumerator:TEnumerator$1<V3DSCENESCREENSHOT.TScreenShot>;" marked as inline is not inlined
generics.collections.pas(144,52) Note: Private type "TCustomPointersEnumerator$2<V3DSCENESCREENSHOT.TScreenShot,V3DSCENESCREENSHOT.TCustomList$1$crc58781A64.PT>.T" never used
Compiling code/v3dsceneshadows.pas
Compiling code/v3dsceneoctreevisualize.pas
Compiling code/v3dsceneboxes.pas
v3dsceneoctreevisualize.pas(142,11) Warning: Symbol "glDrawBox3DWire" is deprecated: "do not draw like this, instead create TCastleScene with Cube node inside"
v3dsceneoctreevisualize.pas(188,9) Warning: Symbol "glDrawBox3DWire" is deprecated: "do not draw like this, instead create TCastleScene with Cube node inside"
Compiling code/v3dscenemiscconfig.pas
Compiling code/v3dscenescreeneffects.pas
v3dscenescreeneffects.pas(48,56) Warning: Symbol "TGLSLScreenEffect" is deprecated: "this will be internal class soon, instead use TCastleScreenEffects or TCastleViewport and add screen effects there"
v3dscenescreeneffects.pas(192,43) Warning: Symbol "TGLSLScreenEffect" is deprecated: "this will be internal class soon, instead use TCastleScreenEffects or TCastleViewport and add screen effects there"
Compiling code/v3dsceneskeletonvisualize.pas
Compiling code/v3dsceneversion.pas
Compiling code/v3dscenelightseditor.pas
Compiling code/v3dsceneinternalscenes.pas
Compiling code/v3dscenenamedanimations.pas
Compiling code/v3dscenedialogbox.pas
view3dscene.lpr(2929,64) Warning: Symbol "HierarchicalOcclusionQuery" is experimental
view3dscene.lpr(2929,97) Warning: Symbol "HierarchicalOcclusionQuery" is experimental
view3dscene.lpr(3355,27) Warning: Symbol "HierarchicalOcclusionQuery" is experimental
Linking code/view3dscene
/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
Error: /usr/bin/ppcx64 returned an error exitcode
make[1]: *** [debian/rules:53: override_dh_auto_build-arch] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:42: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the Pkg-pascal-devel
mailing list