Has anyone encountered this error when linking wit...
# kotlin-native
b
Has anyone encountered this error when linking with gradle plugin?
Copy code
Exception in thread "main" org.jetbrains.kotlin.konan.KonanExternalToolFailure:             The /home/mpetuska/.konan/dependencies/clang-llvm-8.0.0-linux-x86-64/bin/clang command returned non-zero exit code: 1.
            output: clang-8: error: no such file or directory: '
'
I'm on manjaro linux
k
Nope I'm on fedora
Remove dependencies folder and redownload
b
What's odd is that it seems to be printing a durectory path which is an empty string
k
Yahh. It suppose to download clang-llvm-8.0.0-linux-x86-64 compressed file into cache folder and extract it to dependencies folder
n
Have you tried clearing the cache first, and trying again?
b
I assume you mean gradle cache?
👌 1
Solved it, turned out my custom task that runs
pkg-config
and parses the output to add as cinterop flags was not propertly rtimming the output thus resulting in one extra empty flag. However what's odd is that even with that empty flag, the issue was not present on windows.
k
If you are using gradle why not jetbrain IDE ?
b
I'm on IntelliJ as well. However this is irrelevant in this context.
k
Yahh but intellij auto manage this stuff. Will be easy to update things in future, otherwise you have to do everything manually
b
What stuff? How?
Everything's done by MPP gradle plugin
k
Upgrading gradle + good code completion recommendations etc.
b
yeah, but my issue has nothing to do with code
k
Yahh. And it raised by your custom task. So no one will get idea what's going on.
b
Custom task is just a shorthand for geting --cflags