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
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
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
ld.lld: error: relocation R_AARCH64_ABS64 cannot be used against local symbol; recompile with -fPIC
defined in /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a(err.c.o)
referenced by err.c
err.c.o:(kLibraryNames) in archive /home/yan/adb_tool/adb/prebuilt/linux/aarch64/libcrypto.a
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: