[Bug] Error when building ios Framework for release
- Dominant language
- Kotlin
- Stars
- 6.6k
- Forks
- 472
- Avg merge
- 3d 49m
- Merged PRs (30d)
- 4
Description
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}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
```
Contributor guide
Research direction
Reproduce the failure with the linkReleaseFreamworkIosArm64 task using Kotlin/Native compiler 2.3.20-RC, then inspect the LLVM module dump at the reported temporary path and compare the context in issue #3579. Done means the iOS release framework builds without LLVM verification errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100