spierce7
08/28/2021, 6:19 AMHsiao Mui
08/29/2021, 8:32 AMinotify_event
struct does not have any of it’s members. Has anyone encountered this issue before ?Sterling Albury
08/30/2021, 12:51 AM.konan/platforms/zephyr
and rebuilt the compiler but I’m not seeing it show up in konanc -list-targets
. I should be seeing it show up with -list-targets
, no? I’m not seeing the stm32f4_disco
target show up either.
when I try to compile a program for my target or the stm32f4_disco
target I get this error:
» konanc hello.kt -target zephyr_stm32f4_disco
error: compilation failed: Target zephyr_stm32f4_disco is not available on the macos_x64 host
* Source files: hello.kt
* Compiler version info: Konan: 1.6.0-dev / Kotlin: 1.6.255
* Output kind: PROGRAM
exception: java.lang.IllegalStateException: Target zephyr_stm32f4_disco is not available on the macos_x64 host
at org.jetbrains.kotlin.backend.konan.KonanConfig.<init>(KonanConfig.kt:95)
at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:79)
...
I’ve been able to build and flash zephyr for my target boards. can I not build my kotlin program for these targets on a mac?spierce7
08/30/2021, 6:22 AM/usr/local/lib/
1. How do I tell get the dynamic library to load a file in a relative path to the .kexe
executable?
2. If #1 isn’t possible, is it possible to embed a dynamic library into the .kexe
?atsushieno
08/30/2021, 10:31 AMorg.gradle.api.tasks.TaskExecutionException: Execution failed for task ':commonizeNativeDistribution'.
Caused by: java.lang.ClassCastException: class org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension_Decorated cannot be cast to class org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension (org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension_Decorated is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @34f47f71; org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @3b0ff146)
spierce7
08/31/2021, 3:03 PMfree
method work, or heck, just using the C free method itself.smallshen
08/31/2021, 8:46 PMkenkyee
09/01/2021, 2:39 AMLars Toft Jacobsen
09/01/2021, 3:43 PMiosX64("ios") {
binaries {
framework()
}
}
plus sourcesets, and implemented a few expected types. All compilation tasks run successfully but the linkReleaseFrameworkIos
always fails with a Java assertion error somewhere in the native compiler with zero hints to actual cause. Link debug framework succeeds for iosX64 but will likewise also fail for iosArm64. I deliberately chose one of the stand-alone modules as to not also deal with dependency issues. Any pointer to how I should approach this problem is greatly appreciated 🙏 Searching the docs didn’t yield much in terms of debugging compilations issues. Thanks.Trevor Stone
09/01/2021, 5:30 PMassembleReleaseXCFramework
task does not contain the dSYMs for the project from what I can tell. I, maybe ignorantly, thought these were important for crash reporting tools. Is there a reason it is only generated for the debug xcframeworks?Ink
09/02/2021, 9:37 AMfun findName(personList: PersonList) : String?{
var name: String? = null
personList.person.forEach {
name = it.name
}
return name
}
Can I simplify that code?Eryk Lepszy
09/02/2021, 4:09 PMtoKString()
function returns correct values on Linux, and broken ones on Windows, I'm assuming because of some Windows or mingw encoding-related caveat that I can't figure out.
I created a simple project to demonstrate the issue, does anyone know how to deal with this?
https://gitlab.com/Chazoshtare/encoding-issue-kn/-/tree/masterAlexander Black
09/02/2021, 6:28 PMPaul Woitaschek
09/03/2021, 9:59 AMRaed Ghazal
09/03/2021, 1:24 PMvarX?.let { varX ->
varY?.let { varY ->
foo(varX, varY)
}
}
is there a better way to have this null safe and thread safe but in a cleaner look?Thomas
09/03/2021, 9:10 PMclang (LLVM option parsing): for the --fast-isel option: may only occur zero or one times!
clang (LLVM option parsing): for the --global-isel option: may only occur zero or one times!
See full stack trace in thread. Any idea what the issue could be?spierce7
09/03/2021, 11:31 PMCPointerVar
? I’ve been stuck on this for a few days.
I’m interacting with the following c function:
idevice_error_t idevice_get_device_list_extended(idevice_info_t **devices, int *count);
I’m calling it like this:
val connectedDevices: CPointerVar<idevice_info_tVar> = alloc()
val connectedDevicesSize: IntVar = alloc()
idevice_get_device_list_extended(connectedDevices.ptr, connectedDevicesSize.ptr)
I have no idea to get the array of devices out of the val connectedDevices
. There are no examples using CPointerVar
and CValues
that I’ve been able to find to figure this out. Any help would be much appreciated!Karlo Lozovina
09/05/2021, 6:09 PMRaed Ghazal
09/06/2021, 3:10 PMinline fun <T> massAction(vararg objects: T, block: T.() -> Unit) {
objects.forEach {
block(it)
}
}
wmontwe
09/07/2021, 1:19 PMankushg
09/07/2021, 5:31 PMSlackbot
09/07/2021, 5:51 PMBig Chungus
09/07/2021, 6:09 PMnapperley
09/07/2021, 8:58 PMGtkStatusIcon
( https://stackoverflow.com/questions/41917903/gtk-3-statusicon-replacement ). Apparently GtkStatusIcon
is accessible in the Gtk 3 API (there should be GtkStatusIcon
declarations in the gtk/gtk.h header file), but has been removed in the Gtk 4 API.
What Kotlin Native options are available for dealing with deprecated APIs in C libraries?Miroslav Sobotka
09/07/2021, 10:42 PMThe /home/mira/.konan/dependencies/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2/x86_64-unknown-linux-gnu/bin/ld.gold command returned non-zero exit code: 1.
output:
/usr/lib64/libpipewire-0.3.so: error: undefined reference to 'fcntl64', version 'GLIBC_2.28'
/usr/lib64/libpipewire-0.3.so: error: undefined reference to 'memfd_create', version 'GLIBC_2.27'
/usr/lib64/libpipewire-0.3.so: error: undefined reference to 'stat64', version 'GLIBC_2.33'
/usr/lib64/libpipewire-0.3.so: error: undefined reference to 'getrandom', version 'GLIBC_2.25'
/usr/lib64/libpipewire-0.3.so: error: undefined reference to 'fstat64', version 'GLIBC_2.33'
Kweku
09/08/2021, 1:02 PMnapperley
09/08/2021, 11:47 PMgtk_menu_popup_at_pointer
function ( https://docs.gtk.org/gtk3/method.Menu.popup_at_pointer.html ) as an example how would one pass through a "fake" Union to the function?spierce7
09/09/2021, 4:23 PMserebit
09/11/2021, 11:59 PMnapperley
09/12/2021, 3:36 AM> Task :linkTodoDebugExecutableLinuxArm32
w: Linking two modules of different target triples: /tmp/native13265186009735942822/cstubs.bc' is 'armv6-unknown-linux-gnueabihf' whereas 'out' is 'armv6kz-unknown-linux-gnueabihf'
w: Linking two modules of different target triples: /tmp/native627338979534854439/cstubs.bc' is 'armv6-unknown-linux-gnueabihf' whereas 'out' is 'armv6kz-unknown-linux-gnueabihf'
w: Linking two modules of different target triples: /tmp/native7458931769986923423/cstubs.bc' is 'armv6-unknown-linux-gnueabihf' whereas 'out' is 'armv6kz-unknown-linux-gnueabihf'
What do the warnings mean? It is important to note that the Linux ARM HFP 32 binary is created successfully. These warnings are confusing since the linuxArm32Hfp target is used, which is based on Linux ARMv7, not Linux ARMv6. The warnings above do not occur if Kotlin 1.5.20 is used instead of Kotlin 1.5.30.
Looks like there is a major issue with linking for the linuxArm32Hfp target in Kotlin 1.5.30.napperley
09/12/2021, 3:36 AM> Task :linkTodoDebugExecutableLinuxArm32
w: Linking two modules of different target triples: /tmp/native13265186009735942822/cstubs.bc' is 'armv6-unknown-linux-gnueabihf' whereas 'out' is 'armv6kz-unknown-linux-gnueabihf'
w: Linking two modules of different target triples: /tmp/native627338979534854439/cstubs.bc' is 'armv6-unknown-linux-gnueabihf' whereas 'out' is 'armv6kz-unknown-linux-gnueabihf'
w: Linking two modules of different target triples: /tmp/native7458931769986923423/cstubs.bc' is 'armv6-unknown-linux-gnueabihf' whereas 'out' is 'armv6kz-unknown-linux-gnueabihf'
What do the warnings mean? It is important to note that the Linux ARM HFP 32 binary is created successfully. These warnings are confusing since the linuxArm32Hfp target is used, which is based on Linux ARMv7, not Linux ARMv6. The warnings above do not occur if Kotlin 1.5.20 is used instead of Kotlin 1.5.30.
Looks like there is a major issue with linking for the linuxArm32Hfp target in Kotlin 1.5.30.