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: Programming
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”
ZestyClip now available on the Mac App Store!
ZestyClip is now available in the Mac App Store! Although it’s not the first Mac app I’ve written, it’s the first one I decided to try to get published in Apple’s App Store. I decided to make it extra hard on myself by eschewing Xcode and Swift, but instead write it in C++ with QT; I chose this …
Continue reading “ZestyClip now available on the Mac App Store!”
Undeclared Identifier in Swift after adding new file?
Spent a little too much time trying to figure out why my new Swift file with my new class was resulting in an “Undeclared Identifier” error from the compiler after adding the class as a member variable. Doing some searching resulted in a lot of basic “check for typos” posts as well as “…if it’s a framework, …
Continue reading “Undeclared Identifier in Swift after adding new file?”
You must be logged in to post a comment.