Skip to content

Creating an AmazonLinux2 Swift SDK fails #138

Open
@sebsto

Description

Hello,

I wonder if it would be possible to generate an Amazon Linux 2 SDK ?
When I try to follow instruction to generate a SDK with a docker image, it generates files with the name Ubuntu

I surely missed something.

swift run swift-sdk-generator make-linux-sdk --from-container-image swift:6.0-amazonlinux2 --with-docker --swift-version 6.0.1-RELEASE                 
Building for debugging...
[1/1] Write swift-version-7BB6C6736DFA3E78.txt
Build of product 'swift-sdk-generator' complete! (0.33s)

Looking up configuration values...

Downloading required toolchain packages...
Using downloaded artifacts in these locations:
/Users/stormacq/Desktop/swift-sdk-generator/Artifacts/host_llvm_17.0.5_arm64-apple-macos15.0.0.tar.xz
/Users/stormacq/Desktop/swift-sdk-generator/Artifacts/host_swift_6.0.1-RELEASE_arm64-apple-macos15.0.0.pkg

Unpacking and copying Swift binaries for the host triple...
10608439 blocks

Launching a Docker container to copy Swift SDK for the target triple from it...

Copying Swift core libraries for the target triple into Swift SDK bundle...

Unpacking and copying `lld` linker...

Fixing up absolute symlinks...

Fixing absolute paths in `glibc.modulemap`...

Generating toolset JSON file...

Generating destination JSON file...

Generating .artifactbundle manifest file...

All done! Install the newly generated SDK with this command:
swift experimental-sdk install /Users/stormacq/Desktop/swift-sdk-generator/Bundles/6.0.1-RELEASE_ubuntu_jammy_aarch64.artifactbundle

After that, use the newly installed SDK when building with this command:
swift build --experimental-swift-sdk 6.0.1-RELEASE_ubuntu_jammy_aarch64

Time taken for this generator run: 3:08 seconds.

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions