Skip to content

Fix RoboVM linker error by adding main source set dependency to extra source set#5

Closed
Copilot wants to merge 4 commits intoquery-methodfrom
copilot/fix-action-job-error-63340726799
Closed

Fix RoboVM linker error by adding main source set dependency to extra source set#5
Copilot wants to merge 4 commits intoquery-methodfrom
copilot/fix-action-job-error-63340726799

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 12, 2026

RoboVM native compilation was failing with undefined symbols for retrofit2.http.Query annotation methods during linking.

The extra source set (introduced for the QUERY HTTP method annotation to avoid case-insensitive filesystem conflicts) lacked visibility into the main source set, preventing RoboVM from resolving annotation references during native compilation.

Changes

  • Added extraImplementation sourceSets.main.output to retrofit/build.gradle
  • Follows the existing pattern for multi-release source sets (java14, java16)
// Allow types in the main source set to be visible to the extra source set.
extraImplementation sourceSets.main.output

  • CHANGELOG.md's "Unreleased" section has been updated, if applicable.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits February 12, 2026 13:07
This fixes the RoboVM linker error where Query annotation symbols were
undefined. The extra source set now has access to the main source set
classes, similar to how the multi-release source sets are configured.

Co-authored-by: Goooler <[email protected]>
@Goooler Goooler changed the base branch from trunk to query-method February 12, 2026 13:13
Copilot AI changed the title [WIP] Fix action job error from commit c56fac0 Fix RoboVM linker error by adding main source set dependency to extra source set Feb 12, 2026
Copilot AI requested a review from Goooler February 12, 2026 13:14
@Goooler
Copy link
Copy Markdown
Owner

Goooler commented Feb 12, 2026

* Exception is:
org.gradle.api.CircularReferenceException: Circular dependency between the following tasks:
:retrofit:classes
\--- :retrofit:compileJava
     +--- :retrofit:compileExtraJava
     |    +--- :retrofit:classes (*)
     |    +--- :retrofit:compileExtraKotlin
     |    |    +--- :retrofit:classes (*)
     |    |    +--- :retrofit:compileJava (*)
     |    |    \--- :retrofit:compileKotlin
     |    |         +--- :retrofit:compileExtraJava (*)
     |    |         +--- :retrofit:compileExtraKotlin (*)
     |    |         \--- :retrofit:extraClasses
     |    |              \--- :retrofit:compileExtraJava (*)
     |    +--- :retrofit:compileJava (*)
     |    \--- :retrofit:compileKotlin (*)
     +--- :retrofit:compileExtraKotlin (*)
     +--- :retrofit:compileKotlin (*)
     \--- :retrofit:extraClasses (*)

@Goooler Goooler closed this Feb 12, 2026
@Goooler Goooler deleted the copilot/fix-action-job-error-63340726799 branch February 12, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants