Elias
11/04/2020, 11:55 AMnapperley
11/04/2020, 10:04 PMElias
11/05/2020, 7:49 AMElias
11/05/2020, 7:49 AMkotlin {
linuxArm32Hfp("native"){
binaries {
executable {
entryPoint = "main"
}
}
}
sourceSets {
val nativeMain by getting
val nativeTest by getting
}
}
napperley
11/05/2020, 9:26 PMlsb_release -a
napperley
11/05/2020, 9:27 PMnapperley
11/05/2020, 9:48 PMgroup = "org.example"
version = "0.1-SNAPSHOT"
plugins {
kotlin("multiplatform") version "1.4.10"
}
kotlin {
linuxArm32Hfp("linuxArm32") {
binaries {
executable { entryPoint = "main" }
}
}
}
After doing that rename the source root from native to linuxArm32, run the linkDebugExecutableLinuxArm32Hfp Gradle task to generate the debug binary, copy the binary to the Spectre, and run the binary on the Spectre.napperley
11/05/2020, 9:58 PMnapperley
11/05/2020, 10:03 PMElias
11/06/2020, 8:33 AMElias
11/06/2020, 8:35 AMElias
11/06/2020, 8:36 AMElias
11/06/2020, 8:49 AMnapperley
11/07/2020, 1:07 AMJon Olson
10/19/2022, 11:33 PMnapperley
10/20/2022, 7:38 PMJon Olson
10/20/2022, 8:01 PMw: Linking two modules of different target triples: /tmp/native1886632026687659406/cstubs.bc' is 'armv7-unknown-linux-gnueabihf' whereas 'out' is 'armv6kz-unknown-linux-gnueabihf'
And Sergey commented that the toolchain Kotlin uses is armv6. That's hard to determine using google searching, but ARM cross compilers has supported options for -march and -mcpuJon Olson
10/20/2022, 8:02 PMcompilerOpts ("-march=armv7")
But my Kotlin build scan shows a build step called linuxArm32HfpCompileKlibrariesnapperley
10/20/2022, 8:03 PM