Closed bkhouri closed 3 weeks ago
I've seen those errors when building with the Swift ARM toolchain without the MSVC ARM toolchains being installed.
The piece that was missing is --add Microsoft.VisualStudio.Component.VC.Tools.ARM64
. I'm fine with adding that to the instructions, but then people might complain about installing "unnecessary" components, but this seems reasonable for enabling cross-compilation.
@compnerd or @bkhouri can you create a PR to update the instructions on the install page?
Describe the bug
The instructions on Installation via Windows Package Manager does not install all required dependencies.
To Reproduce
Steps to reproduce the behaviour:
winget
. A screenshot of the instructions can be found below.At the time of writing this issue, the page content is:
winget install --id Microsoft.VisualStudio.2022.Community --exact --force --custom "--add Microsoft.VisualStudio.Component.Windows11SDK.22000 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"
winget install --id Swift.Toolchain -e
Expected behavior
The
swift build
is successful, so either:winget
install command should automatically start installation of the required dependenciesActual behavior
The build is unsuccessful as some dependencies do not appear to be installed.
Screenshots
Environment details
Desktop
Smartphone
N/A
If possible, minimal yet complete reproducer code (or link to code)
See "Steps to Reproduce" above
Swift.org version/commit hash
Access https://www.swift.org on Tuesday October 29 at 11:00AM ET (it's as close of a version/commit I can get :) )
Additional context
Adding one of these solved the issue.
The default steps installed MSCV X86_64 toolchain, while I was running Windows on ARM. Adding the following components allows the build the succeed.