hi, we recently synced <our fork> with JetBrains/k...
# kontributors
p
hi, we recently synced our fork with JetBrains/kotlin's master, and we randomly get such failures (see the Build step) when building the repo - details in the thead. Are you aware of any issue that still persists on main repo's master or has been already fixed? not sure if it's worth syncing with main repo now, or wait
Copy code
File being compiled: /home/runner/work/kotlin-python/kotlin-python/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/extensions/FirDeclarationGenerationExtension.kt
> Task :compiler:fir:resolve:compileKotlin FAILED
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:50)
	at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException(CodegenUtil.kt:239)
...
Caused by: java.lang.RuntimeException: Exception while generating code for:
FUN CLASS_STATIC_INITIALIZER name:<clinit> visibility:public/*package*/ modality:FINAL <> () returnType:kotlin.Unit
  BLOCK_BODY
    SET_FIELD 'FIELD GENERATED_PROPERTY_REFERENCE name:$$delegatedProperties type:kotlin.Array<out kotlin.reflect.KProperty<out kotlin.Any?>> visibility:public/*package*/ [final,static]' type=kotlin.Unit origin=INITIALIZE_FIELD
      value: BLOCK type=kotlin.Array<out kotlin.reflect.KProperty<out kotlin.Any?>> origin=null
        VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Array<out kotlin.reflect.KProperty<out kotlin.Any?>> [val]
          CALL 'public final fun arrayOfNulls <T> (size: <http://kotlin.Int|kotlin.Int>): kotlin.Array<T of kotlin.arrayOfNulls?> declared in kotlin' type=kotlin.Array<out kotlin.reflect.KProperty<out kotlin.Any?>> origin=null
            <T>: kotlin.reflect.KProperty<out kotlin.Any?>
            size: CONST Int type=<http://kotlin.Int|kotlin.Int> value=1
        CALL 'public final fun set (index: <http://kotlin.Int|kotlin.Int>, value: T of kotlin.Array): kotlin.Unit [operator] declared in kotlin.Array' type=kotlin.Unit origin=null
d
On which branch from origin kotlin did you rebase? And on which commit in this branch?
friendly ping
d
Sorry, completely forgot about this thread This issue is very strange (especially because you say those failures are flaky). Project in
master
branch almost always can be compiled and all tests are passed, and for release branches there can not be a situation that compiler build fails (and commit you rebased on is from release branch)
I can suggest only to sync with 1.6.10 or with fresh master
👍 1