This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 564
exception: java.lang.AssertionError: Assertion failed #1811
Labels
Comments
Is it still reproducible? |
I can't reproduce, feel free to reopen in case you're still experiencing the issue. It will be helpful if you provide the project or simplified its version. |
Same problem with 0.8.1 kotlin-platform-native plugin. Last lines in the log:
|
Checking the |
Fixed in master. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
fun String.Companion.format(format: String, args: Array): String {
var buffer = StringBuilder()
}
fun String.Companion.format(format: String, value: String): String {
var buffer = StringBuilder()
}
val sql = String.format("SELECT updatetime from %s where account='%s'", arrayOf("uinfo", "zhua"))
lead this exception:
Information:Building target 'testsdk' for architecture 'arm64' using 'iOS 11.4' sdk
Information:Running script 'Compile Kotlin/Native'
exception: java.lang.AssertionError: Assertion failed
at org.jetbrains.kotlin.backend.konan.llvm.LlvmUtilsKt.importGlobal(LlvmUtils.kt:219)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGenerator.getObjectInstanceStorage(CodeGenerator.kt:64)
at org.jetbrains.kotlin.backend.konan.llvm.FunctionGenerationContext.getObjectValue(CodeGenerator.kt:698)
at org.jetbrains.kotlin.backend.konan.llvm.objcexport.ObjCExportCodeGeneratorKt.createObjectInstanceAdapter(ObjCExportCodeGenerator.kt:1048)
at org.jetbrains.kotlin.backend.konan.llvm.objcexport.ObjCExportCodeGeneratorKt.createTypeAdapter(ObjCExportCodeGenerator.kt:950)
at org.jetbrains.kotlin.backend.konan.llvm.objcexport.ObjCExportCodeGeneratorKt.access$createTypeAdapter(ObjCExportCodeGenerator.kt:1)
at org.jetbrains.kotlin.backend.konan.llvm.objcexport.ObjCExportCodeGenerator.emitRtti$backend_native_compiler(ObjCExportCodeGenerator.kt:160)
at org.jetbrains.kotlin.backend.konan.objcexport.ObjCExport.produce$backend_native_compiler(ObjCExport.kt:74)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitModuleFragment(IrToBitcode.kt:354)
at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitModuleFragment(IrElementVisitorVoid.kt:28)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitModuleFragment(IrToBitcode.kt:263)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitModuleFragment(IrToBitcode.kt:263)
at org.jetbrains.kotlin.ir.declarations.impl.IrModuleFragmentImpl.accept(IrModuleFragmentImpl.kt:46)
at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoidKt.acceptVoid(IrElementVisitorVoid.kt:247)
at org.jetbrains.kotlin.backend.konan.llvm.IrToBitcodeKt$emitLLVM$7.invoke(IrToBitcode.kt:130)
at org.jetbrains.kotlin.backend.konan.llvm.IrToBitcodeKt$emitLLVM$7.invoke(IrToBitcode.kt)
at org.jetbrains.kotlin.backend.konan.PhaseManager$phase$$inlined$with$lambda$1.invoke(KonanPhases.kt:139)
at org.jetbrains.kotlin.backend.konan.PhaseManager$phase$$inlined$with$lambda$1.invoke(KonanPhases.kt:118)
at org.jetbrains.kotlin.konan.util.UtilKt.profileIf(Util.kt:34)
at org.jetbrains.kotlin.backend.konan.PhaseManager.phase$backend_native_compiler(KonanPhases.kt:138)
at org.jetbrains.kotlin.backend.konan.llvm.IrToBitcodeKt.emitLLVM(IrToBitcode.kt:129)
at org.jetbrains.kotlin.backend.konan.KonanDriverKt$runTopLevelPhases$4$2.invoke(KonanDriver.kt:97)
at org.jetbrains.kotlin.backend.konan.KonanDriverKt$runTopLevelPhases$4$2.invoke(KonanDriver.kt)
at org.jetbrains.kotlin.backend.konan.PhaseManager$phase$$inlined$with$lambda$1.invoke(KonanPhases.kt:139)
at org.jetbrains.kotlin.backend.konan.PhaseManager$phase$$inlined$with$lambda$1.invoke(KonanPhases.kt:118)
at org.jetbrains.kotlin.konan.util.UtilKt.profileIf(Util.kt:34)
at org.jetbrains.kotlin.backend.konan.PhaseManager.phase$backend_native_compiler(KonanPhases.kt:138)
at org.jetbrains.kotlin.backend.konan.KonanDriverKt$runTopLevelPhases$4.invoke(KonanDriver.kt:96)
at org.jetbrains.kotlin.backend.konan.KonanDriverKt$runTopLevelPhases$4.invoke(KonanDriver.kt)
at org.jetbrains.kotlin.backend.konan.PhaseManager$phase$$inlined$with$lambda$1.invoke(KonanPhases.kt:139)
at org.jetbrains.kotlin.backend.konan.PhaseManager$phase$$inlined$with$lambda$1.invoke(KonanPhases.kt:118)
at org.jetbrains.kotlin.konan.util.UtilKt.profileIf(Util.kt:34)
at org.jetbrains.kotlin.backend.konan.PhaseManager.phase$backend_native_compiler(KonanPhases.kt:138)
at org.jetbrains.kotlin.backend.konan.KonanDriverKt.runTopLevelPhases(KonanDriver.kt:90)
at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:75)
at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:42)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.java:95)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.java:50)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:88)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:66)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:34)
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:180)
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(CLITool.kt:171)
at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:197)
at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:188)
at org.jetbrains.kotlin.konan.util.UtilKt.profileIf(Util.kt:34)
at org.jetbrains.kotlin.konan.util.UtilKt.profile(Util.kt:29)
at org.jetbrains.kotlin.cli.bc.K2Native$Companion.main(K2Native.kt:190)
at org.jetbrains.kotlin.cli.bc.K2NativeKt.main(K2Native.kt:202)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:27)
Execution failed for task ':compileKonanTestsdkIos_arm64'.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
BUILD FAILED in 20s
2 actionable tasks: 2 executed
Error:Build failed in 21 s 614 ms
The text was updated successfully, but these errors were encountered: