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

Compile error parallel-cc on windows #23174

Open
Ddiidev opened this issue Dec 15, 2024 · 0 comments
Open

Compile error parallel-cc on windows #23174

Ddiidev opened this issue Dec 15, 2024 · 0 comments
Labels
Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one. OS: Windows Bugs/feature requests, that are specific to Windows OS.

Comments

@Ddiidev
Copy link
Contributor

Ddiidev commented Dec 15, 2024

Describe the bug

When compiled with the -parallel-cc flag, it does not find the correct path of gcc, clang, ld etc...

And it's not because it can't find the executable called cc, because I put gcc called cc, and even then the error persisted, but I believe that in Windows it should look for cc.

V doctor does the same thing, it can't find cc.exe, but I'm on Windows.

Anyway, without the -parallel-cc flag it compiles normally.

Reproduction Steps

any hello word.

Expected Behavior

compile

Current Behavior

v -parallel-cc -prod .

c_files: 11 | util.nr_jobs: 11
c cmd: "cc" -c -w -o out_10.o out_10.c => 1, 72 ms
'"cc"' is not recognized as an internal or external command, operable program or batch file.

c cmd: "cc" -c -w -o out_x.o out_x.c => 1, 74 ms> c cmd: "cc" -c -w -o out_6.o out_6.c => 1, 74 ms
c cmd: "cc" -c -w -o out_2.o out_2.c => 1, 73 ms'"cc"' is not recognized as an internal or external command, operable program or batch file.

c cmd: "cc" -c -w -o out_7.o out_7.c => 1, 73 ms
'"cc"' is not recognized as an internal or external command, operable program or batch file.

c cmd: "cc" -c -w -o out_0.o out_0.c => 1, 76 ms
'"cc"' is not recognized as an internal or external command, operable program or batch file.

c cmd: "cc" -c -w -o out_1.o out_1.c => 1, 74 ms
c cmd: "cc" -c -w -o out_4.o out_4.c => 1, 73 ms
'"cc"' is not recognized as an internal or external command, operable program or batch file.

'"cc"' is not recognized as an internal or external command, operable program or batch file.

c cmd: "cc" -c -w -o out_11.o out_11.c => 1 , 73 ms
c cmd: "cc" -c -w -o out_3.o out_3.c => 1 , 74 ms
'"cc"' is not recognized as an internal or external command, operable program or batch file.

'"cc"' is not recognized as an internal or external command, operable program or batch file.

c cmd: "cc" -c -w -o out_8.o out_8.c => 1 , 73 ms
'"cc"' is not recognized as an internal or external command, operable program or batch file.

c cmd: "cc" -c -w -o out_5.o out_5.c => 1, 73 ms> c cmd: "cc" -c -w -o out_9.o out_9.c => 1, 73 ms

'"cc"' is not recognized as an internal or external command, operable program or batch file.

'"cc"' is not recognized as an internal or external command, operable program or batch file.

'"cc"' is not recognized as an internal or external command, operable program or batch file.

'"cc"' is not recognized as an internal or external command, operable program or batch file.

C compilation on 13 threads, working on 13 files took: 90 ms
link_cmd: "cc" -o "C:\Users\Andre\Desktop\teste\teste" out_0.o out_1.o out_2.o out_3.o out_4.o out_5.o out_6.o out_7.o out_8.o out_9.o out_10.o out_11.o out_x.o -lpthread => 1 , 32 ms
'"cc"' is not recognized as an internal or external command, operable program or batch file.

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.8 23bcd91

Environment details (OS name and version, etc.)

V full version: V 0.4.8 c4aaa2e.23bcd91
OS: windows, Microsoft Windows 11 Pro Insider Preview v27764 64-bit
Processor: 12 cpus, 64bit, little endian,

getwd: C:\Users\Andre
vexe: E:\Progs\v\v.exe
vexe mtime: 2024-12-11 04:48:55

vroot: OK, value: E:\Progs\v
VMODULES: OK, value: C:\Users\Andre.vmodules
VTMP: OK, value: C:\Users\Andre\AppData\Local\Temp\v_0

Git version: git version 2.46.1.windows.1
Git vroot status: weekly.2024.50-9-g23bcd915 (29 commit(s) behind V master)
.git/config present: true

CC version: Error: 'cc' is not recognized as an internal or external command, operable program or batch file.

emcc version: Error: 'emcc' is not recognized as an internal or external command, operable program or batch file.

thirdparty/tcc status: thirdparty-windows-amd64 b425ac82

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@Ddiidev Ddiidev added the Bug This tag is applied to issues which reports bugs. label Dec 15, 2024
@felipensp felipensp added Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one. OS: Windows Bugs/feature requests, that are specific to Windows OS. and removed Bug This tag is applied to issues which reports bugs. labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one. OS: Windows Bugs/feature requests, that are specific to Windows OS.
Projects
None yet
Development

No branches or pull requests

2 participants