Open kilianar opened 1 month ago
First failure here: https://hydra.nixos.org/build/274876895
Temporarily fixed it with this overlay:
final: prev: {
dmd = prev.dmd.overrideAttrs (o: {
postPatch =
o.postPatch
+ ''
rm dmd/compiler/test/fail_compilation/needspkgmod.d
'';
});
}
Very weird I wonder what caused this, the package hasn't been updated in months and the offending test has been in dmd for forever. I'm not sure exactly what the issue is so I've opened #351090 to remove the test permanently (as @matt1432 suggested).
DMD and LLVM compiler contributor here. I started using nixos recently and also felt into this error. I recently added D demangling into LLVM. Idk if this is relying on the LLVM to do linking step, but nevertheless the error seems correct to me, although, not covered by DMD testsuite correctly (its expected to fail, but not demangled).
I think the PR you made is ok as a workaround but we need to fix this at upstream by instructing the linker in the testsuite mode to not demangle the symbols. CC @dkorpel @RazvanN7 can one of you take a look at this? :)
but we need to fix this at upstream by instructing the linker in the testsuite mode to not demangle the symbols.
That has been done already: https://github.com/dlang/dmd/pull/16833
Although honestly, I still think it's a bad test. DMD shouldn't be testing against linker output which depends on the environment.
Hi all, After updating to nixos 24.11 I'm trying to install dmd but I still get build errors. When is supposed for dmd to get these fixes and be installable again?
DMD in nixpkgs must be updated to 2.110.0 to receive Andrei Horodniceanu's fix, which has for some reason not been released yet.
I've ported his fix to nixpkgs in #351090.
Steps To Reproduce
Steps to reproduce the behavior:
Build log
The error occurs during
checkPhase
:Full log: https://hydra.nixos.org/build/275023230/nixlog/1
Additional context
Build failure on hydra
Notify maintainers
@lionello @dukc @jtbx
Add a :+1: reaction to issues you find important.