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

The provided CROSSTOOL does not include proper support for dSYM generation for apple_binary #4312

Closed
sergiocampama opened this issue Dec 16, 2017 · 3 comments

Comments

@sergiocampama
Copy link
Contributor

Please provide the following information. The more we know about your system and use case, the more easily and likely we can help.

Description of the problem / feature request / question:

When invoking bazel build examples/ios/HelloWorldSwift --apple_generate_dsym on the rules_apple repository, the Linking action fails with the following message:

ERROR: /Users/kaipi/Development/Github/rules_apple/examples/ios/HelloWorldSwift/BUILD:18:1: output 'examples/ios/HelloWorldSwift/HelloWorldSwift.apple_binary.app.dSYM.temp.zip' was not created
ERROR: /Users/kaipi/Development/Github/rules_apple/examples/ios/HelloWorldSwift/BUILD:18:1: not all outputs were created or valid

I traced this to the provided crosstool missing the proper DSYM_HINT_DSYM_PATH, DSYM_HINT_DSYM_BUNDLE_ZIP and DSYM_HINT_LINKED_BINARY configurations for the generate_dsym_file feature.

Original issue: bazelbuild/tulsi#38

If possible, provide a minimal example to reproduce the problem:

Check out the https://github.com/bazelbuild/rules_apple and run the command above.

Environment info

  • Operating System:

macOS 10.13

  • Bazel version (output of bazel info release):

release 0.8.1-homebrew

  • If bazel info release returns "development version" or "(@non-git)", please tell us what source tree you compiled Bazel from; git commit hash is appreciated (git rev-parse HEAD):

Have you found anything relevant by searching the web?

(e.g. StackOverflow answers,
GitHub issues,
email threads on the bazel-discuss Google group)

N/A

Anything else, information or logs or outputs that would be helpful?

(If they are large, please upload as attachment or provide link).

N/A

@KieranLafferty
Copy link

Any known workaround for this at the moment?

@dolphineye
Copy link

We have the same issue in my organisation. We haven't found any workaround for now. The problem is not fixed with the latest 0.10.0-homebrew version. Any news? Thanks for your help :)

bazel-io pushed a commit that referenced this issue Feb 6, 2018
…is compiled as part of bazel's repository bootstrap. This should make crosstool's clang invocations faster. An added benefit of this is that wrapped_clang.cc supports the "DSYM_HINT" flags specified through the CROSSTOOL, so with this change, apple_binary gets support for the --apple_generate_dsym flag.

The dSYM generation issue has been flagged multiple times:
#4312
#3940
#3372

RELNOTES: apple_binary can now generate dSYM outputs with the --apple_generate_dsym=true flag.
PiperOrigin-RevId: 184688215
@sergiocampama
Copy link
Contributor Author

This should be fixed at head, probably will take a while to get rolled out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants