JuliaHubOSS / llvm-cbe

resurrected LLVM "C Backend", with improvements
Other
826 stars 141 forks source link

compile_ll.sh cannot find JDK Lib files #143

Closed jsomeara closed 3 years ago

jsomeara commented 3 years ago

While running ./bin/compile_ll.sh HelloWorld.ll I have encountered an another issue.

After changing the script a bit, I was able to get Verbose mode enabled in the linker to see what was going on. Here are the logs (I have removed the less important output):

attempt to open /home/john/JLang/runtime/out/libjdk.so failed
attempt to open /home/john/JLang/runtime/out/libjdk.a failed
attempt to open /home/john/JLang//out/libjdk.so failed
attempt to open /home/john/JLang//out/libjdk.a failed
attempt to open /usr/bin/../lib/gcc/x86_64-linux-gnu/9/libjdk.so failed
attempt to open /usr/bin/../lib/gcc/x86_64-linux-gnu/9/libjdk.a failed
attempt to open /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libjdk.so failed
attempt to open /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libjdk.a failed
attempt to open /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../lib64/libjdk.so failed
attempt to open /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../lib64/libjdk.a failed
attempt to open /usr/bin/../lib/x86_64-linux-gnu/libjdk.so failed
attempt to open /usr/bin/../lib/x86_64-linux-gnu/libjdk.a failed
attempt to open /usr/bin/../lib64/libjdk.so failed
attempt to open /usr/bin/../lib64/libjdk.a failed
attempt to open /lib/x86_64-linux-gnu/libjdk.so failed
attempt to open /lib/x86_64-linux-gnu/libjdk.a failed
attempt to open /lib/../lib64/libjdk.so failed
attempt to open /lib/../lib64/libjdk.a failed
attempt to open /usr/lib/x86_64-linux-gnu/libjdk.so failed
attempt to open /usr/lib/x86_64-linux-gnu/libjdk.a failed
attempt to open /usr/lib/../lib64/libjdk.so failed
attempt to open /usr/lib/../lib64/libjdk.a failed
attempt to open /usr/lib/x86_64-linux-gnu/../../lib64/libjdk.so failed
attempt to open /usr/lib/x86_64-linux-gnu/../../lib64/libjdk.a failed
attempt to open /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../libjdk.so failed
attempt to open /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../libjdk.a failed
attempt to open /usr/bin/../lib/libjdk.so failed
attempt to open /usr/bin/../lib/libjdk.a failed
attempt to open /lib/libjdk.so failed
attempt to open /lib/libjdk.a failed
attempt to open /usr/lib/libjdk.so failed
attempt to open /usr/lib/libjdk.a failed
attempt to open /usr/local/lib/x86_64-linux-gnu/libjdk.so failed
attempt to open /usr/local/lib/x86_64-linux-gnu/libjdk.a failed
attempt to open /lib/x86_64-linux-gnu/libjdk.so failed
attempt to open /lib/x86_64-linux-gnu/libjdk.a failed
attempt to open /usr/lib/x86_64-linux-gnu/libjdk.so failed
attempt to open /usr/lib/x86_64-linux-gnu/libjdk.a failed
attempt to open /usr/lib/x86_64-linux-gnu64/libjdk.so failed
attempt to open /usr/lib/x86_64-linux-gnu64/libjdk.a failed
attempt to open /usr/local/lib64/libjdk.so failed
attempt to open /usr/local/lib64/libjdk.a failed
attempt to open /lib64/libjdk.so failed
attempt to open /lib64/libjdk.a failed
attempt to open /usr/lib64/libjdk.so failed
attempt to open /usr/lib64/libjdk.a failed
attempt to open /usr/local/lib/libjdk.so failed
attempt to open /usr/local/lib/libjdk.a failed
attempt to open /lib/libjdk.so failed
attempt to open /lib/libjdk.a failed
attempt to open /usr/lib/libjdk.so failed
attempt to open /usr/lib/libjdk.a failed
attempt to open /usr/x86_64-linux-gnu/lib64/libjdk.so failed
attempt to open /usr/x86_64-linux-gnu/lib64/libjdk.a failed
attempt to open /usr/x86_64-linux-gnu/lib/libjdk.so failed
attempt to open /usr/x86_64-linux-gnu/lib/libjdk.a failed
/usr/bin/ld: cannot find -ljdk

How would I go about installing these lib files?

jfm535 commented 3 years ago

i would suggest looking into your package manager

jsomeara commented 3 years ago

Just realized I made this issue in the wrong repo, closing now.

Sorry about this!