swiftlang / swift-installer-scripts

Apache License 2.0
73 stars 38 forks source link

ARM64 fails to load package manifests #326

Closed dschaefer2 closed 3 months ago

dschaefer2 commented 3 months ago

I'm not sure how the toolchain picks up these libs but I'll start here.

I am getting the following link error when SwiftPM tries to build the package manifest. It works fine with the x86_64 toolchain, but not with ARM64.

lld-link: error: could not open 'msvcrt.lib': no such file or directory lld-link: error: could not open 'oldnames.lib': no such file or directory lld-link: error: could not open 'msvcprt.lib': no such file or directory lld-link: error: could not open 'legacy_stdio_definitions.lib': no such file or directory

shahmishal commented 3 months ago

cc: @compnerd

compnerd commented 3 months ago

This is the wrong place to report that issue - we do not have any native components in the installer. It seems like a user error though - those files are provided by VS. Did you install the native ARM64 VS and the native ARM64 toolchain? Which environment are you running this in? Do you have the ARM64 build tools installed?

compnerd commented 3 months ago

@shahmishal should we move this to swiftlang/swift?

dschaefer2 commented 3 months ago

Yup, that was it. I was missing the ARM64 toolchain. We'll need to make sure we mention that in the 6.0 install instructions.

I was assuming that since I'm running an ARM64 Windows the Visual Studio Installer would just do that by default.

compnerd commented 3 months ago

@dschaefer2 - software, just work? Wouldn't that be the day?

dschaefer2 commented 3 months ago

Indeed :). Closing this one.