Kotlin Native "unable to compile c bridges"

I’ve got a build failure that seems like I’m probably just missing a setup step but error-message-Googling has failed me.

I’ve got a pretty standard (AFAICT) multiplatform Gradle build that successfully compiles to (JS, JVM) and successfully runs the tests for those but fails to link and run tests for linuxX64. I am not yet at the stage where I’m linking an executable for main.

I get “e: Unable to compile C bridges” which I’ve not yet diagnosed.

$ gradle linuxMainKlibrary linuxTestKlibrary
# Works fine
$ gradle linkDebugTestLinux --stacktrace --debug
...
2019-12-... [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] 
2019-12-... [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :linkDebugTestLinux
2019-12-... [ERROR] [system.err] e: Unable to compile C bridges
2019-12-... [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
2019-12-... [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command '/usr/lib/jvm/java-11-openjdk-amd64/bin/java'' finished with exit value 1 (state: FAILED)
2019-12-... [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Execute compile for :linkDebugTestLinux'
...

The whole --debug dump is available.

I built with this build.gradle but with the marked line uncommented.

$ uname -a
Linux pop-os 5.3.0-7625-generic #27~1576337002~19.10~bc3488b-Ubuntu SMP Sat Dec 14 18:31:03 UTC  x86_64 x86_64 x86_64 GNU/Linux
$ gradle -v

------------------------------------------------------------
Gradle 6.0.1
------------------------------------------------------------

Build time:   2019-11-18 20:25:01 UTC
Revision:     fad121066a68c4701acd362daf4287a7c309a0f5

Kotlin:       1.3.50
Groovy:       2.5.8
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          11.0.5 (Private Build 11.0.5+10-post-Ubuntu-0ubuntu1.1)
OS:           Linux 5.3.0-7625-generic amd64

Hello @mikesamuel! Do you have libncurses5 installed? It’s one of prerequisites of K/N compiler, see here.