Skip to content

[Bug] Error when building ios Framework for release #3876

Description

@Tommyten

This issue is probably related to #3579.

When executing linkReleaseFreamworkIosArm64 I get

Compilation failed: Invalid LLVM module
Verification errors:
    Instruction does not dominate all uses!
      %37 = call ptr @AllocInstance(ptr noundef @"kclass:arrow.core.raise.DefaultRaise", ptr noundef %6) #13, !dbg !236442
      %70 = call zeroext i1 @"kfun:arrow.core.raise.DefaultRaise#complete(){}kotlin.Boolean"(ptr %37), !dbg !236468
    Instruction does not dominate all uses!
      %37 = call ptr @AllocInstance(ptr noundef @"kclass:arrow.core.raise.DefaultRaise", ptr noundef %6) #13, !dbg !236442
      %72 = call zeroext i1 @"kfun:arrow.core.raise.DefaultRaise#complete(){}kotlin.Boolean"(ptr %37), !dbg !236473
    Instruction does not dominate all uses!
      %37 = call ptr @AllocInstance(ptr noundef @"kclass:arrow.core.raise.DefaultRaise", ptr noundef %6) #13, !dbg !236442
      %73 = call ptr @"kfun:arrow.core.raise#raisedOrRethrow__at__kotlin.coroutines.cancellation.CancellationException(arrow.core.raise.DefaultRaise){0\C2\A7<kotlin.Any?>}0:0"(ptr %67, ptr %37, ptr %12), !dbg !236474
    Instruction does not dominate all uses!
      %34 = call ptr @AllocInstance(ptr noundef @"kclass:arrow.core.raise.DefaultRaise", ptr noundef %6) #13, !dbg !236764
      %67 = call zeroext i1 @"kfun:arrow.core.raise.DefaultRaise#complete(){}kotlin.Boolean"(ptr %34), !dbg !236790
    ... (full error is available at the LLVM module dump file)

LLVM module dump: /var/folders/d9/0ld33xts28b7c78m81ynmkpr0000gn/T/kotlin_native_llvm_module_dump6770079209408892333.ll


 * Source files: 
 * Compiler version: 2.3.20-RC
 * Output kind: FRAMEWORK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions