RPM build scripts for Amazon Linux 2023, x64, Swift 5.8 and 5.9#278
Open
sebsto wants to merge 8 commits intoswiftlang:mainfrom
Open
RPM build scripts for Amazon Linux 2023, x64, Swift 5.8 and 5.9#278sebsto wants to merge 8 commits intoswiftlang:mainfrom
sebsto wants to merge 8 commits intoswiftlang:mainfrom
Conversation
Author
|
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 itThe RPM build is able to compile and run a "Hello Wolrd" app. Basic smoke test is OK. |
Author
|
@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 |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new directory under
Platforms/Linux/RPM/AmazonLinuxto support building RPMs for Amazon Linux 2023.The main changes are:
ld.goldfrom sources (see [build] fails to build on Amazon Linux 2023 swift#65495) (with this script to download, compile, and install the linker)build_scriptset the required compiler and linker flags, instead ofrpmbuildAdditional changes for Swift 5.9
Instead of creating one git branch per Swift version, I included
Dockerfileandswiftland.specfiles for each version. The README file has instructions how to use these files.This is tested on x64 only