Fix building jnidispatch with Android NDK 18+ using Clang/LLVM
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 20/100
- Issue-Typ
- Bug
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Bereich
- build-system, mobile-dev
Rechercherichtung
Beginnen Sie mit der Prüfung des vorgeschlagenen Branches und Commits android-ndk-llvm und vergleichen Sie anschließend dessen Build-Änderungen mit dem aktuellen jnidispatch-Build-Setup. Testen Sie den Build mit den unterstützten Android-NDK-Versionen, einschließlich r27c, und stellen Sie fest, ob der Übergang von GCC zu Clang über die besprochenen Targets hinweg funktioniert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
More of a place for discussion than an urgent need to be resolved, I have specifically not made a PR yet as this is nowhere near comprehensively tested. It would be very helpful if anyone with libffi experience in other projects knows about any tricks moving from gcc to clang.
Anyway, here is a branch with my proposed changes: https://github.com/BugsBeGone/jna/commits/android-ndk-llvm/
Actual commit, which may be out of date if branch is rebased to sync with master: https://github.com/BugsBeGone/jna/commit/2be472422f4ea1c479ef1322253b9a1ab7d356e0
Some initial observations:
-
ARMv5 and MIPS (32 & 64) targets were removed in NDK r17. In theory the Play Store still supports versions of Android that could be running on those architectures, so it is a bit soon to drop them entirely if the old toolchains do still work.
At the very least I would expect a major JNA version bump to indicate the removed targets(Edit: I guess those libs can always still be built with older NDKs, in which case no need for a breaking change by dropping support). -
Standalone toolchains are a mess for detecting the version. I cannot think of a way that does not involve the user manually setting either the NDK major version, or a
USE_CLANGdefine to work out which compiler suite to use. I would be in favour of officially not supporting the use of standalone toolchains, as you need approximately 1GB of extra disk space per target, so even testing it is a pain. -
More to the point, NDKs between r17 & r21 generally seem to be unstable, requiring unholy combinations of GCC/Binutils & Clang/LLVM to work at all. Since the existing build environment has never worked with anything after r15, because of the switch to unified headers, we probably do not need to worry too much so long as everyone is happy to jump from let's say r15 to r22.
I have mostly been testing with NDK r27c, since that was the latest LTS release (Edit: r27d is still the latest LTS, the only differences from r27c are a couple of macOS-specific fixes).
- Vorherrschende Sprache
- Java
- Sterne
- 8.9k
- Forks
- 1.7k
- Ø Merge
- 1 T. 13 Std.
- Gemergte PRs (30 T.)
- 1
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 java-native-access/jna
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 66/100
java-native-access/jna#1738 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
java-native-access/jna#1736 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 65/100
java-native-access/jna#1717 ·
-
Windows32Exception - The parameter is incorrectEvtl. vergeben @marktech0813 hat das vor 332 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
java-native-access/jna#1700 · 11 Kommentare ·
-
feature request
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
java-native-access/jna#1698 · 1 Kommentar ·
Alle Issues in java-native-access/jna
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
sqlcipher/sqlcipher-android#97 · 1 Kommentar ·
-
bug IIIF interoperability
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Netcracker/qubership-integration-platform#1046 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
`check_java_version()` fails when Java path contains spaces (Windows / Git Bash, `C:\Program Files`)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100