Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Gradle on MAC with M1 chip using Kotlin Native still produces JNA issue #346

@nehgutierrez

Description

@nehgutierrez

Using the plugin in a Mac with M1 chip we found the same error than in issue 20355

Environment

openjdk version "11.0.15" 2022-04-19 LTS
OpenJDK Runtime Environment Zulu11.56+19-CA (build 11.0.15+10-LTS)
OpenJDK 64-Bit Server VM Zulu11.56+19-CA (build 11.0.15+10-LTS, mixed mode)

arm 64
MacOS 12.4 (21F79)

Dependencies
Here is part of the ./gradle buildEnvironment command

classpath
+--- com.google.gms:google-services:4.3.3
|    +--- com.google.android.gms:strict-version-matcher-plugin:1.2.1
|    |    +--- com.google.code.findbugs:jsr305:3.0.2
|    |    +--- com.google.guava:guava:27.0.1-jre -> 30.0-jre
|    |    |    +--- com.google.guava:failureaccess:1.0.1
|    |    |    +--- com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
|    |    |    +--- com.google.code.findbugs:jsr305:3.0.2
|    |    |    +--- org.checkerframework:checker-qual:3.5.0
|    |    |    +--- com.google.errorprone:error_prone_annotations:2.3.4
|    |    |    \--- com.google.j2objc:j2objc-annotations:1.3
|    |    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.11 -> 1.4.10
|    |         +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.10 -> 1.4.32
|    |         |    +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.32
|    |         |    \--- org.jetbrains:annotations:13.0
|    |         \--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.10
|    |              \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.10 -> 1.4.32 (*)
|    +--- com.google.code.gson:gson:2.8.5
|    \--- com.google.guava:guava:27.0.1-jre -> 30.0-jre (*)
+--- com.github.bjoernq:unmockplugin:0.7.9
|    +--- org.javassist:javassist:3.27.0-GA
|    \--- com.android.tools.build:gradle:3.3.0 -> 3.4.1 (*)
\--- io.github.cdsap:talaiot:1.5.2
     +--- io.github.cdsap.talaiot:talaiot:1.5.2
     |    +--- com.github.oshi:oshi-core:5.5.0
     |    |    +--- net.java.dev.jna:jna:5.7.0
     |    |    +--- net.java.dev.jna:jna-platform:5.7.0
     |    |    |    \--- net.java.dev.jna:jna:5.7.0
     |    |    \--- org.slf4j:slf4j-api:1.7.30
     |    +--- com.gradle:gradle-enterprise-gradle-plugin:3.5.2
     |    |    \--- com.github.spotbugs:spotbugs-annotations:4.1.3
     |    |         \--- com.google.code.findbugs:jsr305:3.0.2
     |    +--- io.github.cdsap.talaiot:talaiot-logger:1.5.2
     |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
     |    +--- io.github.cdsap.talaiot:talaiot-request:1.5.2
     |    |    +--- io.github.rybalkinsd:kohttp:0.10.0
     |    |    |    +--- com.squareup.okhttp3:okhttp:3.14.2 -> 4.9.0 (*)
     |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.40 -> 1.4.10 (*)
     |    |    |    +--- org.jetbrains.kotlin:kotlin-reflect:1.3.40 -> 1.4.21 (*)
     |    |    |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1
     |    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.30 -> 1.4.32 (*)
     |    |    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.3.30 -> 1.4.32
     |    |    |    +--- com.fasterxml.jackson.core:jackson-databind:2.9.9 -> 2.12.6.1 (*)
     |    |    |    +--- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.9 -> 2.12.6
     |    |    |    |    +--- com.fasterxml.jackson.core:jackson-databind:2.12.6 -> 2.12.6.1 (*)
     |    |    |    |    +--- org.yaml:snakeyaml:1.27
     |    |    |    |    +--- com.fasterxml.jackson.core:jackson-core:2.12.6 (*)
     |    |    |    |    \--- com.fasterxml.jackson:jackson-bom:2.12.6 (*)
     |    |    |    \--- com.fasterxml.jackson.module:jackson-module-kotlin:2.9.9 -> 2.12.6
     |    |    |         +--- com.fasterxml.jackson.core:jackson-databind:2.12.6 -> 2.12.6.1 (*)
     |    |    |         +--- com.fasterxml.jackson.core:jackson-annotations:2.12.6 (*)
     |    |    |         +--- org.jetbrains.kotlin:kotlin-reflect:1.4.21 (*)
     |    |    |         \--- com.fasterxml.jackson:jackson-bom:2.12.6 (*)
     |    |    +--- io.github.cdsap.talaiot:talaiot-logger:1.5.2 (*)
     |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
     |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
     +--- io.github.cdsap.talaiot:base-publisher:1.5.2
     |    +--- com.google.code.gson:gson:2.8.5
     |    +--- io.github.cdsap.talaiot:talaiot:1.5.2 (*)
     |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
     +--- io.github.cdsap.talaiot:elastic-search-publisher:1.5.2
     |    +--- io.github.cdsap.talaiot:talaiot:1.5.2 (*)
     |    +--- org.elasticsearch.client:elasticsearch-rest-high-level-client:7.3.0
     |    |    +--- org.elasticsearch:elasticsearch:7.3.0
     |    |    |    +--- org.elasticsearch:elasticsearch-core:7.3.0
     |    |    |    +--- org.elasticsearch:elasticsearch-secure-sm:7.3.0
     |    |    |    +--- org.elasticsearch:elasticsearch-x-content:7.3.0
     |    |    |    |    +--- org.elasticsearch:elasticsearch-core:7.3.0
     |    |    |    |    +--- org.yaml:snakeyaml:1.17 -> 1.27
     |    |    |    |    +--- com.fasterxml.jackson.core:jackson-core:2.8.11 -> 2.12.6 (*)
     |    |    |    |    +--- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.8.11 -> 2.12.6
     |    |    |    |    |    +--- com.fasterxml.jackson.core:jackson-databind:2.12.6 -> 2.12.6.1 (*)
     |    |    |    |    |    \--- com.fasterxml.jackson:jackson-bom:2.12.6 (*)
     |    |    |    |    +--- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.8.11 -> 2.12.6 (*)
     |    |    |    |    \--- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.8.11 -> 2.12.6 (*)
     |    |    |    +--- org.elasticsearch:elasticsearch-geo:7.3.0
     |    |    |    +--- org.apache.lucene:lucene-core:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-analyzers-common:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-backward-codecs:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-grouping:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-highlighter:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-join:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-memory:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-misc:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-queries:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-queryparser:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-sandbox:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-spatial:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-spatial-extras:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-spatial3d:8.1.0
     |    |    |    +--- org.apache.lucene:lucene-suggest:8.1.0
     |    |    |    +--- org.elasticsearch:elasticsearch-cli:7.3.0
     |    |    |    |    +--- net.sf.jopt-simple:jopt-simple:5.0.2
     |    |    |    |    \--- org.elasticsearch:elasticsearch-core:7.3.0
     |    |    |    +--- com.carrotsearch:hppc:0.8.1
     |    |    |    +--- joda-time:joda-time:2.10.2
     |    |    |    +--- com.tdunning:t-digest:3.2
     |    |    |    +--- org.hdrhistogram:HdrHistogram:2.1.9
     |    |    |    +--- org.apache.logging.log4j:log4j-api:2.11.1
     |    |    |    \--- org.elasticsearch:jna:4.5.1
     |    |    +--- org.elasticsearch.client:elasticsearch-rest-client:7.3.0
     |    |    |    +--- org.apache.httpcomponents:httpclient:4.5.8 -> 4.5.13 (*)
     |    |    |    +--- org.apache.httpcomponents:httpcore:4.4.11 -> 4.4.13
     |    |    |    +--- org.apache.httpcomponents:httpasyncclient:4.1.4
     |    |    |    +--- org.apache.httpcomponents:httpcore-nio:4.4.11
     |    |    |    +--- commons-codec:commons-codec:1.11 -> 1.13
     |    |    |    \--- commons-logging:commons-logging:1.1.3 -> 1.2
     |    |    +--- org.elasticsearch.plugin:parent-join-client:7.3.0
     |    |    +--- org.elasticsearch.plugin:aggs-matrix-stats-client:7.3.0
     |    |    +--- org.elasticsearch.plugin:rank-eval-client:7.3.0
     |    |    \--- org.elasticsearch.plugin:lang-mustache-client:7.3.0
     |    |         \--- com.github.spullara.mustache.java:compiler:0.9.3
     |    +--- com.google.code.gson:gson:2.8.5
     |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
     +--- io.github.cdsap.talaiot:graph-publisher:1.5.2
     |    +--- io.github.cdsap.talaiot:talaiot:1.5.2 (*)
     |    \--- guru.nidi:graphviz-java:0.8.3
     |         +--- org.webjars.npm:viz.js:2.1.2
     |         +--- org.apache.xmlgraphics:xmlgraphics-commons:2.3
     |         |    \--- commons-io:commons-io:1.3.1 -> 2.8.0
     |         +--- commons-io:commons-io:2.6 -> 2.8.0
     |         +--- guru.nidi.com.kitfox:svgSalamander:1.1.2
     |         +--- net.arnx:nashorn-promise:0.1.1
     |         +--- com.eclipsesource.j2v8:j2v8_macosx_x86_64:4.6.0
     |         +--- com.eclipsesource.j2v8:j2v8_linux_x86_64:4.6.0
     |         +--- com.eclipsesource.j2v8:j2v8_win32_x86_64:4.6.0
     |         +--- com.eclipsesource.j2v8:j2v8_win32_x86:4.6.0
     |         +--- org.apache.commons:commons-exec:1.3
     |         +--- com.google.code.findbugs:jsr305:3.0.2
     |         +--- org.slf4j:jcl-over-slf4j:1.7.25
     |         |    \--- org.slf4j:slf4j-api:1.7.25 -> 1.7.30
     |         +--- org.slf4j:jul-to-slf4j:1.7.25
     |         |    \--- org.slf4j:slf4j-api:1.7.25 -> 1.7.30
     |         \--- org.slf4j:slf4j-api:1.7.25 -> 1.7.30
     +--- io.github.cdsap.talaiot:hybrid-publisher:1.5.2
     |    +--- io.github.cdsap.talaiot:talaiot:1.5.2 (*)
     |    +--- io.github.cdsap.talaiot:base-publisher:1.5.2 (*)
     |    +--- io.github.cdsap.talaiot:elastic-search-publisher:1.5.2 (*)
     |    +--- io.github.cdsap.talaiot:influxdb-publisher:1.5.2
     |    |    +--- io.github.cdsap.talaiot:talaiot:1.5.2 (*)
     |    |    +--- io.github.cdsap.talaiot:influxdb-common:1.5.2
     |    |    |    +--- io.github.cdsap.talaiot:talaiot:1.5.2 (*)
     |    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
     |    |    +--- org.influxdb:influxdb-java:2.21
     |    |    |    +--- com.squareup.retrofit2:retrofit:2.9.0
     |    |    |    |    \--- com.squareup.okhttp3:okhttp:3.14.9 -> 4.9.0 (*)
     |    |    |    +--- com.squareup.retrofit2:converter-moshi:2.9.0
     |    |    |    |    +--- com.squareup.retrofit2:retrofit:2.9.0 (*)
     |    |    |    |    \--- com.squareup.moshi:moshi:1.8.0
     |    |    |    +--- org.msgpack:msgpack-core:0.8.21
     |    |    |    +--- com.squareup.okhttp3:okhttp:4.9.0 (*)
     |    |    |    \--- com.squareup.okhttp3:logging-interceptor:4.9.0
     |    |    |         +--- com.squareup.okhttp3:okhttp:4.9.0 (*)
     |    |    |         \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10 (*)
     |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
     |    +--- io.github.cdsap.talaiot:pushgateway-publisher:1.5.2
     |    |    +--- io.github.cdsap.talaiot:talaiot:1.5.2 (*)
     |    |    +--- io.prometheus:simpleclient_pushgateway:0.15.0
     |    |    |    +--- io.prometheus:simpleclient:0.15.0
     |    |    |    |    +--- io.prometheus:simpleclient_tracer_otel:0.15.0
     |    |    |    |    |    \--- io.prometheus:simpleclient_tracer_common:0.15.0
     |    |    |    |    \--- io.prometheus:simpleclient_tracer_otel_agent:0.15.0
     |    |    |    |         \--- io.prometheus:simpleclient_tracer_common:0.15.0
     |    |    |    \--- io.prometheus:simpleclient_common:0.15.0
     |    |    |         \--- io.prometheus:simpleclient:0.15.0 (*)
     |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
     |    +--- io.github.cdsap.talaiot:rethinkdb-publisher:1.5.2
     |    |    +--- io.github.cdsap.talaiot:talaiot:1.5.2 (*)
     |    |    +--- com.rethinkdb:rethinkdb-driver:2.3.3
     |    |    |    +--- org.slf4j:slf4j-api:1.7.12 -> 1.7.30
     |    |    |    \--- com.googlecode.json-simple:json-simple:1.1.1 (*)
     |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
     |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.32 (*)
     +--- io.github.cdsap.talaiot:influxdb-publisher:1.5.2 (*)
     +--- io.github.cdsap.talaiot:pushgateway-publisher:1.5.2 (*)
     +--- io.github.cdsap.talaiot:rethinkdb-publisher:1.5.2 (*)
     +--- com.github.oshi:oshi-core:5.5.0 (*)
     +--- com.google.code.gson:gson:2.8.5
     +--- org.elasticsearch.client:elasticsearch-rest-high-level-client:7.3.0 (*)
     \--- com.rethinkdb:rethinkdb-driver:2.3.3 (*)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions