If you’d like to hack on Apple’s Swift Programming Language on Fedora, for, say, troubleshooting purposes or whatever, here are the steps I’ve been using: Set up the environment and build a release version First, I recommend using a container; I would share mine but I haven’t been able to figure out how to do …
Category Archives: Linux
Getting TimescaleDB running on Kubernetes for internal use
Introduction As a fun use of the data ShopMon generates, I wrote a quick program that adds that data to a PostgreSQL database for looking at some interesting metrics, usage-by-hour, area, etc. While on a run I was listening to a podcast where the topic of time series databases came up and realized I had …
Continue reading “Getting TimescaleDB running on Kubernetes for internal use”
Extending LVM size on Linux
Introduction I built a Kubernetes cluster for running parallel Jenkins builds for Swift and realized that the disk size I had selected for the worker nodes was woefully insufficient; all my jobs would be evicted simply because of disk pressure. I used Ubuntu 20.04 for the builders and so by default an LVM volume is …
Swift on Fedora, All Good
Re-reading my previous post about the difficulties in keeping Swift playing nice with other software in /usr/bin, I came up with a different idea that worked extremely well when I tested it on my local machine: install the entire Swift toolchain in /usr/libexec/swift. The rational is this: The Swift toolchain is very sensitive to locations of …
Swift 5.2 and Fedora Linux – REPL issues
Swift 5.2 (and quickly followed up with Swift 5.2.1) were released in late March and, while it is packaged up and ready-to-go as an RPM for Fedora/CentOS/RHEL users, it’s not “ready to go” insofar as not all the functionality works. Specifically, while the package does compile Swift code, the REPL does not work. I’ve been trying to …
Strange issue building Swift 5.1 on RHEL 8
Something to look into: Building Swift 5.1 on a RHEL 8 box with clang-7.0.1 I keep running into a strange issue where it fails about 3/4 of the way through the build with the error: FAILED: src/swiftDispatch.dir/Dispatch.swift.o src/swiftDispatch.dir/Dispatch.swift.swiftmodule src/swiftDispatch.dir/Dispatch.swift.swiftdoc cd /home/rolson/rpmbuild/BUILD/swift-source/build/buildbot_linux/libdispatch-linux-x86_64/src && /home/rolson/rpmbuild/BUILD/swift-source/build/buildbot_linux/swift-linux-x86_64/bin/swiftc -frontend -module-name Dispatch -module-link-name swiftDispatch -I /home/rolson/rpmbuild/BUILD/swift-source/swift-corelibs-libdispatch -O -Xcc -fblocks -Xcc -fmodule-map-file=/home/rolson/rpmbuild/BUILD/swift-source/swift-corelibs-libdispatch/dispatch/module.modulemap …
Continue reading “Strange issue building Swift 5.1 on RHEL 8”
Well, it happened…
…The Fedora project moved /usr/bin/python to point to /usr/bin/python3 instead of /usr/bin/python2. The immediate result is that Swift no longer builds on Fedora Rawhide because of, surprise, Python errors. This may be a lot of work, so before running off and getting into a big mess o’ Python changes, I asked on the Swift forums whether anybody is already working …
Swift 5.1 (Development) working with Fedora
So post-WWDC, Swift 5.1 seems to be in high gear for release, I presume, with Xcode 11. I made a few attempts at getting it to build and package properly and after some modest changes, removing outdated patches and a particularly scary Lua scriptlet in the spec file, it packaged correctly. Whee, go me. However, …
Continue reading “Swift 5.1 (Development) working with Fedora”
CMake Weirdness with Swift 5 on Linux
The Swift toolchain uses CMake and Ninja. In a nutshell, CMake in a (much) fancier Autoconf and Ninja is a multi-core -aware make equivalent. I tried configuring CMake to use make once to see how different the performance was and, well, let’s just say I let it run for about a week before I decided to give …
Swift 5 Released and (almost) available on Fedora
Swift 5 was released as part of Apple’s update of iOS and macOS yesterday (3/25/19) and I had literally just finished submitting an update to Fedora’s Bodhi system for the previous development snapshot. I admit I was worried that there’d be some 11:59:59 change to Swift that wouldn’t make it compile properly under Fedora, but nope, it …
Continue reading “Swift 5 Released and (almost) available on Fedora”
You must be logged in to post a comment.