I posted this in <#C0B8MA7FA|getting-started>, but was told to move it here: I'm trying to package ...
s
I posted this in #getting-started, but was told to move it here: I'm trying to package
kotlin-native
in the AUR and am having trouble building it. Currently, it's giving me a bunch of errors when I try to run
gradle :bundle
, with the message
e: warnings found and -Werror specified
. I've tried the following: 1. Compiling from the root directory, with
gradle :kotlin-native:bundle
2. Compiling from the
kotlin-native
directory with
gradle :bundle
3. Adding
kotlin.build.disable.werror=true
to the
gradle.properties
in both the root and
kotlin-native
directories, and performing 1 and 2 again. 4. Modifying the property
KotlinBuildProperties.disableWerror
in
buildSrc/src/main/kotlin/BuildPropertiesExt.kt
to make it always return
true
, then performing 1 and 2 again. 5. Commenting out
allWarningsAsErrors = true
in the
build.gradle.kts
(line 529) and performing 1 and 2 again. 6. Passing
-Pkotlin.build.disable.werror=true
to gradle, and performing 1 and 2 again. At this point, I'm stumped on what I need to do to build it properly.
i
I'm not sure if it helps but could you try to use the Gradle wrapper instead of a local Gradle installation? E.g. run
./gradlew :kotlin-native:bundle
from the root repository directory instead of
gradle :kotlin-native:bundle
.
s
@ilya.matveev I've tried with the gradle wrapper instead of my system installation, but it changes nothing
i
Which task does fail with this message? You can also run the build with
--scan
option to collect a build scan that contains more details about the build process.