-
Notifications
You must be signed in to change notification settings - Fork 255
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
Cannot link code compiled with -fxray-instrument. #368
Comments
The xray runtimes are missing from the packaged Clang. It's not even built right now. We may be able to get it in r15 but not a certainity. |
Looks like we need a driver fix too, though. It's trying to link libpthread and librt, which don't exist on Android (it's all just bundled in libc). |
@stephenhines: here's another clang feature request |
Not sure how much work this will be. Feel free to punt. |
The xray runtimes are now available (clang-4639204). We just need to update the driver to omit lpthread and lrt. I'll prepare an upstream change. |
Great, thanks. |
Regarding my previous comment, I don't know what I was testing. Compiler-rt does not build xray runtimes for Android yet (https://github.com/llvm-mirror/compiler-rt/blob/351f235ea4d0bfa17b65dd3a0ac14bbd8a98b90b/cmake/config-ix.cmake#L603). We'll reach out to the xray developers to test for Android and also see what we can do from our side. There's no definitive milestone for this yet. |
Okay, let us know when you have even a vague idea of what sort of effort this will take and we can re-triage. |
Description
Clang toolchain is not able to link code compiled with
-fxray-instrument
, for any ABI. Linker fails with next messages:Environment Details
The text was updated successfully, but these errors were encountered: