-
Notifications
You must be signed in to change notification settings - Fork 40
RPM build scripts for Amazon Linux 2023, x64, Swift 5.8 and 5.9 #278
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
base: main
Are you sure you want to change the base?
Conversation
There is one problem though Swift 5.8 is a dependency to build Swift 5.9
~/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. |
@shahmishal @futurejones @finagolfin can I get some love for this PR ? I'd like to land this one before sending one for Swift 6.0 Thank you |
I have never contributed to this repo, so don't know what it is for. Mishal or @tachoknight will have to fill you in. |
This PR adds a new directory under
Platforms/Linux/RPM/AmazonLinux
to support building RPMs for Amazon Linux 2023.The main changes are:
ld.gold
from sources (see [build] fails to build on Amazon Linux 2023 swift#65495) (with this script to download, compile, and install the linker)build_script
set the required compiler and linker flags, instead ofrpmbuild
Additional changes for Swift 5.9
Instead of creating one git branch per Swift version, I included
Dockerfile
andswiftland.spec
files for each version. The README file has instructions how to use these files.This is tested on x64 only