Pogosito
(Pogos)
1
Hi Swift forum
Swift-compiler project is not built
At first everything was fine, after another build increment, the project stopped being built (I just added LLVM_DEBUG(dbgs() << "Here" << "\n"; and added -debug argument)
clang: **error:** **linker command failed with exit code 1 (use -v to see invocation)**
after I deleted all my debug lines and -debug flag too, but it didn't change anything.
I also tried reassembling the project with
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
Can you please tell me how to fix it ? And why did this error occur ?
MacBook M3 pro
With respect
Pogos
Is your error-producing build incremental or a clean build from scratch? Is it reproducible with a single specific commit, a commit range, or a branch?
Pogosito
(Pogos)
3
Build incremental, i did not check anothers commit/branch
@anthonylatsis helped me, we deleted all builds in build directory, generated new xcode project, and build new project. It's working fine now
(and i change xcode to 14.3 because Swift toolchain fails to build with Xcode 15.1 (regression from Xcode 15.0?) · Issue #70641 · apple/swift · GitHub)
1 Like
Yes, a clean build made this particular problem disappear. A clean build is the newcomer’s rule of thumb for fixing broken incremental builds, but, interestingly, Pogos claims to only have changed some compiler sources in between the successful and first failing builds—no characteristic pulling.