You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\clouds\AppData\Local\Android\android-sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\..\lib64\clang\3.8.275480\lib\linux\libclang_rt.profile-mipsel-android.a(InstrProfilingUtil.o): In function `strncpy(char*, char const* pass_object_size1, unsigned int pass_object_size1)':
out/stage2/soong/ndk/sysroot/usr/include/string.h:351: undefined reference to `__strncpy_chk2'
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
The "--coverage" option should support all platform.
U __stack_chk_fail
U __stack_chk_fail
U __strlen_chk
U __vsnprintf_chk
U __stack_chk_fail
U __strncpy_chk2
U __stack_chk_fail
while it starts from android-21: nm -gC ./android-21/arch-x86/usr/lib/libc.so|grep chk
0000a750 T __FD_CLR_chk
0000a760 T __FD_ISSET_chk
0000a770 T __FD_SET_chk
0000a780 T __fgets_chk
0000a990 T __memcpy_chk
0000a9a0 T __memmove_chk
0000a9b0 T __memset_chk
0000ac80 T __read_chk
0000aca0 T __recvfrom_chk
0000aeb0 T __snprintf_chk
0000aed0 T __sprintf_chk
0000aee0 T __stack_chk_fail
00010014 B __stack_chk_guard
0000af00 T __stpcpy_chk
0000af10 T __stpncpy_chk
0000af20 T __stpncpy_chk2
0000af30 T __strcat_chk
0000af40 T __strchr_chk
0000af50 T __strcpy_chk
0000af60 T __strlcat_chk
0000af70 T __strlcpy_chk
0000af80 T __strlen_chk
0000af90 T __strncat_chk
0000afa0 T __strncpy_chk
0000afb0 T __strncpy_chk2
0000afc0 T __strrchr_chk
0000b120 T __umask_chk
0000b130 T __vsnprintf_chk
0000b140 T __vsprintf_chk
in ./android-21/arch-x86/usr/include/string.h (start from android-21):
What went wrong:
Execution failed for task ':app:externalNativeBuildDebug'.
Build command failed.
Error while executing process C:\Users\clouds\AppData\Local\Android\android-sdk\cmake\3.6.3155560\bin\cmake.exe with arguments {--build D:\Projects\PDF\Coverage\Test\app.externalNativeBuild\cmake\debug\mips --target native-lib}
Description
Create a new Projects with c++ support, and minSdk 19 (<21), add flag "--coverage" for both link and cppflags in CMakelist.txt.
Compile failed with:
The "--coverage" option should support all platform.
Details
nm -gC libclang_rt.profile-i686-android.a|grep chk2
gives:while it starts from android-21:
nm -gC ./android-21/arch-x86/usr/lib/libc.so|grep chk
in
./android-21/arch-x86/usr/include/string.h
(start from android-21):Full error output:
Environment Details
Not all of these will be relevant to every bug, but please provide as much
information as you can.
The text was updated successfully, but these errors were encountered: