Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Kotlin/Native builds on MacOS #9

Open
milosmns opened this issue Oct 30, 2023 · 0 comments · May be fixed by #12
Open

Fix Kotlin/Native builds on MacOS #9

milosmns opened this issue Oct 30, 2023 · 0 comments · May be fixed by #12
Assignees
Labels
Bug Something isn't working Help wanted Please assist if you can
Milestone

Comments

@milosmns
Copy link
Owner

milosmns commented Oct 30, 2023

What's the problem?

The Mac builds of Kotlin/Native started failing when some of the code was added. Unfortunately, it was too much code to be able to pinpoint what exactly the compiler throws up on.

⚠️ Update: here's the Jet Brains bug report.


Error 1

Here's the first error message that appeared early on:

 * Compiler version: 1.9.0
 * Output kind: PROGRAM

e: java.lang.IllegalStateException: IrClassPublicSymbolImpl
  for components.data/CodeReviewChange|null[0] is already bound:
  CLASS CLASS name:CodeReviewChange modality:FINAL
  visibility:public [data] superTypes:[utils.HasSimpleFormat]

You can see the full stacktrace in this Action output.


Error 2

The first error has not (yet) been fixed. However, with even more added code, here's the second error message that appeared recently:

 * Compiler version: 1.9.10
 * Output kind: PROGRAM

e: java.lang.IllegalStateException: Could not resolveFakeOverride()
  for FUN FAKE_OVERRIDE name:URLSession visibility:public 
  modality:OPEN <> 
  
  (
    $this:platform.Foundation.NSURLSessionTaskDelegateProtocol,
    session:platform.Foundation.NSURLSession,
    task:platform.Foundation.NSURLSessionTask,
    needNewBodyStreamFromOffset:kotlin.Long{ platform.posix.int64_t },
    completionHandler:kotlin.Function1 
      <platform.Foundation.NSInputStream?, kotlin.Unit>
  )
  returnType:kotlin.Unit [fake_override]

You can see the full stacktrace in this Action output.


What should we do?

Let's fix that! 😄

It's still easy to reproduce, take a look at #12.
Worst case scenario, let's report a bug to Jet Brains and see if they can help.

@milosmns milosmns added the Idea When you have an improvement request label Oct 30, 2023
@milosmns milosmns added this to the v1 milestone Oct 30, 2023
@milosmns milosmns added Bug Something isn't working Help wanted Please assist if you can and removed Idea When you have an improvement request labels Oct 30, 2023
@milosmns milosmns linked a pull request Oct 30, 2023 that will close this issue
@milosmns milosmns self-assigned this Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Help wanted Please assist if you can
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant