Hi,
I'm trying to set up my local dev environment to build the Swift project as described in the guide below.
# How to Set Up an Edit-Build-Test-Debug Loop
This document describes how to set up a development loop for people interested
in contributing to Swift.
If you are only interested in building the
toolchain as a one-off, there are a couple of differences:
1. You can ignore the parts related to Sccache.
2. You can stop reading after
[Building the project for the first time](#building-the-project-for-the-first-time).
## Table of Contents
- [System Requirements](#system-requirements)
- [Cloning the project](#cloning-the-project)
- [Troubleshooting cloning issues](#troubleshooting-cloning-issues)
- [Installing dependencies](#installing-dependencies)
- [macOS](#macos)
- [Linux](#linux)
- [Building the project for the first time](#building-the-project-for-the-first-time)
This file has been truncated. show original
But stuck at the build step since both utils/build-script for Xcode and ninja are failing.
What am I missing?
Here is my local environment info:
➜ swift git:(main) cmake --version
cmake version 3.20.5
CMake suite maintained and supported by Kitware (kitware.com/cmake).
➜ swift git:(main) python3 --version
Python 3.9.5
➜ swift git:(main) ninja --version
1.10.2
➜ swift git:(main) sccache --version
sccache 0.2.15
Below are error output.
➜ swift git:(main) utils/update-checkout
https://gist.github.com/dinhnhat0401/a8f482b6c765425d41cc7daa0443e7f4
➜ swift git:(main) utils/build-script --skip-build-benchmarks \
--skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "$(uname -m)" \
--sccache --release-debuginfo --swift-disable-dead-stripping --test \
--xcode
https://gist.github.com/dinhnhat0401/e3f11b0c8ab707852e3becc2a972f97e
➜ swift git:(main) utils/build-script --skip-build-benchmarks \
--skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "$(uname -m)" \
--sccache --release-debuginfo --swift-disable-dead-stripping --test
error: https://gist.github.com/dinhnhat0401/2021aa9b55e48eb30a4a6482fa793468
Some similar threads that I checked but no luck.
it’s been almost two weeks since the stack corruption bugs were fixed, but for whatever reason, there have not been any nightly toolchains posted to swift.org containing the fix.
this is still a blocker for me, so i’ve been looking into building the swift compiler locally. however, the instructions on github seem out of date. i can only get as far as the
$ ./swift/utils/build-toolchain $BUNDLE_PREFIX
command in the README, which fails with
--- Building earlyswiftdriver ---
+ swift/swift-driv…
I've been rolling the source code repo back and forth in time today and have found that for me, using an M1 mini, tag swift-DEVELOPMENT-SNAPSHOT-2021-09-09-a builds but tag swift-DEVELOPMENT-SNAPSHOT-2021-09-18-a does not if that helps. This is for --release-debuginfo and without --test.
Xcode 13.1.