I'm eager to try out --gc:arc in a project and tried compiling Rosencrantz using it and I'm getting:
$ nimble server
Executing task server in /home/boisvert/git/rosencrantz/rosencrantz.nimble
Verifying dependencies for [email protected]
Compiling tests/server (from package rosencrantz) using c backend
/home/boisvert/.choosenim/toolchains/nim-#devel/lib/system/threads.nim(104, 28) template/generic instantiation of `add` from here
/home/boisvert/.choosenim/toolchains/nim-#devel/lib/system/seqs_v2.nim(111, 21) Error: system module needs: nimDestroyAndDispose
Tip: 1 messages have been suppressed, use --verbose to show them.
Error: Execution failed with exit code 1
... Command: "/home/boisvert/.nimble/bin/nim" c --noNimblePath -d:NimblePkgVersion=0.4.3 "--path:." "--hints:off" "--forceBuild" "--out:tests/rosencrantz" "--linetrace:on" "--linedir:on" "--debuginfo" "--stacktrace:on" "tests/server"
(I changed the local nim.cfg to --threads:on --gc:arc)
What does this Error: system module needs: nimDestroyAndDispose error mean? Is it a compiler issue or a code-to-be-compiled issue?
thanks!
PS: I'm using the latest devel branch installed with choosenim
Any tips on how to fix my broken setup? My PATH is clean, only pointing to ~/git/Nim/bin, I've also wiped my ~/.cache/ directory.
How could nim pick up an old stdlib? What should I look for?
thanks!
I tried with a fresh Docker container, base Ubuntu image 18.04.3 LTS, install git, install gcc, install choosenim, install nim #devel using choosenim, git checkout of rosencrantz, update nim.cfg with --gc:arc and --threads:on, run nimble server, same result.
I highly doubt this is due to a broken local nim setup. This is reproductible with a clean environment.