We have been hard at work to bring the Swift toolchain to FreeBSD. A preview Swift bundle for FreeBSD 14.3+ is available at https://download.swift.org/tmp-ci-nightly/development/freebsd-14_ci_latest.tar.gz. The bundle contains a Swift development compiler and Swift runtimes needed for compiling Swift programs on, and for, FreeBSD 14 on x86_64 machines.
Dependencies
The Swift compiler and runtimes have a few dependencies. Please install the following dependencies:
- zlib-ng
- python3
- sqlite3
- libuuid
- curl
Known Issues
The compiler in the bundle is still under development and isn't part of a release yet and we're not quite done porting everything to FreeBSD.
Here is a list of known issues that you may run into while trying things out.
- Thread sanitizer reports incorrect failures
- LLDB is unable to execute Swift expressions
- Command Plugins in a SwiftPM package hangs
- Using standard types with C++ interop results in an undefined voidify symbol
- Importing the C libraries is done through "Glibc". This will change to
import FreeBSD lldandlldbdepend onlibxml2.so.2, which is not be available in the system package manager.
We are investigating adding aarch64 support and making the bundle available for all minor versions of FreeBSD 14.
As you find more bugs, please file issues at https://github.com/swiftlang/swift/issues.
We look forward to hearing your feedback. If you're interested in helping add the finishing polish, please feel free to reach out here on the forums.