Skip to content
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 will stuck when I use vcc compiler on windows #19031

Open
waruqi opened this issue Oct 21, 2021 · 6 comments
Open

nim will stuck when I use vcc compiler on windows #19031

waruqi opened this issue Oct 21, 2021 · 6 comments

Comments

@waruqi
Copy link

waruqi commented Oct 21, 2021

I run nim c --cc:vcc src\main.nim on windows, but it will stuck.

>nim c --cc:vcc --verbosity:3 src\ma
in.nim
C:\Program Files\nim-1.4.0\config\nim.cfg(52, 3) Hint: added path: 'C:\Users\ruk
i\.nimble\pkgs\' [Path]
    nimblepath="$home/.nimble/pkgs/"
    ^
D:\a\nightlies\nightlies\nim-1.4.0\compiler\nimblecmd.nim(117, 12) compiler msg
initiated here [MsgOrigin]
Hint: used config file 'C:\Program Files\nim-1.4.0\config\nim.cfg' [Conf]
D:\a\nightlies\nightlies\nim-1.4.0\compiler\nimconf.nim(292, 15) compiler msg in
itiated here [MsgOrigin]
Hint: used config file 'C:\Program Files\nim-1.4.0\config\config.nims' [Conf]
D:\a\nightlies\nightlies\nim-1.4.0\compiler\nimconf.nim(292, 15) compiler msg in
itiated here [MsgOrigin]
................................................................................
......................................CC: stdlib_io.nim: vccexe.exe /c --platfor
m:amd64  /nologo   /I"C:\Program Files\nim-1.4.0\lib" /IZ:\personal\xmake\tests\
projects\nim\console\src /nologo /FoC:\Users\ruki\nimcache\main_d\stdlib_io.nim.
c.obj C:\Users\ruki\nimcache\main_d\stdlib_io.nim.c
CC: stdlib_system.nim: vccexe.exe /c --platform:amd64  /nologo   /I"C:\Program F
iles\nim-1.4.0\lib" /IZ:\personal\xmake\tests\projects\nim\console\src /nologo /
FoC:\Users\ruki\nimcache\main_d\stdlib_system.nim.c.obj C:\Users\ruki\nimcache\m
ain_d\stdlib_system.nim.c
SIGINT: Interrupted by Ctrl-C.

and I run vccexe /c --platform:amd64 manually, it will also stuck.

$ nim -v
Nim Compiler Version 1.6.
# make sure to include the git hash if not using a tagged release
@waruqi
Copy link
Author

waruqi commented Oct 21, 2021

Maybe it is related to the --platform:amd64 parameter, if I remove it, vccexe can return immediately.

@rockcavera
Copy link
Contributor

Here --cc:vcc is compiling normally. Could you provide the code you are trying to compile and the full output of nim -v?

@waruqi
Copy link
Author

waruqi commented Oct 22, 2021

Here --cc:vcc is compiling normally. Could you provide the code you are trying to compile and the full output of nim -v?

nim 1.6 and 1.4 have same problem.

$ nim -v
Nim Compiler Version 1.4.0 [Windows: amd64]
Compiled at 2020-10-18
Copyright (c) 2006-2020 by Andreas Rumpf

active boot switches: -d:release
$ nim -v
Nim Compiler Version 1.6.0 [Windows: amd64]
Compiled at 2021-10-19
Copyright (c) 2006-2021 by Andreas Rumpf

active boot switches: -d:release

My Windows:

Win 7 on Virtual Box / macOS

Vs2019

@waruqi
Copy link
Author

waruqi commented Oct 22, 2021

I tested it on Win10, It works. Only win7 has this problem

@waruqi
Copy link
Author

waruqi commented Oct 22, 2021

Could you provide the code you are trying to compile

main.nim

echo "hello"

@rockcavera
Copy link
Contributor

I had tested it on Windows 10. I don't have Windows 7 installed at the moment to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants