koch.exeによるtoolsのビルドの失敗と対処
手順
以下のコマンドをnimのランタイムがあるルートディレクトリで実行。
nim-1.2.0>koch.exe tools
現象
以下のエラーメッセージが表示。
nim-1.2.0/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file [PROGRAM_DIRPAH]s/nim-1.2.0/bin/nimsuggest.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
Error: execution of an external program failed: '[PROGRAM_DIRPAH]\nim-1.2.0\dist\mingw64\bin\gcc.exe @nimsuggest_linkerArgs.txt'
FAILURE
原因と対処
自分の場合、VSCodeで開発中であった為、エラーがでていた。
なので、VSCodeを終了させて、再実行したら、成功した。
同じ問題に遭遇した人のためのメモ。