Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-15705] Compiler build failed (PhaseScriptExecution CMake PostBuild\ Rules) #57984

Open
swift-ci opened this issue Jan 8, 2022 · 4 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Jan 8, 2022

Previous ID SR-15705
Radar None
Original Reporter FilonenkoM (JIRA User)
Type Bug
Status Reopened
Resolution
Environment

macOS 11.6

Xcode Version 13.0 (13A233)

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 00988e8e35dc2ce1bd0e62d6bb0decdc

Issue Description:

I’m building Swift compiler for the first time and following the official guide https://github.com/apple/swift/blob/main/docs/HowToGuides/GettingStarted.md

After executing the command

*utils/build-script --skip-build-benchmarks *

*--skip-test-cmark --skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "$(uname -m)" *

*--sccache --release-debuginfo --swift-disable-dead-stripping *

--xcode

I get the following output

PhaseScriptExecution CMake\ PostBuild\ Rules /Users/michaelfilonenko/Local/swift-project/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/tools/driver/Swift.build/RelWithDebInfo/swift-frontend-bootstrapping0.build/Script-86289F9744663899789BE6CE.sh (in target 'swift-frontend-bootstrapping0' from project 'Swift')

cd /Users/michaelfilonenko/Local/swift-project/swift

/bin/sh -c /Users/michaelfilonenko/Local/swift-project/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/tools/driver/Swift.build/RelWithDebInfo/swift-frontend-bootstrapping0.build/Script-86289F9744663899789BE6CE.sh

/Users/michaelfilonenko/Local/swift-project/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/tools/driver/Swift.build/RelWithDebInfo/swift-frontend-bootstrapping0.build/Script-86289F9744663899789BE6CE.sh: line 16: cd: /Users/michaelfilonenko/Local/swift-project/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/bootstrapping0/bin: No such file or directory

Command PhaseScriptExecution failed with a nonzero exit code

      • BUILD FAILED ***

The following build commands failed:

PhaseScriptExecution CMake\ PostBuild\ Rules /Users/michaelfilonenko/Local/swift-project/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/tools/driver/Swift.build/RelWithDebInfo/swift-frontend-bootstrapping0.build/Script-86289F9744663899789BE6CE.sh (in target 'swift-frontend-bootstrapping0' from project 'Swift')

(1 failure)

ERROR: command terminated with a non-zero exit status 65, aborting

I’ve examined the directory /Users/michaelfilonenko/Local/swift-project/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/bootstrapping0. Indeed, there’re no bin there only RelWithDebInfo/bin directory.

@LucianoPAlmeida
Copy link
Collaborator

Fixed by #40833 FilonenkoM (JIRA User) can you rebase with main and try again? Thanks

@kylesluder
Copy link

I rebased this morning and tried building again and it failed to link:

clang: error: no such file or directory: '/Users/kyle/Source/swift-project/build/Xcode-RelWithDebInfoAssert/swift-macosx-arm64/lib/RelWithDebInfo/libswiftCompilerModules-bootstrapping1.a'

Is the fix incomplete?

@LucianoPAlmeida
Copy link
Collaborator

It should be working, I'll suggest try a clean build after rebasing and also try to take a look on this thread on the forums https://forums.swift.org/t/building-swift-compiler-from-source-fails-when-not-using-ninja/

@LucianoPAlmeida
Copy link
Collaborator

Ah, maybe this is something after #40870 landed, you could try to pass `--bootstrapping=off` as a workaround

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

3 participants