madhead
12/16/2017, 1:05 AMjkbbwr
12/16/2017, 10:58 PMjakob@devtank~/tmp> cat czmq.def
headers = czmq.h
jakob@devtank~/tmp> cinterop -def czmq.def -o zmq -copt -I/usr/include
Exception in thread "main" java.lang.IllegalArgumentException: 'va_listVar' is going to be declared twice
at org.jetbrains.kotlin.native.interop.gen.KotlinFile.<init>(KotlinCodeModel.kt:231)
at org.jetbrains.kotlin.native.interop.gen.jvm.StubGenerator$kotlinFile$1.<init>(StubGenerator.kt:167)
at org.jetbrains.kotlin.native.interop.gen.jvm.StubGenerator.<init>(StubGenerator.kt:167)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processLib(main.kt:370)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:33)
at org.jetbrains.kotlin.cli.utilities.MainKt.invokeCinterop(main.kt:94)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:117)
Using CZMQ latest from github.clifton
12/16/2017, 11:30 PMjkbbwr
12/17/2017, 12:31 PMjkbbwr
12/17/2017, 4:40 PMheaderFilter = czmq.h czmq_prelude.h czmq_library.h zactor.h zarmour.h zcert.h zcertstore.h zchunk.h zclock.h zconfig.h zdigest.h zdir.h zdir_patch.h zfile.h zframe.h zhash.h zhashx.h ziflist.h zlist.h zlistx.h zloop.h zmsg.h zpoller.h zsock.h zstr.h zuuid.h zauth.h zbeacon.h zgossip.h zmonitor.h zproxy.h zrex.h zsys.h
It generates empty bindingsjkbbwr
12/18/2017, 11:37 PMWarning: cannot generate stubs for function zactor_new
Warning: cannot generate stubs for function zconfig_execute
Warning: cannot generate stubs for function zhash_freefn
Warning: cannot generate stubs for function zhashx_freefn
Warning: cannot generate stubs for function zhashx_set_destructor
Warning: cannot generate stubs for function zhashx_set_duplicator
Warning: cannot generate stubs for function zhashx_set_key_destructor
Warning: cannot generate stubs for function zhashx_set_key_duplicator
Warning: cannot generate stubs for function zhashx_set_key_comparator
Warning: cannot generate stubs for function zhashx_set_key_hasher
Warning: cannot generate stubs for function zlist_sort
Warning: cannot generate stubs for function zlist_comparefn
Warning: cannot generate stubs for function zlist_freefn
Warning: cannot generate stubs for function zlistx_set_destructor
Warning: cannot generate stubs for function zlistx_set_duplicator
Warning: cannot generate stubs for function zlistx_set_comparator
Warning: cannot generate stubs for function zloop_reader
Warning: cannot generate stubs for function zloop_poller
Warning: cannot generate stubs for function zloop_timer
Warning: cannot generate stubs for function zloop_ticket
Warning: cannot generate typedef _IO_lock_t
roamingthings
12/19/2017, 2:21 PMalso()
to swap two values here or if this is bug.
Given the following code:
fun main(args: Array<String>) {
var x0 = 25
var y0 = 26
var x1 = 27
var y1 = 28
x0 = y0.also { y0 = x0 }
x1 = y1.also { y1 = x1 }
println("x0=$x0, y0=$y0, x1=$x1, y1=$y1")
}
Kotlin/JVM will produce the following output (x0 <-> y0 and x1 <-> y1):
x0=26, y0=25, x1=28, y1=27
Whereas Kotlin/Native does the following:
x0=25, y0=25, x1=27, y1=27
Any thoughts?jkbbwr
12/19/2017, 3:10 PMdavid.bilik
12/19/2017, 8:52 PMcodygoldberg
12/19/2017, 9:28 PMerror: you have not specified any compilation arguments. No output has been produced.
The provided calculator sample compiles fine - so I suppose this a configuration issue on my end. Any ideas? I’m using a very similar build script setup as the sample is.madhead
12/19/2017, 10:38 PM* What went wrong:
Cannot download Kotlin/Native compiler
> Server returned HTTP response code: 403 for URL: https://download.jetbrains.com/kotlin/native/builds/releases/0.5/linux/kotlin-native-linux-0.5.tar.gz
jkbbwr
12/19/2017, 11:16 PMkyonifer
12/19/2017, 11:30 PMlinux_china
12/20/2017, 2:46 AMjo
12/20/2017, 7:04 AMfun Byte.xor(v: Byte): Byte = ((this.toInt() and 0xFF) xor (v.toInt() and 0xFF)).toByte()
and I'm seeing
api8610509288099049914.cpp:39:25: error: expected member name or ';' after declaration specifiers
cpu_x1_KByte (*xor)(cpu_x1_KByte thiz, cpu_x1_KByte v);
freddiewang
12/20/2017, 9:41 AMShowing Recent Errors Only
Execution failed for task ':calculator:compileKonanKotlinArithmeticParserIphone_sim'.
> Classpath of the tool is empty: konanc
Probably the 'konan.home' project property contains an incorrect path.
Please change it to the compiler root directory and rerun the build.
How could I import the path in XCode?amorenew
12/20/2017, 9:55 AMrwachol
12/20/2017, 4:45 PMpatjackson52
12/20/2017, 5:50 PMandreasmattsson
12/21/2017, 9:46 PMthe feature "multi platform projects"
is experimental and should be enabled explicitly
Can it be enabled, and if so how?ariff
12/22/2017, 10:48 PMian
12/24/2017, 12:35 AMredrield
12/24/2017, 12:48 AMbombe
12/24/2017, 11:59 AMioctl
from kotlin-native, specifically ioctl(STDOUT_FILENO, TIOCGWINSZ, &winsize)
but how does one create a winsize object?bombe
12/24/2017, 12:34 PMkyle
12/26/2017, 1:59 AMcamdenorrb
12/26/2017, 4:10 AMmadhead
12/26/2017, 10:51 PMstderr
in K/N?itnoles
12/27/2017, 6:51 PMspierce7
12/28/2017, 1:35 AMspierce7
12/28/2017, 1:35 AMolonho
12/28/2017, 6:10 AM