anidotnet
04/02/2018, 1:04 PMhttp_proxy
env variable set up properlyolonho
04/02/2018, 1:05 PManidotnet
04/02/2018, 1:48 PMolonho
04/02/2018, 2:14 PMkonanc
with -D options as suggested in the bug and let us know the result. Could you run other networked Java programs?anidotnet
04/02/2018, 2:19 PMolonho
04/02/2018, 2:24 PMkonanc
. It will download all needed toolchains.anidotnet
04/02/2018, 2:28 PM$ ~/.konan/kotlin-native-linux-0.6.2/bin/konanc
error: you have not specified any compilation arguments. No output has been produced.
olonho
04/02/2018, 2:28 PMsamples
folderanidotnet
04/02/2018, 2:42 PMexport COMPILER_ARGS_linux='-Dhttp.proxyHost=**************** -Dhttp.proxyPort=********'
and then run build.sh
. Still same error. After that I started gradle build with proxy args let see.olonho
04/02/2018, 2:43 PM./gradlew -D...
anidotnet
04/02/2018, 2:44 PM./gradlew -Dhttp.proxyHost=*********** -Dhttp.proxyPort=****** build
> Task :csvparser:compileKonanCsvParserLinux
Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.
Cannot download a dependency: java.net.ConnectException: Connection timed out
Waiting 3.0 sec and trying again (attempt: 2/10).
olonho
04/02/2018, 2:51 PManidotnet
04/02/2018, 2:52 PMolonho
04/02/2018, 2:52 PM-Dhttps.proxyHost= -Dhttps.proxyPort=
anidotnet
04/02/2018, 2:59 PMolonho
04/02/2018, 3:23 PM./gradlew -stop
anidotnet
04/03/2018, 2:05 PMrun_konan
script as below
java_opts=(-ea \
-Djava.net.useSystemProxies=true \
-Xmx3G \
"-Djava.library.path=${NATIVE_LIB}" \
"-Dkonan.home=${KONAN_HOME}" \
-Dfile.encoding=UTF-8)
olonho
04/03/2018, 3:45 PM-D
switch.anidotnet
04/03/2018, 4:23 PMrun_konan
that's why it was not working. In place of java.net.useSystemProxies
if I pass http.proxyHost
and http.proxyPort
in run_konan
, that was also working. I choose the java.net.useSystemProxies
as I don't have to pass host, port again. Can you please verify if those -D
args are being passed from gradle script to run_konan
properly?alexander.gorshenev
04/03/2018, 5:00 PM