编译 snappy java 1.0.4.1 出现 error
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Bereich
- build-system
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
在麒麟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
- Vorherrschende Sprache
- Java
- Sterne
- 1.1k
- Forks
- 261
- Ø Merge
- 2 Min.
- Gemergte PRs (30 T.)
- 2
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus xerial/snappy-java
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
xerial/snappy-java#658 · 3 Kommentare · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 56/100
xerial/snappy-java#607 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
xerial/snappy-java#604 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
xerial/snappy-java#603 · 3 Kommentare ·
-
Snappy error on Mac OS Ventura: "no native library is found for os.name=Mac and os.arch=aarch64"Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
xerial/snappy-java#573 · 1 Reaktion ·
Alle Issues in xerial/snappy-java
Ähnliche Issues
-
hermes-queue
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 85/100
chrisalunlloyd2-sudo/mindpalace#403 ·
Maintainer antworten meist innerhalb von 1 Tag
-
triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
xerial/sqlite-jdbc#1515 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Area/Configuration Type/Improvement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ballerina-platform/static-code-analysis-tool#217 ·
Maintainer antworten meist innerhalb von 1 Tag
-
SequenceEncoder: a value ending with a backslash swallows the tokens after it (“No state for trait”)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
vassalengine/vassal#15337 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
eclipse-dirigible/dirigible#8636 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag