-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nim 1.6.6 not generating Windows Executable #19872
Comments
Disable your antivirus software and check the file/directory permissions. |
@Araq Unfortunately I don't have privilege to disable anti-virus software. But for file / directory permission there is no issue. I have full access. May I know how antivirus software has anything to do here, knowing that would help me to look for some workaround. |
@ikzettel , when compiled without You installed Nim how? Where did you download mingw from? Could you try different gcc options? You can try compiling with clang, tcc or vcc too. Antivirus are marking Nim executables as false positives (see https://forum.nim-lang.org/t/7885). I've heard it's a problem with MinGW. But I've already managed to reproduce false positive with just a "hello world" in C, compiling with mingw. |
@ikzettel, you can test this compiler here. I did some tests with several versions of mingw64 and this version, with gcc 6.4.0, was the one that generated the least false positives within the Nim compiler tools (devel did not generate any false positives and 1.6.6 generated only in nimgrab - see this). I also tested vcc, llvm(clang), llvm-mingw(clang) and tdm64-gcc but they all generated false positives. I wasted a long time recompiling (18 times) Nim and its tools for windows... |
So the output shows that the nim compiler does not have permission to write to your D disk. |
I have a fresh installation of Nim on Windows 10 64 bit system. While the installation is fine, trying to compile a simple hello.nim is not working. I see that the executable is not getting generated.
hello.nim
Compile command
While checking the directory, the executable is not generated.
nim and gcc are in path, and can be invoked. gcc can compile c programs and has been verified.
The text was updated successfully, but these errors were encountered: