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
Error information:
libtool: link: gcc -shared -fPIC -DPIC src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/.libs/tramp.o src/aarch64/.libs/ffi.o src/aarch64/.libs/sysv.o -O3 -Wl,--version-script -Wl,libffi.map -Wl,-soname -Wl,libffi.so -o .libs/libffi.so
/usr/bin/ld: src/aarch64/.libs/sysv.o: relocation R_X86_64_32 against `GNU_PROPERTY_AARCH64_BTI' can not be used when making a shared object; recompile with -fPIC
src/aarch64/.libs/sysv.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:1114: recipe for target 'libffi.la' failed
make[3]: *** [libffi.la] Error 1
The text was updated successfully, but these errors were encountered:
My guess is that it's using the wrong host tools to build with considering that their is an "R_X86_64_32" relocation in the output, which I would imagine is x86_64 ELF format. Perhaps also a bug in the toolchain as well. I just built on aarch64 host following your steps and it worked correctly. Could you provide details of your build machine?
System Details
aarch64-linux-android
libffi version : libffi-3.4.6
Problems Description
Actions:
Error information:
libtool: link: gcc -shared -fPIC -DPIC src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/.libs/tramp.o src/aarch64/.libs/ffi.o src/aarch64/.libs/sysv.o -O3 -Wl,--version-script -Wl,libffi.map -Wl,-soname -Wl,libffi.so -o .libs/libffi.so
/usr/bin/ld: src/aarch64/.libs/sysv.o: relocation R_X86_64_32 against `GNU_PROPERTY_AARCH64_BTI' can not be used when making a shared object; recompile with -fPIC
src/aarch64/.libs/sysv.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:1114: recipe for target 'libffi.la' failed
make[3]: *** [libffi.la] Error 1
The text was updated successfully, but these errors were encountered: