sw icon indicating copy to clipboard operation
sw copied to clipboard

SW returns "function detectMsvcPrefix: Cannot match VS include prefix" error

Open M1chae1 opened this issue 3 years ago • 13 comments

Describe the bug I have used the latest sw client (run sw --self-upgrade) already. I attempt to use sw build for building tesseract 4.1.1 and leptonica 1.82.0. Both of them will be stopped by "Cannot match VS include prefix". Finally, I found that even sw build -static SW (self build) will face this problem.

Exception in file D:/dev/cppan2/client2/src/sw/driver/compiler/detect.cpp:83, function detectMsvcPrefix: Cannot match VS include prefix (Bad output: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/amd64/cl.exe" "/showIncludes" "/c" "C:\Users\Michael\AppData\Local\Temp\sw\cliprefix\c4a7-7633-32bf-e2f7.c" "/FoC:\Users\Michael\AppData\Local\Temp\sw\cliprefix\c4a7-7633-32bf-e2f7.c.obj"`

where c4a7-7633-32bf-e2f7 is random.

What I have tried to do I have read #63 and #14 before but no idea.

I go to path C:\Users\Michael\AppData\Local\Temp\sw\cliprefix. It is no file c4a7-7633-32bf-e2f7.c generated.

I have tried to run "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/amd64/cl.exe" "/showIncludes" "/c" "C:\Users\Michael\AppData\Local\Temp\sw\cliprefix\1.c" in command prompt, where 1.c is dummy file. It prompts

image

Expected behavior I expected sw can build the projects

To Reproduce Steps to reproduce the behavior:

  1. Download client from https://software-network.org/client/
  2. Unpack, add to PATH
  3. Run
git clone https://github.com/SoftwareNetwork/sw
cd sw
sw build -static

Information:

  • sw --version
sw.client.sw version 1.0.0
git revision e006f9dc062a1f02a5344a13645a82f2acf0d931
assembled on
29.09.2021 17:16:13 UTC
30.09.2021 01:16:13 China Standard Time
  • Windows 10 Version 21H1 (OS Build 19043.1266) 64-bit
  • Visual Studio 2019 Professional. (VS 2012, 2017 are also installed on same PC)
  • I am running command prompt for windows
  • Post sw logs using -trace parameter
Starting sw...
version:
sw.client.sw version 1.0.0
git revision e006f9dc062a1f02a5344a13645a82f2acf0d931
assembled on
29.09.2021 17:16:13 UTC
30.09.2021 01:16:13 China Standard Time
command line:
sw build -static -trace
Checking remote version
Host configuration: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Registering driver: org.sw.sw.driver.cpp-0.4.1
using sw frontend for input "D:/Build/sw\\sw.cpp"
build id 0000022522F80540 performing void __cdecl sw::SwBuild::loadInputs(void)
Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe
Detected target: msvc-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\ml64.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-19.29.30133: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe
Detected target: msvc-19.29.30133: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.link-19.29.30133: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.29.30133: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-19.29.30133: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\ml64.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.29.30133: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.29.30133: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.29.30133: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.29.30133: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.29.30133: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\cl.exe
Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\ml.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-19.29.30133: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x86\cl.exe
Detected target: com.Microsoft.VisualStudio.VC.link-19.29.30133: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x86\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.29.30133: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x86\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-19.29.30133: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x86\ml.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.29.30133: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x86\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.29.30133: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.29.30133: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.29.30133: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.29.30133: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\VC\\Tools\\MSVC\\14.16.27023\\bin\\Hostx64\\arm\\cl.exe" does not exists
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\arm\\cl.exe" does not exists
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\VC\\Tools\\MSVC\\14.16.27023\\bin\\Hostx64\\arm64\\cl.exe" does not exists
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\arm64\\cl.exe" does not exists
Detecting msvc 14 and older
Found VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
Use VS140COMNTOOLS as "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0"
Detected target: com.Microsoft.VisualStudio.VC.cl-19.0.24234.1: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe
Detected target: msvc-19.0.24234.1: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.link-19.0.24234.1: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.0.24234.1: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-19.0.24234.1: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\ml64.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.0.24234.1: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.0.24234.1: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.0.24234.1: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.0.24234.1: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.0.24234.1: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-19.0.24234.1: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe
Detected target: com.Microsoft.VisualStudio.VC.link-19.0.24234.1: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.0.24234.1: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-19.0.24234.1: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\ml.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.0.24234.1: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.0.24234.1: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.0.24234.1: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.0.24234.1: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.0.24234.1: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-19.0.24234.1: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_arm\cl.exe
Detected target: com.Microsoft.VisualStudio.VC.link-19.0.24234.1: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_arm\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.0.24234.1: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_arm\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.0.24234.1: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_arm\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.0.24234.1: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.0.24234.1: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.0.24234.1: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.0.24234.1: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Found VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
Use VS120COMNTOOLS as "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0"
Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe
Detected target: msvc-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\ml64.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\cl.exe
Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\ml.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\cl.exe
Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Found VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
Use VS110COMNTOOLS as "C:\\Program Files (x86)\\Microsoft Visual Studio 11.0"
Empty stdout from 'C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/amd64/cl.exe', trying stderr. Cmd: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/amd64/cl.exe" "/showIncludes" "/c" "C:\Users\Michael\AppData\Local\Temp\sw\cliprefix\364c-a936-7e74-804f.c" "/FoC:\Users\Michael\AppData\Local\Temp\sw\cliprefix\364c-a936-7e74-804f.c.obj"
Env: PATH: C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
error code = 3221225781
Exception in file D:/dev/cppan2/client2/src/sw/driver/compiler/detect.cpp:83, function detectMsvcPrefix: Cannot match VS include prefix (Bad output: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/amd64/cl.exe" "/showIncludes" "/c" "C:\Users\Michael\AppData\Local\Temp\sw\cliprefix\364c-a936-7e74-804f.c" "/FoC:\Users\Michael\AppData\Local\Temp\sw\cliprefix\364c-a936-7e74-804f.c.obj"
Env: PATH: C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
):

stderr:

M1chae1 avatar Oct 07 '21 05:10 M1chae1

Hi,

To investigate this I need your help.

  1. Run your VS11 (or VC11) command prompt.
  2. Enter some your dir.
  3. Create 1.c with #include <stdio.h>
  4. Run cl /showIncludes 1.c
  5. Post ouput here.

egorpugin avatar Oct 07 '21 14:10 egorpugin

Hi,

Text Output

Microsoft (R) C/C++ Optimizing Compiler Version 17.00.61030 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

1.c
Note: including file: C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\stdio.h
Note: including file:  C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\crtdefs.h
Note: including file:   C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\sal.h
Note: including file:    C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\ConcurrencySal.h
Note: including file:   C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\vadefs.h
Note: including file:  C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\swprintf.inl
Microsoft (R) Incremental Linker Version 11.00.61030.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:1.exe
1.obj
LINK : fatal error LNK1561: entry point must be defined

Screenshot

image

But in my case, there is no c file generated in path [%AppData%\Local\Temp\sw\cliprefix]

M1chae1 avatar Oct 08 '21 03:10 M1chae1

Please open cmd, go to C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC, run tree command and post the whole output.

egorpugin avatar Oct 08 '21 04:10 egorpugin

tree command output in C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC

Folder PATH listing for volume OS
Volume serial number is 0A09-A8EE
C:.
├───atlmfc
│   ├───include
│   │   ├───Aqua
│   │   │   ├───AppCaption
│   │   │   ├───MainWnd
│   │   │   ├───MenuBar
│   │   │   ├───PopupBar
│   │   │   ├───Ribbon
│   │   │   │   ├───Buttons
│   │   │   │   ├───Category_Context
│   │   │   │   │   ├───Blue
│   │   │   │   │   ├───Green
│   │   │   │   │   ├───Indigo
│   │   │   │   │   ├───Orange
│   │   │   │   │   ├───Red
│   │   │   │   │   ├───Violet
│   │   │   │   │   └───Yellow
│   │   │   │   ├───Progress
│   │   │   │   └───Slider
│   │   │   ├───StatusBar
│   │   │   ├───Tab
│   │   │   ├───TaskPane
│   │   │   └───ToolBar
│   │   ├───Black
│   │   │   ├───AppCaption
│   │   │   ├───ComboBox
│   │   │   ├───MainWnd
│   │   │   ├───MenuBar
│   │   │   ├───OutlookWnd
│   │   │   ├───PopupBar
│   │   │   ├───Ribbon
│   │   │   │   ├───Buttons
│   │   │   │   ├───Category_Context
│   │   │   │   │   ├───Blue
│   │   │   │   │   ├───Green
│   │   │   │   │   ├───Indigo
│   │   │   │   │   ├───Orange
│   │   │   │   │   ├───Red
│   │   │   │   │   ├───Violet
│   │   │   │   │   └───Yellow
│   │   │   │   ├───Progress
│   │   │   │   └───Slider
│   │   │   ├───StatusBar
│   │   │   ├───Tab
│   │   │   ├───TaskPane
│   │   │   └───ToolBar
│   │   ├───Blue
│   │   │   ├───AppCaption
│   │   │   ├───ComboBox
│   │   │   ├───MainWnd
│   │   │   ├───MenuBar
│   │   │   ├───OutlookWnd
│   │   │   ├───PopupBar
│   │   │   ├───Ribbon
│   │   │   │   ├───Buttons
│   │   │   │   ├───Category_Context
│   │   │   │   │   ├───Blue
│   │   │   │   │   ├───Green
│   │   │   │   │   ├───Indigo
│   │   │   │   │   ├───Orange
│   │   │   │   │   ├───Red
│   │   │   │   │   ├───Violet
│   │   │   │   │   └───Yellow
│   │   │   │   ├───Progress
│   │   │   │   └───Slider
│   │   │   ├───StatusBar
│   │   │   ├───Tab
│   │   │   ├───TaskPane
│   │   │   └───ToolBar
│   │   ├───l.chs
│   │   ├───l.cht
│   │   ├───l.deu
│   │   ├───l.esn
│   │   ├───l.fra
│   │   ├───l.ita
│   │   ├───l.jpn
│   │   ├───l.kor
│   │   ├───l.rus
│   │   ├───res
│   │   ├───Silver
│   │   │   ├───AppCaption
│   │   │   ├───ComboBox
│   │   │   ├───MainWnd
│   │   │   ├───MenuBar
│   │   │   ├───OutlookWnd
│   │   │   ├───PopupBar
│   │   │   ├───Ribbon
│   │   │   │   ├───Buttons
│   │   │   │   ├───Category_Context
│   │   │   │   │   ├───Blue
│   │   │   │   │   ├───Green
│   │   │   │   │   ├───Indigo
│   │   │   │   │   ├───Orange
│   │   │   │   │   ├───Red
│   │   │   │   │   ├───Violet
│   │   │   │   │   └───Yellow
│   │   │   │   ├───Progress
│   │   │   │   └───Slider
│   │   │   ├───StatusBar
│   │   │   ├───Tab
│   │   │   ├───TaskPane
│   │   │   └───ToolBar
│   │   └───Windows7
│   │       ├───ComboBox
│   │       ├───PopupBar
│   │       └───Ribbon
│   │           ├───Buttons
│   │           ├───Category_Context
│   │           │   ├───Blue
│   │           │   ├───Green
│   │           │   ├───Indigo
│   │           │   ├───Orange
│   │           │   ├───Red
│   │           │   ├───Violet
│   │           │   └───Yellow
│   │           └───Slider
│   ├───lib
│   │   ├───amd64
│   │   └───arm
│   └───src
│       ├───atl
│       │   └───atls
│       │       ├───amd64
│       │       └───arm
│       ├───mfc
│       │   ├───amd64
│       │   ├───l.chs
│       │   ├───l.cht
│       │   ├───l.deu
│       │   ├───l.esn
│       │   ├───l.fra
│       │   ├───l.ita
│       │   ├───l.jpn
│       │   ├───l.kor
│       │   └───l.rus
│       └───mfcm
│           └───interfaces
├───bin
│   ├───1033
│   ├───amd64
│   │   └───1033
│   ├───arm
│   │   └───1033
│   ├───en-US
│   ├───x86_amd64
│   │   └───1033
│   └───x86_arm
│       └───1033
├───crt
│   └───src
│       ├───AMD64
│       ├───ARM
│       ├───cliext
│       ├───cvt
│       ├───eh
│       │   ├───amd64
│       │   ├───arm
│       │   └───i386
│       ├───intel
│       ├───msclr
│       │   └───com
│       ├───sys
│       ├───thr
│       └───vccorlib
├───include
│   ├───cliext
│   ├───CodeAnalysis
│   ├───cvt
│   ├───Manifest
│   ├───msclr
│   │   └───com
│   ├───sys
│   └───thr
├───lib
│   ├───amd64
│   └───arm
├───redist
│   ├───1033
│   ├───arm
│   │   ├───Microsoft.VC110.ATL
│   │   ├───Microsoft.VC110.CRT
│   │   ├───Microsoft.VC110.CXXAMP
│   │   └───Microsoft.VC110.OPENMP
│   ├───Debug_NonRedist
│   │   ├───arm
│   │   │   ├───Microsoft.VC110.DebugCRT
│   │   │   ├───Microsoft.VC110.DebugCXXAMP
│   │   │   └───Microsoft.VC110.DebugOPENMP
│   │   ├───x64
│   │   │   ├───Microsoft.VC110.DebugCRT
│   │   │   ├───Microsoft.VC110.DebugCXXAMP
│   │   │   ├───Microsoft.VC110.DebugMFC
│   │   │   └───Microsoft.VC110.DebugOpenMP
│   │   └───x86
│   │       ├───Microsoft.VC110.DebugCRT
│   │       ├───Microsoft.VC110.DebugCXXAMP
│   │       ├───Microsoft.VC110.DebugMFC
│   │       └───Microsoft.VC110.DebugOpenMP
│   ├───GraphicsDbgRedist
│   │   ├───ARM
│   │   │   └───1033
│   │   ├───X64
│   │   │   └───1033
│   │   └───X86
│   │       └───1033
│   ├───x64
│   │   ├───Microsoft.VC110.ATL
│   │   ├───Microsoft.VC110.CRT
│   │   ├───Microsoft.VC110.CXXAMP
│   │   ├───Microsoft.VC110.MFC
│   │   ├───Microsoft.VC110.MFCLOC
│   │   └───Microsoft.VC110.OpenMP
│   └───x86
│       ├───Microsoft.VC110.ATL
│       ├───Microsoft.VC110.CRT
│       ├───Microsoft.VC110.CXXAMP
│       ├───Microsoft.VC110.MFC
│       ├───Microsoft.VC110.MFCLOC
│       └───Microsoft.VC110.OPENMP
├───Snippets
│   └───1033
│       └───Visual C++
├───UnitTest
│   ├───include
│   ├───lib
│   │   ├───amd64
│   │   └───arm
│   └───WindowsPhone
│       ├───Include
│       └───Lib
│           └───arm
├───VCAddClass
│   ├───ATL
│   ├───Generic
│   ├───MFC
│   └───VCNet
├───VCContextItems
├───VCNewItems
├───vcpackages
│   ├───1033
│   └───en
├───VCProjectDefaults
├───vcprojectitems
│   ├───Code
│   ├───Data
│   ├───PropertySheets
│   ├───Resource
│   ├───Test
│   ├───UI
│   ├───Utility
│   └───Web
├───vcprojects
│   ├───ATL
│   ├───General
│   ├───MFC
│   ├───Test
│   ├───vcNET
│   └───Win32
├───VCResourceTemplates
│   └───1033
└───VCWizards
    ├───1033
    │   └───Images
    ├───AppWiz
    │   ├───.NET
    │   │   ├───ClassLibrary
    │   │   │   ├───Scripts
    │   │   │   │   └───1033
    │   │   │   └───Templates
    │   │   │       └───1033
    │   │   ├───Console
    │   │   │   ├───Scripts
    │   │   │   │   └───1033
    │   │   │   └───Templates
    │   │   │       └───1033
    │   │   ├───ControlLibrary
    │   │   │   ├───scripts
    │   │   │   │   └───1033
    │   │   │   └───templates
    │   │   │       └───1033
    │   │   ├───EmptyProject
    │   │   │   └───Scripts
    │   │   │       └───1033
    │   │   ├───TestProject
    │   │   │   ├───scripts
    │   │   │   │   └───1033
    │   │   │   └───templates
    │   │   │       └───1033
    │   │   └───WinForm
    │   │       ├───scripts
    │   │       │   └───1033
    │   │       └───templates
    │   │           └───1033
    │   ├───ATL
    │   │   └───ATLProject
    │   │       ├───html
    │   │       │   └───1033
    │   │       ├───Images
    │   │       ├───scripts
    │   │       │   └───1033
    │   │       └───templates
    │   │           └───1033
    │   ├───Generic
    │   │   ├───Application
    │   │   │   ├───html
    │   │   │   │   └───1033
    │   │   │   ├───images
    │   │   │   ├───scripts
    │   │   │   │   └───1033
    │   │   │   └───templates
    │   │   │       └───1033
    │   │   ├───CustomWizard
    │   │   │   ├───HTML
    │   │   │   │   └───1033
    │   │   │   ├───Images
    │   │   │   ├───Scripts
    │   │   │   │   └───1033
    │   │   │   └───Templates
    │   │   │       └───1033
    │   │   ├───MakefileProject
    │   │   │   ├───HTML
    │   │   │   │   └───1033
    │   │   │   ├───Images
    │   │   │   ├───Scripts
    │   │   │   │   └───1033
    │   │   │   └───Templates
    │   │   │       └───1033
    │   │   └───UnitTest
    │   │       ├───scripts
    │   │       │   └───1033
    │   │       └───templates
    │   │           └───1033
    │   └───MFC
    │       ├───Application
    │       │   ├───html
    │       │   │   ├───1028
    │       │   │   ├───1029
    │       │   │   ├───1031
    │       │   │   ├───1033
    │       │   │   ├───1036
    │       │   │   ├───1040
    │       │   │   ├───1041
    │       │   │   ├───1042
    │       │   │   ├───1045
    │       │   │   ├───1046
    │       │   │   ├───1049
    │       │   │   ├───1055
    │       │   │   ├───2052
    │       │   │   └───3082
    │       │   ├───images
    │       │   ├───scripts
    │       │   │   ├───1028
    │       │   │   ├───1029
    │       │   │   ├───1031
    │       │   │   ├───1033
    │       │   │   ├───1036
    │       │   │   ├───1040
    │       │   │   ├───1041
    │       │   │   ├───1042
    │       │   │   ├───1045
    │       │   │   ├───1046
    │       │   │   ├───1049
    │       │   │   ├───1055
    │       │   │   ├───2052
    │       │   │   └───3082
    │       │   └───templates
    │       │       ├───1028
    │       │       ├───1031
    │       │       ├───1033
    │       │       ├───1036
    │       │       ├───1040
    │       │       ├───1041
    │       │       ├───1042
    │       │       ├───1049
    │       │       ├───2052
    │       │       └───3082
    │       ├───Control
    │       │   ├───html
    │       │   │   ├───1028
    │       │   │   ├───1029
    │       │   │   ├───1031
    │       │   │   ├───1033
    │       │   │   ├───1036
    │       │   │   ├───1040
    │       │   │   ├───1041
    │       │   │   ├───1042
    │       │   │   ├───1045
    │       │   │   ├───1046
    │       │   │   ├───1049
    │       │   │   ├───1055
    │       │   │   ├───2052
    │       │   │   └───3082
    │       │   ├───images
    │       │   ├───scripts
    │       │   │   ├───1028
    │       │   │   ├───1029
    │       │   │   ├───1031
    │       │   │   ├───1033
    │       │   │   ├───1036
    │       │   │   ├───1040
    │       │   │   ├───1041
    │       │   │   ├───1042
    │       │   │   ├───1045
    │       │   │   ├───1046
    │       │   │   ├───1049
    │       │   │   ├───1055
    │       │   │   ├───2052
    │       │   │   └───3082
    │       │   └───templates
    │       │       ├───1028
    │       │       ├───1029
    │       │       ├───1031
    │       │       ├───1033
    │       │       ├───1036
    │       │       ├───1040
    │       │       ├───1041
    │       │       ├───1042
    │       │       ├───1045
    │       │       ├───1046
    │       │       ├───1049
    │       │       ├───1055
    │       │       ├───2052
    │       │       └───3082
    │       └───Library
    │           ├───html
    │           │   ├───1028
    │           │   ├───1029
    │           │   ├───1031
    │           │   ├───1033
    │           │   ├───1036
    │           │   ├───1040
    │           │   ├───1041
    │           │   ├───1042
    │           │   ├───1045
    │           │   ├───1046
    │           │   ├───1049
    │           │   ├───1055
    │           │   ├───2052
    │           │   └───3082
    │           ├───Images
    │           ├───scripts
    │           │   ├───1028
    │           │   ├───1029
    │           │   ├───1031
    │           │   ├───1033
    │           │   ├───1036
    │           │   ├───1040
    │           │   ├───1041
    │           │   ├───1042
    │           │   ├───1045
    │           │   ├───1046
    │           │   ├───1049
    │           │   ├───1055
    │           │   ├───2052
    │           │   └───3082
    │           └───templates
    │               ├───1028
    │               ├───1029
    │               ├───1031
    │               ├───1033
    │               ├───1036
    │               ├───1040
    │               ├───1041
    │               ├───1042
    │               ├───1045
    │               ├───1046
    │               ├───1049
    │               ├───1055
    │               ├───2052
    │               └───3082
    └───CodeWiz
        ├───.NET
        │   ├───Component
        │   │   ├───scripts
        │   │   │   └───1033
        │   │   └───templates
        │   │       └───1033
        │   ├───Installer
        │   │   ├───scripts
        │   │   │   └───1033
        │   │   └───templates
        │   │       └───1033
        │   ├───UserControl
        │   │   ├───scripts
        │   │   │   └───1033
        │   │   └───templates
        │   │       └───1033
        │   ├───WinForm
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   └───XMLSchema
        │       ├───Scripts
        │       │   └───1033
        │       └───Templates
        │           └───1033
        ├───ATL
        │   ├───AddToMFC
        │   │   ├───Images
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   ├───ASP
        │   │   ├───HTML
        │   │   │   └───1033
        │   │   ├───Images
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   ├───Consumer
        │   │   ├───HTML
        │   │   │   └───1033
        │   │   ├───Images
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   ├───Control
        │   │   ├───HTML
        │   │   │   └───1033
        │   │   ├───Images
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   ├───DLG
        │   │   ├───HTML
        │   │   │   └───1033
        │   │   ├───Images
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   ├───ImplementInterface
        │   │   ├───HTML
        │   │   │   └───1033
        │   │   ├───Images
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   ├───Method
        │   │   ├───HTML
        │   │   │   └───1033
        │   │   ├───Images
        │   │   └───Scripts
        │   │       └───1033
        │   ├───MTS
        │   │   ├───HTML
        │   │   │   └───1033
        │   │   ├───Images
        │   │   ├───scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   ├───PPG
        │   │   ├───HTML
        │   │   │   └───1033
        │   │   ├───Images
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   ├───Property
        │   │   ├───HTML
        │   │   │   └───1033
        │   │   ├───Images
        │   │   └───Scripts
        │   │       └───1033
        │   ├───Provider
        │   │   ├───HTML
        │   │   │   └───1033
        │   │   ├───Images
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   ├───Simple
        │   │   ├───HTML
        │   │   │   └───1033
        │   │   ├───Images
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   └───SRFFile
        │       ├───Scripts
        │       │   └───1033
        │       └───Templates
        │           └───1033
        ├───Generic
        │   ├───Class
        │   │   ├───HTML
        │   │   │   └───1033
        │   │   ├───Images
        │   │   └───Scripts
        │   │       └───1033
        │   ├───DEFFile
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   ├───PropertySheet
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   ├───RCFile
        │   │   ├───Scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   ├───ResourceScript
        │   │   ├───scripts
        │   │   │   └───1033
        │   │   └───Templates
        │   │       └───1033
        │   └───UnitTest
        │       ├───scripts
        │       │   └───1033
        │       └───templates
        │           └───1033
        └───MFC
            ├───AxControl
            │   ├───HTML
            │   │   ├───1028
            │   │   ├───1029
            │   │   ├───1031
            │   │   ├───1033
            │   │   ├───1036
            │   │   ├───1040
            │   │   ├───1041
            │   │   ├───1042
            │   │   ├───1045
            │   │   ├───1046
            │   │   ├───1049
            │   │   ├───1055
            │   │   ├───2052
            │   │   └───3082
            │   ├───Images
            │   ├───Scripts
            │   │   ├───1028
            │   │   ├───1029
            │   │   ├───1031
            │   │   ├───1033
            │   │   ├───1036
            │   │   ├───1040
            │   │   ├───1041
            │   │   ├───1042
            │   │   ├───1045
            │   │   ├───1046
            │   │   ├───1049
            │   │   ├───1055
            │   │   ├───2052
            │   │   └───3082
            │   └───Templates
            │       ├───1028
            │       ├───1029
            │       ├───1031
            │       ├───1033
            │       ├───1036
            │       ├───1040
            │       ├───1041
            │       ├───1042
            │       ├───1045
            │       ├───1046
            │       ├───1049
            │       ├───1055
            │       ├───2052
            │       └───3082
            ├───CommandHandler
            │   ├───HTML
            │   │   ├───1028
            │   │   ├───1029
            │   │   ├───1031
            │   │   ├───1033
            │   │   ├───1036
            │   │   ├───1040
            │   │   ├───1041
            │   │   ├───1042
            │   │   ├───1045
            │   │   ├───1046
            │   │   ├───1049
            │   │   ├───1055
            │   │   ├───2052
            │   │   └───3082
            │   ├───Images
            │   └───Scripts
            │       ├───1028
            │       ├───1029
            │       ├───1031
            │       ├───1033
            │       ├───1036
            │       ├───1040
            │       ├───1041
            │       ├───1042
            │       ├───1045
            │       ├───1046
            │       ├───1049
            │       ├───1055
            │       ├───2052
            │       └───3082
            ├───Consumer
            │   ├───HTML
            │   │   ├───1028
            │   │   ├───1029
            │   │   ├───1031
            │   │   ├───1033
            │   │   ├───1036
            │   │   ├───1040
            │   │   ├───1041
            │   │   ├───1042
            │   │   ├───1045
            │   │   ├───1046
            │   │   ├───1049
            │   │   ├───1055
            │   │   ├───2052
            │   │   └───3082
            │   ├───Images
            │   ├───Scripts
            │   │   ├───1028
            │   │   ├───1029
            │   │   ├───1031
            │   │   ├───1033
            │   │   ├───1036
            │   │   ├───1040
            │   │   ├───1041
            │   │   ├───1042
            │   │   ├───1045
            │   │   ├───1046
            │   │   ├───1049
            │   │   ├───1055
            │   │   ├───2052
            │   │   └───3082
            │   └───Templates
            │       ├───1028
            │       ├───1029
            │       ├───1031
            │       ├───1033
            │       ├───1036
            │       ├───1040
            │       ├───1041
            │       ├───1042
            │       ├───1045
            │       ├───1046
            │       ├───1049
            │       ├───1055
            │       ├───2052
            │       └───3082
            ├───Event
            │   ├───HTML
            │   │   ├───1028
            │   │   ├───1029
            │   │   ├───1031
            │   │   ├───1033
            │   │   ├───1036
            │   │   ├───1040
            │   │   ├───1041
            │   │   ├───1042
            │   │   ├───1045
            │   │   ├───1046
            │   │   ├───1049
            │   │   ├───1055
            │   │   ├───2052
            │   │   └───3082
            │   ├───Images
            │   └───Scripts
            │       ├───1028
            │       ├───1029
            │       ├───1031
            │       ├───1033
            │       ├───1036
            │       ├───1040
            │       ├───1041
            │       ├───1042
            │       ├───1045
            │       ├───1046
            │       ├───1049
            │       ├───1055
            │       ├───2052
            │       └───3082
            ├───Function
            │   ├───HTML
            │   │   ├───1028
            │   │   ├───1029
            │   │   ├───1031
            │   │   ├───1033
            │   │   ├───1036
            │   │   ├───1040
            │   │   ├───1041
            │   │   ├───1042
            │   │   ├───1045
            │   │   ├───1046
            │   │   ├───1049
            │   │   ├───1055
            │   │   ├───2052
            │   │   └───3082
            │   ├───Images
            │   └───Scripts
            │       ├───1028
            │       ├───1029
            │       ├───1031
            │       ├───1033
            │       ├───1036
            │       ├───1040
            │       ├───1041
            │       ├───1042
            │       ├───1045
            │       ├───1046
            │       ├───1049
            │       ├───1055
            │       ├───2052
            │       └───3082
            ├───Simple
            │   ├───HTML
            │   │   ├───1028
            │   │   ├───1029
            │   │   ├───1031
            │   │   ├───1033
            │   │   ├───1036
            │   │   ├───1040
            │   │   ├───1041
            │   │   ├───1042
            │   │   ├───1045
            │   │   ├───1046
            │   │   ├───1049
            │   │   ├───1055
            │   │   ├───2052
            │   │   └───3082
            │   ├───Images
            │   ├───scripts
            │   │   ├───1028
            │   │   ├───1029
            │   │   ├───1031
            │   │   ├───1033
            │   │   ├───1036
            │   │   ├───1040
            │   │   ├───1041
            │   │   ├───1042
            │   │   ├───1045
            │   │   ├───1046
            │   │   ├───1049
            │   │   ├───1055
            │   │   ├───2052
            │   │   └───3082
            │   └───Templates
            │       ├───1028
            │       ├───1029
            │       ├───1031
            │       ├───1033
            │       ├───1036
            │       ├───1040
            │       ├───1041
            │       ├───1042
            │       ├───1045
            │       ├───1046
            │       ├───1049
            │       ├───1055
            │       ├───2052
            │       └───3082
            ├───Typelib
            │   ├───HTML
            │   │   ├───1028
            │   │   ├───1029
            │   │   ├───1031
            │   │   ├───1033
            │   │   ├───1036
            │   │   ├───1040
            │   │   ├───1041
            │   │   ├───1042
            │   │   ├───1045
            │   │   ├───1046
            │   │   ├───1049
            │   │   ├───1055
            │   │   ├───2052
            │   │   └───3082
            │   ├───Images
            │   ├───Scripts
            │   │   ├───1028
            │   │   ├───1029
            │   │   ├───1031
            │   │   ├───1033
            │   │   ├───1036
            │   │   ├───1040
            │   │   ├───1041
            │   │   ├───1042
            │   │   ├───1045
            │   │   ├───1046
            │   │   ├───1049
            │   │   ├───1055
            │   │   ├───2052
            │   │   └───3082
            │   └───Templates
            │       ├───1028
            │       ├───1029
            │       ├───1031
            │       ├───1033
            │       ├───1036
            │       ├───1040
            │       ├───1041
            │       ├───1042
            │       ├───1045
            │       ├───1046
            │       ├───1049
            │       ├───1055
            │       ├───2052
            │       └───3082
            └───Variable
                ├───HTML
                │   ├───1028
                │   ├───1029
                │   ├───1031
                │   ├───1033
                │   ├───1036
                │   ├───1040
                │   ├───1041
                │   ├───1042
                │   ├───1045
                │   ├───1046
                │   ├───1049
                │   ├───1055
                │   ├───2052
                │   └───3082
                ├───Images
                ├───Scripts
                │   ├───1028
                │   ├───1029
                │   ├───1031
                │   ├───1033
                │   ├───1036
                │   ├───1040
                │   ├───1041
                │   ├───1042
                │   ├───1045
                │   ├───1046
                │   ├───1049
                │   ├───1055
                │   ├───2052
                │   └───3082
                └───Templates
                    ├───1028
                    ├───1029
                    ├───1031
                    ├───1033
                    ├───1036
                    ├───1040
                    ├───1041
                    ├───1042
                    ├───1045
                    ├───1046
                    ├───1049
                    ├───1055
                    ├───2052
                    └───3082

M1chae1 avatar Oct 11 '21 01:10 M1chae1

Please run tree /f inside C:\Program Files (x86)\Microsoft Visual Studio 11.0 (without VC) and attach as file. I forget about files key

egorpugin avatar Oct 11 '21 09:10 egorpugin

There is the result of tree /f inside C:\Program Files (x86)\Microsoft Visual Studio 11.0 attached

tree.txt

M1chae1 avatar Oct 12 '21 01:10 M1chae1

Try to do 32-bit build sw build -static -platform x86

egorpugin avatar Oct 12 '21 10:10 egorpugin

Run sw build -static -platform x86 in command prompt

Downloading database from origin remote
Downloading: [org.sw.demo.nlohmann.json-3.10.3]/[Source Archive]
Unpacking  : [org.sw.demo.nlohmann.json-3.10.3]/[Source Archive]
Downloading: [pub.egorpugin.primitives.tools.embedder-0.3.0]/[Source Archive]
Unpacking  : [pub.egorpugin.primitives.tools.embedder-0.3.0]/[Source Archive]
Exception in file D:/dev/cppan2/client2/src/sw/driver/compiler/detect.cpp:83, function detectMsvcPrefix: Cannot match VS include prefix (Bad output: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/amd64/cl.exe" "/showIncludes" "/c" "C:\Users\Michael\AppData\Local\Temp\sw\cliprefix\eb17-b76b-a764-1b58.c" "/FoC:\Users\Michael\AppData\Local\Temp\sw\cliprefix\eb17-b76b-a764-1b58.c.obj"
Env: PATH: C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
):

stderr:

image

Run in VC 2012 Developer Command Prompt

Exception in file D:/dev/cppan2/client2/src/sw/driver/compiler/detect.cpp:83, function detectMsvcPrefix: Cannot match VS include prefix (Bad output: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/amd64/cl.exe" "/showIncludes" "/c" "C:\Users\Michael\AppData\Local\Temp\sw\cliprefix\8ab2-fa1d-7fc7-c102.c" "/FoC:\Users\Michael\AppData\Local\Temp\sw\cliprefix\8ab2-fa1d-7fc7-c102.c.obj"
Env: PATH: C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
):

stderr:

image

M1chae1 avatar Oct 15 '21 01:10 M1chae1

Is it possible to install VS2017/2019/2022preview? Or VS2019 Build Tools.

Sw requires minimum VS2019 itself.

egorpugin avatar Oct 15 '21 10:10 egorpugin

Three version of Visual Studio are installed on my PC. Visual Studio 2019/2017/2012 Professional.

Actually, my final purpose is building tesseract in x86 and x64 with Visual Studio 2019.

M1chae1 avatar Oct 15 '21 11:10 M1chae1

I see. Yes, this is sw issue. I'll try to fix.

egorpugin avatar Oct 15 '21 11:10 egorpugin

Please try to install VS2012 Redist from MS. http://www.microsoft.com/en-us/download/details.aspx?id=30679#

Then re-run your commands.

egorpugin avatar Oct 16 '21 12:10 egorpugin

My PC already has the VS2012 runtime version 11.0.61030 installed

image

I have tried to choose repair on both x86/x64 redistributable

After repair

image

Now, running sw build -static...It is still running...

image

After 15 minutes...Orz

image

Re-run sw build -static again

image

It seems ok now. Thanks. I will try on building tesseract later. Thanks for your help.

M1chae1 avatar Oct 18 '21 02:10 M1chae1

I'm still getting this error in my 4NT shell with this client:

C:\Users\gvane\.sw>sw build --verbose org.sw.demo.llvm_project.clang.Analysis
Exception in file D:/dev/cppan2/client2/src/sw/driver/compiler/detect.cpp:97, function detectMsvcPrefix: Cannot match VS include prefix (reg ex_search failed):

stderr:
4NT: Unknown command "F:"

But a cmd /c sw build -verbose org.sw.demo.llvm_project.clang.Analysis seems to work until this error:

...
[140/140] C:/Users/gvane/.sw/storage/tmp/cfg/175218/loc.sw.self.104e4f-0.0.30.dll
Exception in file D:/dev/cppan2/client2/src/sw/driver/module.cpp:120, function operator (): error in module (C:/Users/gvane/.sw/storage/tmp/
cfg/175218/loc.sw.self.104e4f-0.0.30.dll): Exception in file D:/dev/cppan2/client2/src/sw/manager/database.cpp:261, function getPackageData:
 No such package in db: org.sw.demo.llvm_project.clang.Frontend-15.0.5

gvanem avatar Nov 26 '22 09:11 gvanem

  1. Try sw --self-upgrade
  2. Try --trace flag, post output

egorpugin avatar Nov 26 '22 11:11 egorpugin

c:\> sw --self-upgrade  --trace
----------------------------------------
Starting sw...
version:
sw.client.sw version 1.0.0
git revision 0807fe6f4a866678fa022a53ffd26532e49da15f
assembled on
23.11.2022 18:53:31 UTC
23.11.2022 19:53:31 Vest-Europa (normaltid)
command line:
sw --self-upgrade --trace
Downloading signature file: https://software-network.org//client/sw-master-windows-client.zip.sha512.sig
Downloading the latest client: https://software-network.org//client/sw-master-windows-client.zip
Unpacking
Replacing client

F:\MinGW32\src\LUA\Allegory-Software\tests>Waiting old program to exit...
Success!

But still the same:

stderr:
4NT: Unknown command "F:"

What is it trying to do? (no details with --verbose either)

gvanem avatar Nov 26 '22 11:11 gvanem

It is trying to detect msvc prefix. Post full your command output with trace. Not self upgrade with trace, but your command with --trace.

egorpugin avatar Nov 26 '22 11:11 egorpugin

I have a clang-cl.bat ahead of clang-cl.exe in my PATH:

@echo
if %CLANG_32%. == . set CLANG_32=f:\ProgramFiler\LLVM-13-32bit
if %CLANG_64%. == . set CLANG_64=f:\ProgramFiler\LLVM-13-64bit
if %1. == -m32. (
  shift
  %CLANG_32%\bin\clang-cl.exe %*
) else if %1. == -m64. (
  shift
  %CLANG_64%\bin\clang-cl.exe %*
) else (
  clang-cl.exe %*
)

Thus:

...
Detected program: F:\gv\WinKit\bin\10.0.22621.0\x64\mc.exe
Empty stdout from 'F:/gv/bat/clang-cl.bat', trying stderr. Cmd: "F:/gv/bat/clang-cl.bat" "/showIncludes" "/c" "c:\TEMP\sw\cliprefix\6ec4-65d
a-269a-5c31.c" "/FoC:\TEMP\sw\cliprefix\6ec4-65da-269a-5c31.c.obj"
Env:
stdout =
stderr = 4NT: Unknown command "F:"
error code = 2
Cmd: "F:/gv/bat/clang-cl.bat" "/showIncludes" "/c" "c:\TEMP\sw\cliprefix\6ec4-65da-269a-5c31.c" "/FoC:\TEMP\sw\cliprefix\6ec4-65da-269a-5c31
.c.obj"
Env:
Exception in file D:/dev/cppan2/client2/src/sw/driver/compiler/detect.cpp:97, function detectMsvcPrefix: Cannot match VS include prefix (reg
ex_search failed):

stderr:
4NT: Unknown command "F:"

But why is system() called with / slashes? I'm on Windows. cmd.exe seems to handle this, but not 4nt.exe.

gvanem avatar Nov 26 '22 11:11 gvanem

So, this happens because your wrapper or cmd cannot handle this command.

"F:/gv/bat/clang-cl.bat" "/showIncludes" "/c" "c:\TEMP\sw\cliprefix\6ec4-65da-269a-5c31.c" "/FoC:\TEMP\sw\cliprefix\6ec4-65da-269a-5c31.c.obj"

Try to create main.c file with

#include <stdio.h>
int main(){}

and run in your cmd clang-cl /showIncludes /c main.c /Fomain.obj Post output.

Next, try to call: F:/gv/bat/clang-cl.bat /showIncludes /c main.c /Fomain.obj

Next, try to call: F:\gv\bat\clang-cl.bat /showIncludes /c main.c /Fomain.obj

egorpugin avatar Nov 26 '22 12:11 egorpugin

1. clang-cl.exe /showIncludes /c main.c /Fomain.obj:

Note: including file: f:\gv\WinKit\Include\10.0.22621.0\ucrt\stdio.h
Note: including file:  f:\gv\WinKit\Include\10.0.22621.0\ucrt\corecrt.h
Note: including file:   f:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\include\vcruntime.h
Note: including file:    f:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\include\sal.h
Note: including file:     f:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\include\concurrencysal.h
Note: including file:    F:\ProgramFiler\LLVM-15.0.3\win64\lib\clang\15.0.3\include\vadefs.h
Note: including file:     f:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\include\vadefs.h
Note: including file:  f:\gv\WinKit\Include\10.0.22621.0\ucrt\corecrt_wstdio.h
Note: including file:   f:\gv\WinKit\Include\10.0.22621.0\ucrt\corecrt_stdio_config.h

2. F:/gv/bat/clang-cl.bat /showIncludes /c main.c /Fomain.obj:

4NT: Unknown command "F:"

3. cmd /c F:/gv/bat/clang-cl.bat /showIncludes /c main.c /Fomain.obj is OK (same as the 1st).

4. F:\gv\bat\clang-cl.bat /showIncludes /c main.c /Fomain.obj also OK (same as the 1st).

gvanem avatar Nov 26 '22 12:11 gvanem

Could you write set or export command in your shell and post output without any sensitive info? I need a way to detect that shell via envvar and apply some rules based on it (replace slashes etc.).

egorpugin avatar Nov 26 '22 13:11 egorpugin

Also try this binary. I've made a possible fix.

sw.zip

egorpugin avatar Nov 26 '22 13:11 egorpugin

Could you write set or export command in your shell and post output without any sensitive info?

Attached: my-env.txt

gvanem avatar Nov 26 '22 13:11 gvanem

Also try this binary. I've made a possible fix.

Still the same:

stderr:
4NT: Unknown command "F:"

gvanem avatar Nov 26 '22 13:11 gvanem

Please post full trace logs. This is not enough.

egorpugin avatar Nov 26 '22 13:11 egorpugin

I have no problem with vcpkg and buldind stuff. But here you go. From trying another package (org.sw.demo.Esri.lerc, whatever that is):

----------------------------------------
Starting sw...
version:
sw.client.sw version 1.0.0
git revision 0807fe6f4a866678fa022a53ffd26532e49da15f plus 1 modified files
assembled on
26.11.2022 13:08:59 UTC
26.11.2022 14:08:59 Vest-Europa (normaltid)
command line:
sw build --trace org.sw.demo.Esri.lerc 
Checking remote version
Host configuration: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Registering driver: org.sw.sw.driver.cpp-0.4.1
Loading input: org.sw.demo.Esri.lerc-3.0.0
using sw frontend for input "C:/Users/gvane/.sw/storage/pkg/53/e7/4fc4/src/sdir\\sw.cpp"
build id 0000027409ABD680 performing void __cdecl sw::SwBuild::loadInputs(void)
Detected target: com.Microsoft.VisualStudio.VC.cl-19.35.32019: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\bin\Hostx64\x64\cl.exe
Detected target: msvc-19.35.32019: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.link-19.35.32019: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\bin\Hostx64\x64\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.35.32019: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\bin\Hostx64\x64\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-19.35.32019: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\bin\Hostx64\x64\ml64.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.35.32019: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\bin\Hostx64\x64\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.35.32019: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.35.32019: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.35.32019: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.35.32019: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-19.35.32019: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\bin\Hostx64\x86\cl.exe
Detected target: com.Microsoft.VisualStudio.VC.link-19.35.32019: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\bin\Hostx64\x86\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.35.32019: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\bin\Hostx64\x86\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-19.35.32019: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\bin\Hostx64\x86\ml.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.35.32019: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\VC_2022\VC\Tools\MSVC\14.35.32019\bin\Hostx64\x86\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.35.32019: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.35.32019: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.35.32019: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.35.32019: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
detectMsvcCommon: "F:\\gv\\VC_2022\\VC\\Tools\\MSVC\\14.35.32019\\bin\\Hostx64\\arm\\cl.exe" does not exists
detectMsvcCommon: "F:\\gv\\VC_2022\\VC\\Tools\\MSVC\\14.35.32019\\bin\\Hostx64\\arm64\\cl.exe" does not exists
Detecting msvc 14 and older
Found VS140COMNTOOLS=f:\gv\VC_2022\Common7\Tools\
Use VS140COMNTOOLS as "f:\\gv\\VC_2022"
detectMsvcCommon: "f:\\gv\\VC_2022\\VC\\bin\\amd64\\cl.exe" does not exists
detectMsvcCommon: "f:\\gv\\VC_2022\\VC\\bin\\amd64_x86\\cl.exe" does not exists
detectMsvcCommon: "f:\\gv\\VC_2022\\VC\\bin\\amd64_arm\\cl.exe" does not exists
Default VS2015 paths were not found. Trying older versions layout.
detectMsvcCommon: "f:\\gv\\VC_2022\\VC\\bin\\x86_amd64\\cl.exe" does not exists
detectMsvcCommon: "f:\\gv\\VC_2022\\VC\\bin\\cl.exe" does not exists
getWindowsKitRootFromReg::TryGetStringValue error: Operasjonen er utført.

getWindowsKitRootFromReg::TryGetStringValue error: Operasjonen er utført.

getWindowsKitRootFromReg::TryGetStringValue error: Operasjonen er utført.

Found Windows Kit 10.0.19041.0 at F:/Windows Kits/10
Include dir "F:\\Windows Kits\\10\\Include\\10.0.19041.0\\ucrt" not found for library: ucrt
Include dir "F:\\Windows Kits\\10\\Include\\10.0.19041.0\\um" not found for library: um
Include dir "F:\\Windows Kits\\10\\Include\\10.0.19041.0\\km" not found for library: km
Include dir "F:\\Windows Kits\\10\\Include\\10.0.19041.0\\winrt" not found for library: winrt
Include dir "F:\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt" not found for library: cppwinrt
Found Windows Kit 10.0.20348.0 at F:/Windows Kits/10
Include dir "F:\\Windows Kits\\10\\Include\\10.0.20348.0\\ucrt" not found for library: ucrt
Include dir "F:\\Windows Kits\\10\\Include\\10.0.20348.0\\um" not found for library: um
Include dir "F:\\Windows Kits\\10\\Include\\10.0.20348.0\\km" not found for library: km
Include dir "F:\\Windows Kits\\10\\Include\\10.0.20348.0\\winrt" not found for library: winrt
Include dir "F:\\Windows Kits\\10\\Include\\10.0.20348.0\\cppwinrt" not found for library: cppwinrt
Found Windows Kit 10.0.22000.0 at F:/Windows Kits/10
Include dir "F:\\Windows Kits\\10\\Include\\10.0.22000.0\\ucrt" not found for library: ucrt
Include dir "F:\\Windows Kits\\10\\Include\\10.0.22000.0\\um" not found for library: um
Include dir "F:\\Windows Kits\\10\\Include\\10.0.22000.0\\km" not found for library: km
Include dir "F:\\Windows Kits\\10\\Include\\10.0.22000.0\\winrt" not found for library: winrt
Include dir "F:\\Windows Kits\\10\\Include\\10.0.22000.0\\cppwinrt" not found for library: cppwinrt
Found Windows Kit 10.0.22621.0 at F:/Windows Kits/10
Include dir "F:\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt" not found for library: ucrt
Include dir "F:\\Windows Kits\\10\\Include\\10.0.22621.0\\um" not found for library: um
Include dir "F:\\Windows Kits\\10\\Include\\10.0.22621.0\\km" not found for library: km
Include dir "F:\\Windows Kits\\10\\Include\\10.0.22621.0\\winrt" not found for library: winrt
Include dir "F:\\Windows Kits\\10\\Include\\10.0.22621.0\\cppwinrt" not found for library: cppwinrt
Found Windows Kit 10.0.19041.0 at F:/gv/WinKit
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.19041.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.19041.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.19041.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.19041.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.19041.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.19041.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.19041.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.19041.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Include dir "F:\\gv\\WinKit\\Include\\10.0.19041.0\\km" not found for library: km
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.19041.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.19041.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.19041.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.19041.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.19041.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.19041.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.19041.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.19041.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.rc-10.0.10011.16384: {"os":{"kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\WinKit\bin\10.0.19041.0\x64\rc.exe
Detected target: com.Microsoft.Windows.mc-10.0.19041: {"os":{"kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\WinKit\bin\10.0.19041.0\x64\mc.exe
Found Windows Kit 10.0.20348.0 at F:/gv/WinKit
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.20348.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.20348.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.20348.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.20348.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.20348.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.20348.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.20348.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.20348.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Include dir "F:\\gv\\WinKit\\Include\\10.0.20348.0\\km" not found for library: km
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.20348.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.20348.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.20348.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.20348.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.20348.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.20348.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.20348.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.20348.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.rc-10.0.10011.16384: {"os":{"kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\WinKit\bin\10.0.20348.0\x64\rc.exe
Detected target: com.Microsoft.Windows.mc-10.0.20348: {"os":{"kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\WinKit\bin\10.0.20348.0\x64\mc.exe
Found Windows Kit 10.0.22000.0 at F:/gv/WinKit
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.22000.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.22000.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.22000.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.22000.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.22000.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.22000.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.22000.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.22000.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Include dir "F:\\gv\\WinKit\\Include\\10.0.22000.0\\km" not found for library: km
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.22000.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.22000.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.22000.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.22000.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.22000.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.22000.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.22000.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.22000.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.rc-10.0.10011.16384: {"os":{"kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\WinKit\bin\10.0.22000.0\x64\rc.exe
Detected target: com.Microsoft.Windows.mc-10.0.22000: {"os":{"kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\WinKit\bin\10.0.22000.0\x64\mc.exe
Found Windows Kit 10.0.22621.0 at F:/gv/WinKit
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.22621.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.22621.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.22621.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.ucrt-10.0.22621.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.22621.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.22621.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.22621.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.um-10.0.22621.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.km-10.0.22621.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.km-10.0.22621.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.km-10.0.22621.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.km-10.0.22621.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.22621.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.22621.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.22621.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.winrt-10.0.22621.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.22621.0: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.22621.0: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.22621.0: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.SDK.cppwinrt-10.0.22621.0: {"os":{"arch":"aarch64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.Windows.rc-10.0.10011.16384: {"os":{"kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\WinKit\bin\10.0.22621.0\x64\rc.exe
Detected target: com.Microsoft.Windows.mc-10.0.22621: {"os":{"kernel":"com.Microsoft.Windows.NT"}}
Detected program: F:\gv\WinKit\bin\10.0.22621.0\x64\mc.exe
Empty stdout from 'F:/gv/bat/clang-cl.bat', trying stderr. Cmd: "F:/gv/bat/clang-cl.bat" "/showIncludes" "/c" "c:\TEMP\sw\cliprefix\2757-49a8-94d8-e3bd.c" "/FoC:\TEMP\sw\cliprefix\2757-49a8-94d8-e3bd.c.obj"
Env: 
stdout = 
stderr = 4NT: Unknown command "F:"

error code = 2
Cmd: "F:/gv/bat/clang-cl.bat" "/showIncludes" "/c" "c:\TEMP\sw\cliprefix\2757-49a8-94d8-e3bd.c" "/FoC:\TEMP\sw\cliprefix\2757-49a8-94d8-e3bd.c.obj"
Env: 
Exception in file D:\dev\cppan2\client2\src\sw\driver\compiler\detect.cpp:100, function detectMsvcPrefix: Cannot match VS include prefix (regex_search failed):

stderr:
4NT: Unknown command "F:"

gvanem avatar Nov 26 '22 13:11 gvanem

Now after D/L the above sw.zip again, Windows Defender found a Wacatac.B!ml virus in it! sw-virus WTF?

gvanem avatar Nov 26 '22 13:11 gvanem

Try to ask windows defender or upload to virus total. https://www.virustotal.com/gui/file/43a71a6320e645c8a10368ab3d4e8bb3af4868cf608dc3b3e2e57e07be310090?nocache=1

egorpugin avatar Nov 26 '22 13:11 egorpugin

Please try sw --self-upgrade and re-run your command. I've made another fix.

egorpugin avatar Nov 26 '22 17:11 egorpugin

A sw build --trace org.sw.demo.Esri.lerc succeeded now!

gvanem avatar Nov 26 '22 17:11 gvanem