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

Makefile.local build fails vs makefile #215

Open
eugenesvk opened this issue Mar 19, 2023 · 0 comments
Open

Makefile.local build fails vs makefile #215

eugenesvk opened this issue Mar 19, 2023 · 0 comments

Comments

@eugenesvk
Copy link

The extra options -J-Dclojure.compiler.elide-meta=[:doc :file :line :added], specifically :line :added are unknown

/Library/Java/JavaVirtualMachines/openjdk19-graalvm/Contents/Home/bin/native-image -H:+ReportUnsupportedElementsAtRuntime --no-server -J-Dclojure.compiler.elide-meta=[:doc :file :line :added] -J-Dclojure.spec.skip-macros=true -Djdk.internal.lambda.eagerlyInitialize=false -jar target/karabiner-configurator-0.1.0-standalone.jar
Warning: Ignoring server-mode native-image argument --no-server.
Error: Unknown arguments: :line, :added]
make[2]: *** [bin] Error 1

Removing those leads to

Failed generating ':file]' after 11.5s.

Removing that one proceeds with initialization fine, but then breaks

Fatal error: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing com.fasterxml.jackson.core.JsonFactory.<clinit>()
Parsing context: <no parsing context available>

Removing the whole -J-Dclojure.compiler.elide-meta didn't help

Tweaking the regular makefile to the same native-image path builds fine

Or adding --initialize-at-build-time seems to do the trick
Not sure what the proper substitute for the removed options is and what the last flag does, but would be nice is the template/instructions were updated to whatever is correct

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

No branches or pull requests

1 participant