The issue is being caused by being unable to find the host Swift install for bootstrapping.
See build logs -
-- Warning: {} Host toolchain could not locate a compiler to build swift-driver.
This problem seems to be unique to Debian Docker containers being started via ssh e.g. a Jenkins pipeline build.
When the container is started via ssh the saved env PATH is overwritten.
Description
CI builds for Debian 12 are consistently failing at the same point. https://ci.swift.org/job/oss-swift-package-debian-12-aarch64/
Reproduction
N/A
Expected behavior
Successful builds
Environment
Debian 12
Additional information
The issue is being caused by being unable to find the host Swift install for bootstrapping. See build logs -
-- Warning: {} Host toolchain could not locate a compiler to build swift-driver.
This problem seems to be unique to Debian Docker containers being started via
ssh
e.g. a Jenkins pipeline build. When the container is started viassh
the savedenv PATH
is overwritten.The solution is to add the PATH to
/etc/profile
Added fix here - https://github.com/swiftlang/swift-docker/pull/397