swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.37k stars 10.34k forks source link

Swift 6.0.1 Windows 10x64 Cannot build https://www.swift.org/getting-started/cli-swiftpm/ example #76718

Open g40 opened 2 days ago

g40 commented 2 days ago

Description

Wanted to test installation was correct. Used https://www.swift.org/getting-started/cli-swiftpm/ to create a new project.

r:\src\swift\cli>swift --version
Swift version 6.0.1 (swift-6.0.1-RELEASE)
Target: x86_64-unknown-windows-msvc
r:\src\swift\cli>swift run cli
error: 'cli': Invalid manifest (compiled with: ["R:\\dev\\swift\\Toolchains\\6.0.1+Asserts\\usr\\bin\\swiftc.exe", "-vfsoverlay", "C:\\Users\\moi\\AppData\\Local\\Temp\\TemporaryDirectory.wcrptd\\vfs.yaml", "-L", "R:\\dev\\swift\\Toolchains\\6.0.1+Asserts\\usr\\lib\\swift\\pm\\ManifestAPI", "-lPackageDescription", "-sdk", "R:\\dev\\swift\\Platforms\\6.0.1\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\", "-libc", "MD", "-I", "R:\\dev\\swift\\Platforms\\6.0.1\\Windows.platform\\Developer\\Library\\XCTest-development\\usr\\lib\\swift\\windows", "-I", "R:\\dev\\swift\\Platforms\\6.0.1\\Windows.platform\\Developer\\Library\\XCTest-development\\usr\\lib\\swift\\windows\\x86_64", "-L", "R:\\dev\\swift\\Platforms\\6.0.1\\Windows.platform\\Developer\\Library\\XCTest-development\\usr\\lib\\swift\\windows\\x86_64", "-I", "R:\\dev\\swift\\Platforms\\6.0.1\\Windows.platform\\Developer\\Library\\Testing-development\\usr\\lib\\swift\\windows", "-L", "R:\\dev\\swift\\Platforms\\6.0.1\\Windows.platform\\Developer\\Library\\Testing-development\\usr\\lib\\swift\\windows\\x86_64", "-use-ld=lld", "-swift-version", "6", "-I", "R:\\dev\\swift\\Toolchains\\6.0.1+Asserts\\usr\\lib\\swift\\pm\\ManifestAPI", "-package-description-version", "6.0.0", "R:\\src\\swift\\cli\\Package.swift", "-o", "C:\\Users\\moi\\AppData\\Local\\Temp\\TemporaryDirectory.PH46iR\\cli-manifest.exe"])
<unknown>:0: error: could not find module '_Concurrency' for target 'x86_64-unknown-windows-msvc'; found: aarch64-unknown-windows-msvc, i686-unknown-windows-msvc, at: R:\dev\swift\Platforms\6.0.1\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\_Concurrency.swiftmodule
error: 'cli': Invalid manifest (compiled with: ["R:\\dev\\swift\\Toolchains\\6.0.1+Asserts\\usr\\bin\\swiftc.exe", "-vfsoverlay", "C:\\Users\\moi\\AppData\\Local\\Temp\\TemporaryDirectory.fFIohS\\vfs.yaml", "-L", "R:\\dev\\swift\\Toolchains\\6.0.1+Asserts\\usr\\lib\\swift\\pm\\ManifestAPI", "-lPackageDescription", "-sdk", "R:\\dev\\swift\\Platforms\\6.0.1\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\", "-libc", "MD", "-I", "R:\\dev\\swift\\Platforms\\6.0.1\\Windows.platform\\Developer\\Library\\XCTest-development\\usr\\lib\\swift\\windows", "-I", "R:\\dev\\swift\\Platforms\\6.0.1\\Windows.platform\\Developer\\Library\\XCTest-development\\usr\\lib\\swift\\windows\\x86_64", "-L", "R:\\dev\\swift\\Platforms\\6.0.1\\Windows.platform\\Developer\\Library\\XCTest-development\\usr\\lib\\swift\\windows\\x86_64", "-I", "R:\\dev\\swift\\Platforms\\6.0.1\\Windows.platform\\Developer\\Library\\Testing-development\\usr\\lib\\swift\\windows", "-L", "R:\\dev\\swift\\Platforms\\6.0.1\\Windows.platform\\Developer\\Library\\Testing-development\\usr\\lib\\swift\\windows\\x86_64", "-use-ld=lld", "-swift-version", "6", "-I", "R:\\dev\\swift\\Toolchains\\6.0.1+Asserts\\usr\\lib\\swift\\pm\\ManifestAPI", "-package-description-version", "6.0.0", "R:\\src\\swift\\cli\\Package.swift", "-o", "C:\\Users\\moi\\AppData\\Local\\Temp\\TemporaryDirectory.OL7TrA\\cli-manifest.exe"])
<unknown>:0: error: could not find module '_Concurrency' for target 'x86_64-unknown-windows-msvc'; found: aarch64-unknown-windows-msvc, i686-unknown-windows-msvc, at: R:\dev\swift\Platforms\6.0.1\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\_Concurrency.swiftmodule

Reproduction

See above

Expected behavior

Successful compilation and a working executable file

Environment

r:\src\swift\cli>swiftc -version Swift version 6.0.1 (swift-6.0.1-RELEASE) Target: x86_64-unknown-windows-msvc

Additional information

r:\src\swift\cli>echo %PATH%
R:\apps\7-Zip;r:\apps\tis\ic4\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;R:\apps\vmware\16.5\bin\;R:\apps\python;R:\apps\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;R:\apps\putty\;C:\Program Files\dotnet\;C:\Program Files\WireGuard\;R:\apps\nodejs\;R:\apps\dev\nrf\bin\;C:\Program Files\get_iplayer;r:\src\vcpkg;r:/dev/mcuex/ide/tools/bin/;R:/dev/mcuex/ide//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.7.v20230425-1502/jre/bin/server;R:/dev/mcuex/ide//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.7.v20230425-1502/jre/bin;r:\apps\flutter\bin;R:\apps\openocd\bin;R:\apps\cppcheck;R:\apps\renode\bin;r:\apps\python\Scripts;r:\apps\win10pcap\Win32;r:\apps\rust\.cargo\bin;R:\apps\qemu\8.0;R:\apps\dart-sdk\bin;R:\apps\CMake\bin;R:\apps\Git\usr\bin;R:\apps\Git\mingw64\bin;R:\apps\Git\bin;R:\apps\bin;C:\Users\moi\AppData\Local\Microsoft\WindowsApps;r:\apps\vscode\bin;C:\Users\moi\AppData\Local\reflex\bun\bin;R:\apps\php;r:\apps\mc;R:\dev\swift\Runtimes\6.0.1\usr\bin\;R:\dev\swift\Toolchains\6.0.1+Asserts\usr\bin\;R:\dev\swift\Tools\6.0.1\