Over in the Swift on ARM/Linux camp, we’ve been stuck on Swift 3.1.1 for quite some time. This is primarily due to two reasons:
- Lack of resources: we’re all volunteers, and are running out of free time to keep up with the rapid pace of development in the compiler.
- Regressions due to rapid pace of development: Unlike supported platforms, ARM/Linux does not have any visibility in the CI infrastructure. Many otherwise innocent changes to the compiler and its associated components may cause regressions on ARM/Linux that go unnoticed for months. This make is very difficult for us to identify changes that cause problem.
I realize that there’s nothing to be done for #1 (unless Apple hires an engineer or two to work on ARM/Linux ), and that there may be some answer to #2 at some point in the future.
For the purposes of this thread, I want to call attention to the following issue to get us started in getting Swift 4.1 ready for use.
Swift 4.1 SwiftPM – There is an assertion that appears to be thrown from from glibc in swift-build-stage1 The assertion is here, specifically: https://code.woboq.org/userspace/glibc/malloc/malloc.c.html#2391
It should be said that, aside from that the the REPL, it appears that the 4.1 compiler seems basically functional.
Currently failing Swift 4.1 tests: ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 2259.75s ******************** Failing Tests (8): Swift(linux-armv7) :: IRGen/c_layout.sil Swift(linux-armv7) :: stdlib/Runtime.swift.gyb Swift(linux-armv7) :: SILOptimizer/redundant_load_elim.sil Swift(linux-armv7) :: ClangImporter/clang_builtins.swift Swift(linux-armv7) :: Runtime/backtrace.swift Swift(linux-armv7) :: Misc/expression_too_complex.swift Swift(linux-armv7) :: Runtime/weak-reference-racetests.swift Swift(linux-armv7) :: IRGen/condfail.sil Expected Passes : 2989 Expected Failures : 78 Unsupported Tests : 1047 Unexpected Failures: 8
I also want to point out that I have access to cloud-based ARMv7 systems that may be used by anyone seriously interested in helping development.