hanabi1224 / Programming-Language-Benchmarks

Yet another implementation of computer language benchmarks game
https://programming-language-benchmarks.vercel.app/
MIT License
640 stars 135 forks source link

Error trying to start process 'cp' on Windows #374

Open etcimon opened 1 year ago

etcimon commented 1 year ago

I can't run the benchmarks on my computer (Windows 10) after installing all the pre-requisites.

I'm using VS2022 x64 native tools command prompt with DotNet 7 installed, the command is:

dotnet run -p tool -- --task build --langs d --problems nbody helloworld --force-rebuild

The output is:

[...]
2023/02/23 19:45:37.432 | Loading .\bench_wren.yaml 
2023/02/23 19:45:37.432 | Loading .\bench_zig.yaml 
2023/02/23 19:48:46.244 | [d] Running task build... 
2023/02/23 19:48:46.244 | Starting build task: d_linux_dmd_latest_default_helloworld_1 
2023/02/23 19:48:46.244 | Temp build folder: C:\Users\PC\AppData\Local\Temp\_bench\d_linux_dmd_latest_default_helloworld_1_x2zcapxl 
2023/02/23 19:48:46.244 | Command[shell:False,print:True,async:False,pwd:F:\Development\Programming-Language-Benchmarks\bench]:: cp -a "include\d"  "C:\Users\PC\AppData\Local\Temp\_bench\d_linux_dmd_latest_default_helloworld_1_x2zcapxl" 
2023/02/23 19:48:46.244 | System.ComponentModel.Win32Exception: An error occurred trying to start process 'cp' with working directory 'F:\Development\Programming-Language-Benchmarks\bench'. The system cannot find the file specified. System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'cp' with working directory 'F:\Development\Programming-Language-Benchmarks\bench'. The system cannot find the file specified.
[...]

I've also tried powershell and it's the same problem.

Thanks!

hanabi1224 commented 1 year ago

It does not support windows yet. Please use wsl/wsl2 on windows