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

RPM build scripts for Amazon Linux 2023, x64, Swift 5.8 and 5.9 #278

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

sebsto
Copy link

@sebsto sebsto commented Feb 15, 2024

This PR adds a new directory under Platforms/Linux/RPM/AmazonLinux to support building RPMs for Amazon Linux 2023.

The main changes are:

Additional changes for Swift 5.9

  • add dependency on swift-certificates
  • add dependency on swift-asn1

Instead of creating one git branch per Swift version, I included Dockerfile and swiftland.spec files for each version. The README file has instructions how to use these files.

This is tested on x64 only

@sebsto
Copy link
Author

sebsto commented Feb 15, 2024

There is one problem though

Swift 5.8 is a dependency to build Swift 5.9

  • When I install Swift 5.8 tar gz file that I built from the Swift project scripts, I can build Swift 5.9.
  • When I install Swift 5.8 RPM that I built from the Swift Installer Script scripts, build fails with the following error.
~/swift-project/swift
+ /usr/bin/cmake --build /home/ec2-user/swift-project/build/buildbot_linux/swift-linux-x86_64 -- -j128 all swift-stdlib-linux-x86_64 swift-libexec-linux-x86_64
ninja: error: '/usr/lib/swift/linux/x86_64/swiftrt.o', needed by 'bin/swift-frontend', missing and no known rule to make it

The RPM build is able to compile and run a "Hello Wolrd" app. Basic smoke test is OK.
I have no idea what this error message mean and how to fix this. Any guidance ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant