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-1057] build-script -x fails when compiler-rt is present #43669
Comments
I don't think we managed to get compiler-rt working with Xcode yet. @vedantk? |
Comment by Dan Raviv (JIRA) Just to make sure I'm clear - The issue I have is that -x doesn't work (the attached output is for -x). |
Sorry, "compiler-rt" is one of the subprojects you checked out when building everything, and that's what's failing to build ("clang_rt.builtins_x86_64h_osx"). You can probably delete the "compiler-rt" folder from your top-level directory, wipe your build, and try again; it's not currently a required component. |
"rt" there stands for "runtime [library]", not "-r[elease+debuginfo] -t[est]". |
Comment by Dan Raviv (JIRA) Ok, I've tried again after deleting the compiler-rt folder, but still getting some related error. Attached. By the way, I've just been following the default instructions for building the project as listed in swift's main repo - seems weird that compiler-rt would be installed on OS X by these instructions if it is not supported. |
@belkadan We haven't added support for building swift-compiler-rt with -x yet (rdar://problem/25179060). |
danra (JIRA User) It looks like you need to remove CMakeCache and re-run cmake. |
Right. It's supported on OS X, just not when building with Xcode. Since building with Xcode already doesn't do a complete build of Swift (no iOS support) we considered that acceptable for now. Sorry, when I said "wipe your build" I meant you'll also have to delete the "build/Xcode..." directory, so that it starts from scratch. @vedantk, should we just pass the CMake flag to disable building compiler-rt when using -x? |
@belkadan Yes, I'll send a PR for this shortly. |
Comment by Dan Raviv (JIRA) Doing a clean build after removing compiler-rt worked. Thanks! |
We added a workaround in f9b79e4 |
Attachment: Download
Environment
OS X 10.11.4, Xcode 7.3 (7D175)
Commit 9e9c80e
Additional Detail from JIRA
md5: b700f3a237aa94f184b7d1a1ebefc425
Issue Description:
Attached output.
build-script -r -t seems to work properly.
The text was updated successfully, but these errors were encountered: