[Pkg-pascal-devel] Bug#1095334: castle-model-viewer: FTBFS: Fatal: Can't find unit CastleUtils used by castle_model_converter

Santiago Vila sanvila at debian.org
Fri Feb 7 12:11:10 GMT 2025


Package: src:castle-model-viewer
Version: 5.2.0-2
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_auto_clean
	make -j2 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
castle-engine clean
castle-engine: Warning: Castle Game Engine directory cannot be detected:
- $CASTLE_ENGINE_PATH environment variable not defined, or points to an incorrect directory.
- Moreover we cannot find Castle Game Engine looking at parent directory of this program eDeleted 0 files
xe.
castle-engine clean --manifest-name=CastleEngineManifest.converter.xml
castle-engine: Warning: Castle Game Engine directory cannot be detected:
- $CASTLE_ENGINE_PATH environment variable not defined, or points to an incorrect directory.
- Moreover we cannot find Castle Game Engine looking at parent directory of this program eDeleted 0 files
xe.
rm -Rf castle-model-viewer.app \
       castle-model-converter.app \
       macosx/castle-model-viewer.app \
       macosx/castle-model-converter.app \
       macosx/*.dmg
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules execute_after_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make clean-code
make[2]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make -C embedded_data/images/ clean
make[3]: Entering directory '/<<PKGBUILDDIR>>/embedded_data/images'
rm -f ../../code/v3dsceneimages.pas
make[3]: Leaving directory '/<<PKGBUILDDIR>>/embedded_data/images'
/usr/bin/make -C embedded_data/screen_effects/ clean
make[3]: Entering directory '/<<PKGBUILDDIR>>/embedded_data/screen_effects'
rm -f edge_detect.x3dv.inc flashlight.x3dv.inc grayscale.x3dv.inc negative.x3dv.inc power.x3dv.inc visualize_depth.x3dv.inc
make[3]: Leaving directory '/<<PKGBUILDDIR>>/embedded_data/screen_effects'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
	rm -f debian/debhelper-build-stamp
	rm -rf debian/.debhelper/
	rm -f -- debian/castle-model-viewer.substvars debian/view3dscene.substvars debian/files
	rm -fr -- debian/castle-model-viewer/ debian/tmp/ debian/view3dscene/
	find . ! \( -regex .\*COPYING.\* -or -regex .\*LICENSE.\* \) -a \( \( \
		\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
	        \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
		 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
		 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
		 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
		\) -exec rm -f {} + \) -o \
		\( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \)
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p /<<PKGBUILDDIR>>/debian/tmp
# Once pasdoc ships file_to_pascal_string, the next lines can be simplified
fpc -FE/<<PKGBUILDDIR>>/debian/tmp debian/file_to_pascal_string.dpr
Free Pascal Compiler version 3.2.2+dfsg-45 [2025/02/06] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling debian/file_to_pascal_string.dpr
file_to_pascal_string.dpr(35,2) Warning: APPTYPE is not supported by the target OS
Linking /<<PKGBUILDDIR>>/debian/tmp/file_to_pascal_string
95 lines compiled, 0.1 sec
1 warning(s) issued
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/<<PKGBUILDDIR>>/debian/tmp /usr/bin/make generate-code
make[2]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make -C embedded_data/images/
make[3]: Entering directory '/<<PKGBUILDDIR>>/embedded_data/images'
image-to-pascal --output ../../code V3DSceneImages *.png
Generating ButtonDisabled (TGrayscaleAlphaImage, alpha: BLENDING)
Generating ButtonFocused (TGrayscaleAlphaImage, alpha: BLENDING)
Generating ButtonNormal (TGrayscaleAlphaImage, alpha: BLENDING)
Generating ButtonPressed (TGrayscaleAlphaImage, alpha: BLENDING)
Generating Panel (TGrayscaleAlphaImage, alpha: BLENDING)
Generating PanelSeparator (TRGBAlphaImage, alpha: TEST)
Generating TooltipArrow (TRGBAlphaImage, alpha: TEST)
Generating Animations (TRGBAlphaImage, alpha: BLENDING)
Generating Castle_game_engine_icon (TRGBAlphaImage, alpha: BLENDING)
Generating Cge_heart (TRGBAlphaImage, alpha: BLENDING)
Generating Examine (TRGBAlphaImage, alpha: BLENDING)
Generating Fly (TRGBAlphaImage, alpha: BLENDING)
Generating Light_gizmo (TRGBAlphaImage, alpha: BLENDING)
Generating Nav2d (TRGBAlphaImage, alpha: BLENDING)
Generating Open (TRGBAlphaImage, alpha: BLENDING)
Generating Screenshot (TRGBAlphaImage, alpha: BLENDING)
Generating Walk (TRGBAlphaImage, alpha: BLENDING)
Generating Warning_icon (TRGBAlphaImage, alpha: BLENDING)
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 edge_detect.x3dv edge_detect.x3dv.inc
file_to_pascal_string flashlight.x3dv flashlight.x3dv.inc
file_to_pascal_string grayscale.x3dv grayscale.x3dv.inc
file_to_pascal_string negative.x3dv negative.x3dv.inc
file_to_pascal_string power.x3dv power.x3dv.inc
file_to_pascal_string visualize_depth.x3dv visualize_depth.x3dv.inc
make[3]: Leaving directory '/<<PKGBUILDDIR>>/embedded_data/screen_effects'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
/usr/bin/make compile CASTLE_ENGINE_TOOL_OPTIONS='--compiler-option=-k-zrelro --compiler-option=-k-znow --compiler-option=@castle-game-engine '
make[2]: Entering directory '/<<PKGBUILDDIR>>'
./compile.sh
castle-engine: Warning: Castle Game Engine directory cannot be detected:
- $CASTLE_ENGINE_PATH environment variable not defined, or points to an incorrect directory.
- Moreover we cannot find Castle Game Engine looking at parent directory of this program eCompiling project "castle-model-converter" for OS / CPU "linux / x86_64" in mode "release".
FPC executing...
Compiling Release Version
Free Pascal Compiler version 3.2.2+dfsg-45 [2025/02/06] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling castle_model_converter.dpr
PPU Loading /usr/lib/x86_64-linux-gnu/castle-game-engine/fp-units/3.2.2/castleutils.ppu
PPU Source: castleutils.pas not available
PPU Source: castleconf.inc not available
PPU Source: castleutils_types.inc not available
PPU Source: castleutils_delphi_compatibility.inc not available
PPU Source: castleutils_platform.inc not available
PPU Source: castleutils_miscella.inc not available
PPU Source: castleversion.inc not available
PPU Source: castleutils_struct_list.inc not available
PPU Source: castleutils_primitive_lists.inc not available
PPU Source: castleutils_program_exit.inc not available
PPU Source: castleutils_os_specific_unix.inc not available
PPU Source: castleutils_math.inc not available
PPU Source: castleutils_filenames.inc not available
PPU Source: castleutils_pointers.inc not available
PPU Source: castleutils_read_write.inc not available
PPU Source: castleutils_types.inc not available
PPU Source: castleutils_delphi_compatibility.inc not available
PPU Source: castleutils_platform.inc not available
PPU Source: castleutils_miscella.inc not available
PPU Source: castleutils_struct_list.inc not available
PPU Source: castleutils_primitive_lists.inc not available
PPU Source: castleutils_program_exit.inc not available
PPU Source: castleutils_math.inc not available
PPU Source: norqcheckbegin.inc not available
PPU Source: norqcheckend.inc not available
PPU Source: castleutils_filenames.inc not available
PPU Source: castleutils_os_specific_unix.inc not available
PPU Source: castleutils_pointers.inc not available
PPU Source: norqcheckbegin.inc not available
PPU Source: norqcheckend.inc not available
PPU Source: castleutils_read_write.inc not available
Recompiling CastleUtils, checksum changed for /usr/lib/x86_64-linux-gnu/fpc/3.2.2/units/x86_64-linux/rtl/sysutils.ppu
/<<PKGBUILDDIR>>/castle_model_converter.dpr(47,3) Fatal: Can't find unit CastleUtils used by castle_model_converter
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
xe.
Exception "Exception":
Failed to compile
make[2]: *** [Makefile:10: compile] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:43: override_dh_auto_build-arch] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:32: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202502/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:castle-model-viewer, so that this is still
visible in the BTS web page for this package.

Thanks.



More information about the Pkg-pascal-devel mailing list