Source: dh-dlang
Version: 0.6.10
Severity: wishlist

Dear Maintainer,

First of all sorry to report this here, but I couldn't find a Debian D Team
mailing list if it exists.

Second, I'm facing a problem trying to use dh-dlang for my current work on lix
packaging.
Without using it, the package currently builds quite well, see[1].
But there are some test failures: blhc and reprotest.
So I was thinking maybe with dh-dlang it could (facilitate to) solve some of
these issues.
Using sbuild to give a try on my system it fails with following messages:

Compiling Lix 0.10.29 with LDC for Linux, 64-bit...
module flag identifiers must be unique (or of 'require' type)
!"cf-protection-return"
module flag identifiers must be unique (or of 'require' type)
!"cf-protection-branch"
module flag identifiers must be unique (or of 'require' type)
!"cf-protection-return"

---- CUT HERE LOTS OF SAME MESSAGES ----

!"cf-protection-return"
module flag identifiers must be unique (or of 'require' type)
!"cf-protection-branch"
LLVM ERROR: Broken module found, compilation aborted!
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH
or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  libLLVM.so.19.1 0x00007fed01bded2a
llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 58
1  libLLVM.so.19.1 0x00007fed01bdc8a6 llvm::sys::RunSignalHandlers() + 38
2  libLLVM.so.19.1 0x00007fed01bdf3eb
3  libc.so.6       0x00007fed007ddda0
4  libc.so.6       0x00007fed00831dcc
5  libc.so.6       0x00007fed007ddd02 gsignal + 18
6  libc.so.6       0x00007fed007c64f0 abort + 211
7  libLLVM.so.19.1 0x00007fed01b314e8 llvm::report_fatal_error(llvm::Twine
const&, bool) + 440
8  libLLVM.so.19.1 0x00007fed01b3132a
9  libLLVM.so.19.1 0x00007fed01d9a911
10 ldc2            0x000055c59b3d96b3 llvm::detail::PassModel<llvm::Module,
llvm::VerifierPass, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&) + 35
11 libLLVM.so.19.1 0x00007fed01d6adf9 llvm::PassManager<llvm::Module,
llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&) + 489
12 ldc2            0x000055c59b3d6e91 runOptimizationPasses(llvm::Module*) +
3553
13 ldc2            0x000055c59b3d90ce ldc_optimize_module(llvm::Module*) + 30
14 ldc2            0x000055c59b48d3d0 writeModule(llvm::Module*, char const*) +
176
15 ldc2            0x000055c59b4894fb
ldc::CodeGenerator::writeAndFreeLLModule(char const*) + 795
16 ldc2            0x000055c59b46278c codegenModules(Array<Module*>&) + 1836
17 ldc2            0x000055c59b210ccb mars_tryMain(Param&, Array<char const*>&)
+ 8139
18 ldc2            0x000055c59b4609a6 cppmain() + 6934
19 ldc2            0x000055c59b5cc72d
_D2rt6dmain212_d_run_main2UAAamPUQgZiZ6runAllMFZv + 77
20 ldc2            0x000055c59b5cc548 _d_run_main2 + 408
21 ldc2            0x000055c59b5cc39d _d_run_main + 141
22 ldc2            0x000055c59b0c8fbd main + 541
23 libc.so.6       0x00007fed007c7d68
24 libc.so.6       0x00007fed007c7e25 __libc_start_main + 133
25 ldc2            0x000055c59b0cb691 _start + 33
Error /usr/bin/ldc2 failed with exit code -6.
make[1]: *** [debian/rules:29: override_dh_auto_build] Error 2
make[1]: Leaving directory '/build/reproducible-path/lix-0.10.29'
make: *** [debian/rules:22: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2025-02-08T11:04:07Z


Is the process trapped in a loop?
Can I fix it?

Regards,
Patrice

[1] https://salsa.debian.org/Peutch-guest/lix/-/pipelines/811892


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.12-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to