swift-sdk-generator icon indicating copy to clipboard operation
swift-sdk-generator copied to clipboard

`Error: HTTPClientError.remoteConnectionClosed`

Open Sammcb opened this issue 1 year ago • 3 comments

Hi! I am trying to cross compile for ubuntu x86_64 and arm64 architectures. I followed the steps on the readme and cloned the repo and ran swift run swift-sdk-generator.

However, I am seeing this output:

Parsing Ubuntu packages list...
Downloading 11 Ubuntu packages...
Error: HTTPClientError.remoteConnectionClosed

Edit: And running again with verbose output:

$ swift run swift-sdk-generator -v
Building for debugging...
Build complete! (0.14s)

Looking up configuration values...
uname -m
sw_vers -productVersion

Checking packages cache...
openssl dgst -sha256 /<folder>/swift-sdk-generator/Artifacts/host_swift_5.9-RELEASE_arm64-apple-macosx14.0.pkg
openssl dgst -sha256 /<folder>/swift-sdk-generator/Artifacts/host_llvm_16.0.5_arm64-apple-macosx14.0.tar.xz
openssl dgst -sha256 /<folder>/swift-sdk-generator/Artifacts/target_swift_5.9-RELEASE_arm64-unknown-linux-gnu.tar.gz

Parsing Ubuntu packages list...
gzip -cd
gzip -cd
gzip -cd
Downloading 11 Ubuntu packages...
Error: HTTPClientError.remoteConnectionClosed

Curious if this is an issue or if I am doing something wrong. I am running this on an M1 Pro Mac on macOS Sonoma with swift 5.9. Output of uname -a: Darwin <local host>.local 23.0.0 Darwin Kernel Version 23.0.0: <date>; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000 arm64 Output of swift --version:

swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
Target: arm64-apple-macosx14.0

SHA of swift-sdk-generator: 46cc742e5f28de778ebb6f061e62455e07bc3a81.

Thanks!

Sammcb avatar Oct 03 '23 19:10 Sammcb