Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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 ?

@sebsto
Copy link
Author

sebsto commented Sep 28, 2024

@shahmishal @futurejones @finagolfin can I get some love for this PR ?
Or tell me how it should be modified ?
Or why it will not be merged ?

I'd like to land this one before sending one for Swift 6.0

Thank you

@finagolfin
Copy link
Member

I have never contributed to this repo, so don't know what it is for. Mishal or @tachoknight will have to fill you in.

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

Successfully merging this pull request may close these issues.

2 participants