Closed SimonN closed 4 years ago
There is already a pull request against sdlang-d to fix this.
I think the taggedalgebraic errors are due to the sdlang errors. I'm building my project fine using sdlang and taggedalgebraic with my patch for a while.
Right, thanks! Your PR against sdlang-d indeed fixes all errors, whether they came out of sdlang-d and in taggedalgebraic.
Fixed in Lix's commit f50fc162276c75b39031d080fe5dd20d613641d2. Thanks fo @schveiguy for the quick fix!
Pulling 2021-12-12 gets me
/usr/lib/ldc/aarch64-linux-gnu/include/d/std/algorithm/comparison.d(1531,6): Warning: skipping definition of function std.algorithm.comparison.max!(int, int).max
due to previous definition for the same mangled name: _D3std9algorithm10comparison__T3maxTiTiZQjFNaNbNiNfiiZi
Error: warnings are treated as errors
Use -wi if you wish to treat warnings only as informational.
Thanks! I've noticed the same problem yesterday. Without extra configuration, warnings are errors, which is a problem when Phobos generates warnings.
To circumvent: In your dub.json
, add this line:
"buildRequirements": ["allowWarnings"],
This will make the Lix build pass despite the warning in Phobos.
I'm about to release Lix 0.9.40 tomorrow morning that contains this fix.
Repro:
dub.selections.json
from Lix's main directory.dub -f
.Output of a session with a kept
dub.selections.json
:When I delete
dub.selections.json
and editdub.json
to pin packagesdlang-d
to>=0.10.5
, I get additional errors: