xerial / snappy-java

Snappy compressor/decompressor for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

编译 snappy java 1.0.4.1 出现 error

jinchengcheng opened this issue · comments

在麒麟v10 arm系统上编译snappy java 1.0.4.1,尝试了gcc7,gcc9,gcc10,出现如下错误:
g++ -I/usr/local/jdk/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden -Ilib/include -I"/usr/local/jdk/include/linux" -Itarget/snappy-1.0.4 -fPIC -o target/snappy-1.0.4-Default/libsnappyjava.so target/snappy-1.0.4-Default/snappy-sinksource.o target/snappy-1.0.4-Default/snappy-stubs-internal.o target/snappy-1.0.4-Default/snappy.o target/snappy-1.0.4-Default/SnappyNative.o -shared -static
/usr/bin/ld: /lib/../lib64/libc.a(setjmp.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol __pointer_chk_guard_local' which may bind externally can not be used when making a shared object; recompile with -fPIC /lib/../lib64/libc.a(setjmp.o): in function __sigsetjmp':
(.text+0x34): dangerous relocation: unsupported relocation
/usr/bin/ld: /lib/../lib64/libc.a(setjmp.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol __pointer_chk_guard_local' which may bind externally can not be used when making a shared object; recompile with -fPIC (.text+0x5c): dangerous relocation: unsupported relocation /usr/bin/ld: /lib/../lib64/libc.a(__longjmp.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol __pointer_chk_guard_local' which may bind externally can not be used when making a shared object; recompile with -fPIC
/lib/../lib64/libc.a(__longjmp.o): in function __longjmp': (.text+0x18): dangerous relocation: unsupported relocation /usr/bin/ld: /lib/../lib64/libc.a(__longjmp.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol __pointer_chk_guard_local' which may bind externally can not be used when making a shared object; recompile with -fPIC
(.text+0x3c): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
make: *** [Makefile:52: target/snappy-1.0.4-Default/libsnappyjava.so] Error 1