supports ARMv7 Swift 5.1.5. … is the latest version of Swift currently available for 32bit devices.
Thank you. This is useful.
As soon as later versions are available I will add them to the repository.
Swift 5.1.5 was released on March 9, 2020, which is some time ago. Are there indications that any newer Swift 32-bit ARMv7 versions are in progress and might actual happen someday?
In my use case, Swift 5.2.x (or newer) would allow for a Vapor 4 webapp on an embedded SBC.
Swift 5.6 is running fine on Armv7, for Debian, Buildroot and Yocto (Yocto layer not OSS yet). The Swift runtime libraries and packages need to be cross compiled from x86 or Arm64.
He was talking about running the Swift compiler itself on ARM SBCs, but you are only cross-compiling the stdlib for ARM. I just released a Swift 5.6.1 compiler for Android armv7, so it is doable, but I may be the only person still building the Swift toolchain for a 32-bit platform.
@gonsolo thanks.
I am aware of this issue and will have an update ready soon. I also need to update the gpg key for other reasons so I am planning to do it all at the same time. This is also required for Debian Bullseye.
At this point it is just a warning so everything should still install ok in the mean time.
I know this is highly ephemeral, but just wanted to check if there is any rate limiting going on with the archive.swiftlang.xyz network connection and/or are you still speccing the HW/bandwidth requirements? I've downloaded 5.6 jammy deb package a few times now at decentish speeds, and the latest one is being throttled down to 50-70 kB/s (on a 100 mbps connection - confirmed with speedtest.net) ? Or the usual, it's at my end
Love that this repo exists though, much appreciated!
Nik
Hi Nik,
There is no rate limiting on the server. Just ran some tests and there doesn't appear to be any problems with connection speeds.
The server is also being used as the Swift package build server so connection speeds will vary depending current server load.
Let me know if your speed remains low.
Neil.
Or has the swiftlang.xyz apt repository been replaced with something on swift.org? (I couldn't find anything, but it seems that is a goal or at least some work is being done towards that)
Hello @futurejones, thank you so much for your work and time on this. I am trying to install Swift on a BeagleBone Black with Debian 10.3
Once the install.sh finishes and I run sudo apt install swiftlang
I get the following
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package swiftlang
The contents of my /etc/apt/sources.list.d/swiftlang-release.list file is:
deb [arch=armhf signed-by=/usr/share/keyrings/swiftlang_repo.gpg.key] https://archive.swiftlang.xyz/debian/ buster v5_6
hi @jonhoffman, it looks like you have an 32bit install of Debian that is looking for a 'arch=armhf' version of swift. Unfortunately the only 32bit version currently available is 5.1.5.
If you run the install script again and choose main section instead of v5_6 you should be able to install the 5.1.5 version.
WOW, thank you so much for the quick reply, I really appreciate it. I will try that tonight and see what I get. Any plans on supporting the latest releases of Swift for the 32 bit? I would really like to be able to run the latest Swift on the BeagleBone Black, but would I have to go with something like the BeagleBone AI-64 in order to get the latest Swift?
I would recommend moving to 64bit if you want the latest Swift.
For some use cases, a complicating factor is that 64-bit processors (e.g. Raspberry Pi) are experiencing significant supply-chain/availability issues. In contrast, alternate 32-bit processors (e.g. various BeagleBone models) have higher volume level availability.
In an ideal world, both an up-to-date 32-bit Swift and 64-bit CPUs (Raspberry Pi) would be widely available.
However, given current pragmatic real world constraints, one has to wonder if maybe C/C++ is a better fit (than an outdated Swift) for projects which require 32-bits.