Kotlin / binary-compatibility-validator

Public API management tool
Apache License 2.0
800 stars 59 forks source link

Unknown native target errors with Kotlin 2.0.0-RC1 #218

Closed rickclephas closed 5 months ago

rickclephas commented 5 months ago

Running apiDump and apiCheck results in errors for all the native targets:

Unknown native target: Native(name=linux_arm64)

Based on the error message and the change logs for 2.0.0-RC1, it looks like this error is caused by: https://github.com/JetBrains/kotlin/commit/4941094521f1c49acd13192bde64108fcee44fd2 as part of KT-66367.

rickclephas commented 5 months ago

FYI reported in the Kotlin Slack as well as I am not sure if this change is expected: https://kotlinlang.slack.com/archives/C0KLZSCHF/p1713085451319519

rickclephas commented 5 months ago

In case you need a reproducer: run ./gradlew apiDump on https://github.com/rickclephas/KMP-NativeCoroutines/commit/db43921687ec5dced78adce4223ee68b0a3eb08e

atyrin commented 5 months ago

@rickclephas thank you for the report. We will address in on the Kotlin side: https://youtrack.jetbrains.com/issue/KT-67401/KLib-ABI-dump-write-plain-targets-in-the-manifest

rickclephas commented 5 months ago

I can confirm this has been fixed by KT-67401 in Kotlin 2.0.0-RC2