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-7959] Error building Swift compiler using Xcode 10 #50494

Open
swift-ci opened this issue Jun 11, 2018 · 5 comments
Open

[SR-7959] Error building Swift compiler using Xcode 10 #50494

swift-ci opened this issue Jun 11, 2018 · 5 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-7959
Radar rdar://problem/45590840
Original Reporter MonocularVision (JIRA User)
Type Bug
Environment
  • Xcode 10.0 - Build version 10L176w

  • Tried on macOS High Sierra 10.13.4 and 10.13.5

  • cmake version 3.11.3 (installed via Homebrew)

  • ninja version 1.8.2 (installed via Homebrew)

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

md5: 3bd01874af13837cda50533bb500a2a6

is duplicated by:

  • SR-9538 Can't build compiler for Xcode

Issue Description:

When building the Swift compiler with with debug symbols for Xcode using the following command:

utils/build-script --debug --xcode

I get the following error:

error: Build input file cannot be found: '/Users/mcmcguir/github/swift-source/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/8/SwiftNativeNSXXXBase.mm'

Excluding the --xcode parameter builds successfully:

utils/build-script --debug

@CodaFi
Copy link
Member

CodaFi commented Jun 11, 2018

There may be a race condition with gyb build products. If you re-run the build you should not see this error again.

@swift-ci
Copy link
Collaborator Author

Comment by Michael McGuire (JIRA)

I ran it several times. I also did it on multiple machines and got the same error.

@CodaFi
Copy link
Member

CodaFi commented Jun 11, 2018

Remove the entirety of /Users/mcmcguir/github/swift-source/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/8 and re-run.

@swift-ci
Copy link
Collaborator Author

Comment by Giuseppe Lanza (JIRA)

It happened to me too. After checking that the folder exists, I re-run the build and it passed the error point. The build got stuck for other reasons toh. Opened a new bug for those: https://bugs.swift.org/browse/SR-7961

@swift-ci
Copy link
Collaborator Author

Comment by Michael McGuire (JIRA)

I removed /Users/mcmcguir/github/swift-source/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/8 and tried again and failed at the same place. I've re-run it several times and now get the error in SR-7961 mentioned above.

@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. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants