Recently, I cannot rebuild Nim devel from source any more (on my Gentoo Linux system).
I get this error
getDocHacksJs: cmd: /usr/bin/nim js -d:release /usr/tools/dochack/dochack.nim
oserr.nim(94) raiseOSError
Error: unhandled exception: No such file or directory
What can I do about this?
Thanks for a hint, Helmut
That's the case.
I don't know where the path /usr/tools/dochack/dochack.nim comes from. There is no /usr/tools on my machine here.
related: https://github.com/nim-lang/Nim/issues/14424
nim looks for dochack.nim and nimdoc.css in a path relative to the location of the compiler binary
so if you've installed nim in /usr/bin like a sane person, it assumes /usr/tools exists
choosenim will build devel from source for you