Skip to content

Hello world in Clojure #438

Closed
Closed
@danielsz

Description

@danielsz

This is an amazing project. Thank you for sharing this with the world.

I've tried to compile a hello world program with Clojure, and encountered an issue that comes up when Clojure itself is being compiled.

[ERROR] Failed to execute goal de.mirkosertic.bytecoder:bytecoder-mavenplugin:2020-07-29:compile (default) on project bar: Error running bytecoder: Error linking class bar.core: Error linking class clojure.lang.RT: Error linking class clojure.lang.Compiler: Error linking class clojure.lang.Reflector: Cannot find static method lookup in java/lang/invoke/MethodHandles with signature java.lang.invoke.MethodHandles$Lookup() -> [Help 1]

It is an issue that also came up previously when people tried to use the Graal native image on Clojure code. The good news is that the fix is known, the bad news is that the latter is enabled by a GraalVM feature called substitutions.

The comprehensive description + fix was submitted by @borkdude and I'll cite the reference here: oracle/graal#2214

It would be awesome if we could get past this hurdle and compile Clojure to wasm. Thank you in all cases!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions