Ugi
05/21/2020, 10:32 AMUByteArray
inline class in my project.
linkDebugStaticLinux task fails (rather silently), but running konanc directly with parameters from the task provides the following output (this is just a snippet:
/tmp/konan_temp4669369786604700434/api.cpp:249:216: error: unknown type name 'libmultiplatform_crypto_kref_kotlin_ByteArray'; did you mean 'libmultiplatform_crypto_kref_kotlin_Array'?
libmultiplatform_crypto_kref_kotlin_ByteArray (*digest_)(libmultiplatform_crypto_kref_com_ionspin_kotlin_crypto_hash_StatelessHash thiz, libmultiplatform_crypto_kref_kotlin_ByteArray inputMessage, libmultiplatform_crypto_kref_kotlin_ByteArray key, libmultiplatform_crypto_KInt hashLength);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmultiplatform_crypto_kref_kotlin_Array
/tmp/konan_temp4669369786604700434/api.cpp:77:3: note: 'libmultiplatform_crypto_kref_kotlin_Array' declared here
} libmultiplatform_crypto_kref_kotlin_Array;
Indicating that libmultiplatform_crypto_kref_kotlin_ByteArray
is unknown, which is somewhat correct because I am using UByteArray.
I worked around this issue by simply declaring one ByteArray in the same class like this
val byteArray: ByteArray = byteArrayOf(0, 1)
And then compilation succeeded.
My question is, is this a known bug, or should I report it?Artyom Degtyarev [JB]
05/21/2020, 10:56 AMUgi
05/21/2020, 10:57 AMArtyom Degtyarev [JB]
05/21/2020, 1:32 PM