编译 snappy java 1.0.4.1 出现 error
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- build-system
Hướng nghiên cứu
The report identifies a native build failure while linking libsnappyjava.so from target/snappy-1.0.4-Default on Kylin V10 ARM, with GCC 7, 9, and 10. Start by reading the Makefile rule at line 52 and examining why the link command uses -static; reproduce the build on the reported platform. Done means the shared library builds successfully without the relocation errors.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
在麒麟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
- Ngôn ngữ chính
- Java
- Star
- 1.1k
- Fork
- 261
- Merge trung bình
- 2 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của xerial/snappy-java
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
xerial/snappy-java#658 · 3 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
xerial/snappy-java#607 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
xerial/snappy-java#604 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
xerial/snappy-java#603 · 3 bình luận ·
-
Snappy error on Mac OS Ventura: "no native library is found for os.name=Mac and os.arch=aarch64"Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
xerial/snappy-java#573 · 1 reaction ·
Tất cả issue của xerial/snappy-java
Issue tương tự
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
xerial/sqlite-jdbc#1515 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area/Configuration Type/Improvement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ballerina-platform/static-code-analysis-tool#217 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eclipse-dirigible/dirigible#8636 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug severity-medium XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
nikolas-charalambidis/facepalm-maven-plugin#291 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
OakLoaf/PluginUpdater#264 ·
Maintainer thường phản hồi trong vòng 1 ngày