swiftlang / swift-installer-scripts

Apache License 2.0
67 stars 34 forks source link

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

Open sebsto opened 6 months ago

sebsto commented 6 months ago

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

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 commented 6 months ago

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. I have no idea what this error message mean and how to fix this. Any guidance ?