Skip to content

Upgrade to v8.x causes native build error #600

Closed

Description

@Obirah

Hi,

we are heavily using your library in our Quarkus Kubernetes Operators that are built natively (with Mandrel (GraalVM)). When trying to upgrade to version 8 of the library, we're getting the following native build error:

Error: Substitution target for io.github.oshai.kotlinlogging.internal.Target_io_github_oshai_kotlinlogging_internal_KLoggerFactory$Companion is not loaded. Use field `onlyWith` in the `TargetClass` annotation to make substitution only active when needed.

Internal exception: com.oracle.svm.core.util.UserError$UserException: Substitution target for io.github.oshai.kotlinlogging.internal.Target_io_github_oshai_kotlinlogging_internal_KLoggerFactory$Companion is not loaded. Use field `onlyWith` in the `TargetClass` annotation to make substitution only active when needed.

We will investigate further, if there's a fix we can use to mitigate this. I just wanted to ask in parallel if there's maybe something that can be done on the library side to fix this problem?

Activity

  1. github-actions commented on Apr 17, 2026

    @github-actions

    Thank you for reporting an issue. See the wiki for documentation and slack for questions.

  2. CaelumF commented on May 1, 2026

    @CaelumF

    I'm also facing this issue and curious if anyone found a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions