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-10521] Xcode 10.2 stuck compiling swift sources #52921

Closed
swift-ci opened this issue Apr 19, 2019 · 12 comments
Closed

[SR-10521] Xcode 10.2 stuck compiling swift sources #52921

swift-ci opened this issue Apr 19, 2019 · 12 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-10521
Radar rdar://problem/50051961
Original Reporter WCByrne (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

Xcode 10.2.0/1 (tried both)

Swift 4.2 and Swift 5 (tried both)

Same issue occurs locally and on MS App Center

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

md5: 004c321c9d071bcb10e795952644ff0e

Issue Description:

Not sure if this is a duplicate of the compile time regression. Since I haven't successfully compiled yet I don't have a measurable time to compare to. My project normally compiles in under 10 minutes but is still compiling after and hour.

Let me know what would be helpful to investigate and debug this issue.

@belkadan
Copy link
Contributor

Is this a project you can share? If not here, than perhaps with Apple at https://bugreport.apple.com.

@swift-ci
Copy link
Collaborator Author

Comment by Wes Byrne (JIRA)

Not here publicly, no. Submitted it there as `Xcode stuck compiling - SR-10521`

@belkadan
Copy link
Contributor

Thank you!

@belkadan
Copy link
Contributor

Looks like this is something @atrick fixed in #23190 Can you try a development snapshot from https://swift.org/download to confirm?

@belkadan
Copy link
Contributor

(It's on the 5.1 branch too.)

@swift-ci
Copy link
Collaborator Author

Comment by Wes Byrne (JIRA)

Sounds good. Forgive me, it's been a while since I've used the snapshots, am I forgetting something? I'm getting the following for each framework in the project:

file not found: /Library/Developer/Toolchains/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-04-17-a.xctoolchain/usr/lib/arc/libarclite_macosx.a

@belkadan
Copy link
Contributor

:-( That's a separate bug we're chasing. For now, can you set your deployment target to be 10.11 or newer?

@swift-ci
Copy link
Collaborator Author

Comment by Wes Byrne (JIRA)

My main app target is 10.11. There are some frameworks (cocoapods) that are not. I tried setting those to 10.11 as well but got errors, notably with Sentry:

**/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor.h:41:1: Import of C++ module 'Sentry.SentryCrashThread' appears within extern "C" language linkage specification

Happy to try more if it would be helpful.

@belkadan
Copy link
Contributor

That doesn't seem like it should be related to your deployment target; it would be an actual issue in Sentry. (On the other hand, why is Sentry using C++ modules? You could turn off that build setting in their project for now too.)

@swift-ci
Copy link
Collaborator Author

Comment by Wes Byrne (JIRA)

Figured it wasn't related but never hurts to share. Also, no idea but hopefully that isn't an issue when 5.1 is released. I'll tinker with it some more and see if I can get it compiling to confirm this issue is fixed.

@swift-ci
Copy link
Collaborator Author

Comment by Wes Byrne (JIRA)

In regards to "You could turn off that build setting in their project for now too." what would I turn off?

@belkadan
Copy link
Contributor

Oh, I guess there's not a build setting for it at all yet. Somewhere there's an -fmodules being passed to their C++ targets, which isn't officially supported in Xcode.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
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