Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions images/wkdev_sdk/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,17 @@ RUN bash -c 'for binary in /usr/bin/*-18; do \
ln -s "${binary}" "/usr/local/bin/${binary_name::-3}"; \
done'

# Install Swift nightly
ENV SWIFTLY_HOME_DIR="/opt/swift" \
SWIFTLY_BIN_DIR="/opt/swift/bin" \
SWIFTLY_TOOLCHAINS_DIR="/opt/swift/toolchains" \
PATH="/opt/swift/bin:${PATH}"

RUN ${CURL_DOWNLOAD} --remote-name https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swift doesn't provide builds for arm32 neither official support.

# wget https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz
--2025-10-31 16:05:22--  https://download.swift.org/swiftly/linux/swiftly-armv8l.tar.gz
[...]
HTTP request sent, awaiting response... 404 Not Found
2025-10-31 16:05:23 ERROR 404: Not Found.

But fortunately seems there is community effort to support it.

Check this fork https://github.com/swift-embedded-linux/armhf-debian
it provides binaries ready to use for debian and ubuntu at https://github.com/swift-embedded-linux/armhf-debian/releases (click on show all assets)

This was found via: https://medium.com/@jesselzamora/running-swift-on-32-bit-raspberry-pis-b3307ce713ba

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just the start - at the moment we cannot even compile WebKit on amd64 🤣 good that you found the arm32 stuff

tar zxf swiftly-$(uname -m).tar.gz && \
./swiftly init --no-modify-profile --quiet-shell-followup && \
rm -f swiftly-$(uname -m).tar.gz

# Fix Qt6 system packages - missing symlinks in the Ubuntu-provided packages.
RUN export QT_VERSION=$(qmake6 -query QT_VERSION) && \
for directory in /usr/include/x86_64-linux-gnu/qt6/*; do \
Expand Down
3 changes: 3 additions & 0 deletions images/wkdev_sdk/required_system_packages/03-clang.lst
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Clang toolchain (current version: 18)
clang-18 clangd-18 clang-format-18 clang-tidy-18 lld-18 lldb-18 libstdc++-14-dev

# Swift toolchain
gnupg2 libcurl4-openssl-dev libz3-dev
Loading