-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SR-2230] clang-built swift compiler breaks since clang revision 274385 #44837
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Comment by Shahar Valiano (JIRA) The full assert message: #0 0x00000000032e78f5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/home/shahar/_work/llvm-swift-bug/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift+0x32e78f5) |
It sounds like this is really just a Clang issue, and that there's nothing the Swift project needs to do here. @bob-wilson, what do you think? |
I don't have any specific information to add but it sounds like the other issues were latent bugs exposed by a clang change. I don't see anything to indicate otherwise in this case. |
Attachment: Download
Environment
Ubuntu 16.04, Clang 4.0 (trunk)
Additional Detail from JIRA
md5: 49328686a4a24a9624f2fe30c30ebae6
Issue Description:
clang-built swift compiler breaks since clang revision 274385.
This might be related to clang issue #28603 (https://llvm.org/bugs/show_bug.cgi?id=28603).
When building swift using clang r274385, the built swift compiler asserts, and fails to build the swift runtime. With clang r274379 (revisions 274380-4 seem unrelated), swift is built successfully. clang r274385 revealed some cases of user code breaking due to dangling references, which might be related. See also comments to clang bug #28695 (https://llvm.org/bugs/show_bug.cgi?id=28695).
This issue reproduced with swift-DEVELOPMENT-SNAPSHOT-2016-06-20-a-1538-ge657ece, but also with a much older version (from Aug/15).
For reproduction, please refer to the attached script, clang_swift_good_and_bad.sh, which fetches swift and clang, builds clang r274379 ("good"), builds swift (successful), fetches and builds clang r274385 ("bad"), and builds swift (asserts). Also please see log_ubuntu_16_04_25Jul16.txt for reference output.
The text was updated successfully, but these errors were encountered: