LLJVM make problem

Hi fellow devs,

I was looking for converting LLVM IR to JavaBytecode by using lljvm project of https://github.com/davidar/lljvm

They don't seem to compile, once i run make in the root directory it give

me the error :

cd include && make all
make[1]: Entering directory `/home/rtiwari1/llvm_new/lljvm/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/rtiwari1/llvm_new/lljvm/include'
cd backend && make all
make[1]: Entering directory `/home/rtiwari1/llvm_new/lljvm/backend'
c++ -I/usr/local/include -fPIC -fvisibility-inlines-hidden -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -g -fno-exceptions -fno-rtti -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -L/usr/local/lib -lLLVMSelectionDAG -lLLVMCodeGen -lLLVMTarget -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMObject -lLLVMMCParser -lLLVMMC -lLLVMBitReader -lLLVMCore -lLLVMBinaryFormat -lLLVMSupport -lLLVMDemangle -c main.cpp
In file included from main.cpp:23:0:
backend.h:29:44: fatal error: llvm/Analysis/ConstantsScanner.h: No such file or directory
#include <llvm/Analysis/ConstantsScanner.h>
                                            ^
compilation terminated.
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/rtiwari1/llvm_new/lljvm/backend'
make: *** [all] Error 2

Any reincarnated version of this or similar or any help to get it running

please?

Greatly appreciated.

Thanks & Regards,

Ratnesh

Tiwari, Ratnesh Kumar via llvm-dev <llvm-dev@lists.llvm.org> 於 2018年7月31日 下午3:00 寫道:

Hi fellow devs,

I was looking for converting LLVM IR to JavaBytecode by using lljvm project of https://github.com/davidar/lljvm

They don't seem to compile, once i run make in the root directory it give
me the error :

cd include && make all
make[1]: Entering directory `/home/rtiwari1/llvm_new/lljvm/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/rtiwari1/llvm_new/lljvm/include'
cd backend && make all

The README of the project has already stated that running make at top level project is all you need.

make[1]: Entering directory `/home/rtiwari1/llvm_new/lljvm/backend'
c++ -I/usr/local/include -fPIC -fvisibility-inlines-hidden -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -g -fno-exceptions -fno-rtti -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -L/usr/local/lib -lLLVMSelectionDAG -lLLVMCodeGen -lLLVMTarget -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMObject -lLLVMMCParser -lLLVMMC -lLLVMBitReader -lLLVMCore -lLLVMBinaryFormat -lLLVMSupport -lLLVMDemangle -c main.cpp
In file included from main.cpp:23:0:
backend.h:29:44: fatal error: llvm/Analysis/ConstantsScanner.h: No such file or directory
#include <llvm/Analysis/ConstantsScanner.h>

Have you installed LLVM 2.7 in your system, just as the README says? LLJVM doesn’t seem to include their own LLVM tree.