-
Notifications
You must be signed in to change notification settings - Fork 254
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
[BUG] Enabling code coverage for arm64-v8a via cmake for native unit test cases throws error __start___llvm_prf_vnds #1103
Comments
This seems like the same underlying issue as #881. I'll investigate both. |
This is probably an issue with gradle. The following test works on a Pixel 2, running Q:
If there's a mismatch in what I'm doing, let me know. If not, I'll try to reproduce with Gradle. |
Aah, didn't see that the missing symbol was from a shared library. I think If I try the same, I get the exact same error about missing symbol. Once I add But something is still fishy - the armv7 binary works fine even without setting |
@pirama-arumuga-nainar did you have a chance to do any more digging here? |
Reposting #881 (comment): I'm apologise for the long delay in investigating this. This seems to be a bug in ld.bfd which may have been fixed in https://sourceware.org/bugzilla/show_bug.cgi?id=24857. To verify, run If I change the linker to PS: IIUC |
Description
Enable code coverage flags for cmake for native unit test cases on arm64-v8a via:
set(CMAKE_CODE_COVERAGE_COMPILER_FLAGS "-fprofile-arcs -ftest-coverage -fprofile-instr-generate -fcoverage-mapping")
set(CMAKE_CODE_COVERAGE_LINKER_FLAGS "--coverage")
and then running the native test cases shows the error:
adb -s 89CX089QN shell LD_LIBRARY_PATH=/data/local/tmp/tmp LLVM_PROFILE_FILE=/data/local/tmp/tmp/llvm_profile GCOV_PREFIX=/data/local/tmp/tmp /data/local/tmp/tmp/unittests --gtest_output=xml:/data/local/tmp/tmp/unittests_results.xml
CANNOT LINK EXECUTABLE "/data/local/tmp/tmp/unittests": cannot locate symbol "__start___llvm_prf_vnds" referenced by "/data/local/tmp/tmp/plugin.so"..
The same works fine if the test cases are run with armeabi-v7a so files.
Environment Details
The text was updated successfully, but these errors were encountered: