polyglot-compiler / JLang

JLang: Ahead-of-time compilation of Java programs to LLVM
http://polyglot-compiler.github.io/JLang/
Other
284 stars 29 forks source link

java.lang.UnsatisfiedLinkError: no jniLLVM in java.library.path #83

Closed whisperzqh closed 1 year ago

whisperzqh commented 1 year ago

Hello, when I was doing the last operation 'make' to build the JLang compiler and runtime, something wrong happened. --- Building runtime --- make[1]: Entering directory '/home/JLang/runtime' Compiling 7 Java files with javac (.java --> .class) Picked up JAVA_TOOL_OPTIONS: -Xmx1g Compiling 7 Java files with JLang (.java --> .ll) Picked up JAVA_TOOL_OPTIONS: -Xmx1g Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniLLVM in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860) at java.lang.Runtime.loadLibrary0(Runtime.java:871) at java.lang.System.loadLibrary(System.java:1124) at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1191) at org.bytedeco.javacpp.Loader.load(Loader.java:953) at org.bytedeco.javacpp.Loader.load(Loader.java:854) at org.bytedeco.javacpp.LLVM.<clinit>(LLVM.java:10) at jlang.LLVMEmitted$LLVMOutputPass.run(LLVMEmitted.java:62) at polyglot.frontend.Scheduler.runPass(Scheduler.java:640) at polyglot.frontend.Scheduler.runGoal(Scheduler.java:530) at polyglot.frontend.Scheduler.attemptGoal(Scheduler.java:475) at polyglot.frontend.Scheduler.attemptGoal(Scheduler.java:448) at polyglot.frontend.Scheduler.attemptGoal(Scheduler.java:399) at polyglot.frontend.Scheduler.runToCompletion(Scheduler.java:331) at polyglot.ext.jl5.JL5Scheduler.runToCompletion(JL5Scheduler.java:335) at polyglot.frontend.Compiler.runToGoal(Compiler.java:237) at polyglot.frontend.Compiler.compile(Compiler.java:189) at polyglot.frontend.Compiler.compileFiles(Compiler.java:179) at polyglot.main.Main.start(Main.java:182) at polyglot.main.Main.start(Main.java:138) at jlang.Main.main(Main.java:16) Caused by: java.lang.UnsatisfiedLinkError: no LLVM-5.0 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860) at java.lang.Runtime.loadLibrary0(Runtime.java:871) at java.lang.System.loadLibrary(System.java:1124) at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1191) at org.bytedeco.javacpp.Loader.load(Loader.java:940) ... 16 more Makefile:47: recipe for target 'out/ll_stamp' failed make[1]: *** [out/ll_stamp] Error 1 make[1]: Leaving directory '/home/JLang/runtime' Makefile:80: recipe for target 'runtime' failed make: *** [runtime] Error 2 I used find -name to find the location of jniLLVM and LLVM-5.0 but nothing was found and I have no idea about the solution.