#1112657 nim-regex: FTBFS: src/regex.nim(859, 18) Error: Exception can raise an unlisted exception: Exception

#1112657#5
Date:
2025-08-31 15:32:07 UTC
From:
To:
Dear maintainer:

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

Note: All the following packages also FTBFS, if you happen to have a fix for any of them
maybe you can also fix some of the others:

src:hts-nim-tools
src:mosdepth
src:nim-hts
src:nim-lapper
src:nim-regex

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

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

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:nim-regex, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_clean
rm -rf docs
rm -f src/regex.out
rm -rf .ccache .cache
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
	rm -f debian/debhelper-build-stamp
	rm -rf debian/.debhelper/
	rm -f -- debian/nim-regex-dev.substvars debian/files
	rm -fr -- debian/nim-regex-dev/ debian/tmp/
	find .  \( \( \
		\( -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
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# This produces the regex binary and serves as a general test for this packaget
HOME=/<<PKGBUILDDIR>> nim -p=/usr/share/nimble/unicodedb -p=/usr/share/nimble/unicodeplus c src/regex.nim
Hint: used config file '/etc/nim/nim.cfg' [Conf]
Hint: used config file '/etc/nim/config.nims' [Conf]
...........................................................................................................
/<<PKGBUILDDIR>>/src/regex/nfa.nim(227, 12) Warning: See corresponding Defect; IndexError is deprecated [Deprecated]
......
/<<PKGBUILDDIR>>/src/regex/nfafindall.nim(304, 3) Warning: start, limit all have default value '0', this may be unintentional, either use ';' (semicolon) or explicitly write each default value [ImplicitDefaultValue]
..
/<<PKGBUILDDIR>>/src/regex.nim(839, 29) template/generic instantiation from here
/<<PKGBUILDDIR>>/src/regex.nim(859, 18) Error: Exception can raise an unlisted exception: Exception
make[1]: *** [debian/rules:9: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:5: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------