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

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

Open
g40 opened this issue Sep 26, 2024 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@g40
Copy link

g40 commented Sep 26, 2024

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\
@g40 g40 added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

1 participant