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-1493] -embed-bitcode is broken #44102

Closed
drewcrawford opened this issue May 12, 2016 · 6 comments
Closed

[SR-1493] -embed-bitcode is broken #44102

drewcrawford opened this issue May 12, 2016 · 6 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@drewcrawford
Copy link
Contributor

Previous ID SR-1493
Radar rdar://problem/26247134
Original Reporter @drewcrawford
Type Bug
Status Resolved
Resolution Done
Environment

swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a
OSX 10.11.4 (15E65)

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

md5: 76ee38337ecbd7bd1a047a0e6ca47a99

Issue Description:

swiftc -v -embed-bitcode hello_world.swift
Apple Swift version 3.0-dev (LLVM dffa09ffd8, Clang 9f0d189820, Swift 1c720b8f84)
Target: x86_64-apple-macosx10.9
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a.xctoolchain/usr/bin/swift -frontend -emit-bc -primary-file hello_world.swift -target x86_64-apple-macosx10.9 -enable-objc-interop -color-diagnostics -module-name hello_world -o /var/folders/vv/z02zhgz508g99fs34mhrkw6c0000gp/T/hello_world-80ba79.bc
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a.xctoolchain/usr/bin/swift -frontend -c -primary-file /var/folders/vv/z02zhgz508g99fs34mhrkw6c0000gp/T/hello_world-80ba79.bc -target x86_64-apple-macosx10.9 -module-name hello_world -o /var/folders/vv/z02zhgz508g99fs34mhrkw6c0000gp/T/hello_world-25868b.o -embed-bitcode -disable-llvm-optzns
<unknown>:0: error: unknown argument: '-fembed-bitcode'
<unknown>:0: error: backend command failed with exit code 1 (use -v to see invocation)
@belkadan
Copy link
Contributor

The Swift option has only ever worked with Apple Clangs. We're just now getting -fembed-bitcode upstreamed to Clang, so we should be able to add tests for this soon.

@krzyzanowskim
Copy link
Contributor

I don't know if how it's related but Xcode+bitcode+Swift support is kinda broken in Xcode 8 beta releases. We really hope it won't be overlooked by the whole team, whoever is responsible for that regression.

https://twitter.com/steipete/status/755377159066226692
https://github.com/krzyzanowskim/CryptoSwift/issues/240#issuecomment-233630082

@belkadan
Copy link
Contributor

Not related, and probably something that should be tracked in Radar. Do you know if/where Pete filed it, or have you filed one?

@swift-ci
Copy link
Collaborator

Comment by Peter Steinberger (JIRA)

We filed this issue under rdar://27526025. Until Xcode 8b3 this only affected arm64, now as of 8b5 the linker also crashes when it tries to emit armv7 bitcode. Thanks for helping us here. I'm really worried that we might not get this resolved before the GM and that would leave us in a very difficult position and impact thousands of apps using the PSPDFKit SDK - they would all have to disable Bitcode support because of this issue.

@drewcrawford
Copy link
Contributor Author

Sample project attached to rdar://28068831

@belkadan
Copy link
Contributor

Ah, this happened a long time ago!

@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

4 participants