Open yry486555 opened 2 months ago
It seems the prebuilt libcrypto.a can't be link on your aarch64 linux. you have two ways:
It seems the prebuilt libcrypto.a can't be link on your aarch64 linux. you have two ways:
- comiple libcrypto.a by https://github.com/prife/adb?tab=readme-ov-file#step2-build-boringssl
- use prebuilt arm64 binary adb, https://github.com/prife/adb/releases/tag/platform-tools-29.0.6
Dear Sir, Thanks for your suggestions. the item#1 you mentioned I have done it before runing cross-compile. So I don't know why it has this kind error. According to the error log, it says to recompile with -fPIC. Not sure how to do it. If you have more suggestions, please kindly tell me.
Dear Sir, I follow the build step to build for arm64 on x86 Linux machine. When I executed cmake --build build-arm64 --config Release, it's failure as following log. Have any suggestion for me? thanks
[100%] Linking CXX executable adb ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors) clang: error: linker command failed with exit code 1 (use -v to see invocation) gmake[2]: [src/CMakeFiles/adb.dir/build.make:606: src/adb] Error 1 gmake[1]: [CMakeFiles/Makefile2:367: src/CMakeFiles/adb.dir/all] Error 2 gmake: *** [Makefile:91: all] Error 2