Hi Chris,here I am building llvm 2.7 . But I am facing error while doing
"make" . Also attached a log file here of make.
make[3]: Entering directory
`/home/rtiwari1/llvm_project/llvm/lib/Transforms/Scalar'
llvm[3]: Compiling LoopStrengthReduce.cpp for Release build
LoopStrengthReduce.cpp: In member function ‘llvm::Value*
{anonymous}::LSRInstance::Expand(const {anonymous}::LSRFixup&, const
{anonymous}::Formula&, llvm::BasicBlock::iterator,
llvm::SCEVExpander&, llvm::SmallVectorImpl<llvm::WeakVH>&) const’:
LoopStrengthReduce.cpp:2820:52: error: call of overloaded
‘next(llvm::BasicBlock::iterator)’ is ambiguous
BetterPos = next(BasicBlock::iterator(Inst));
^
LoopStrengthReduce.cpp:2820:52: note: candidates are:
In file included from
/home/rtiwari1/llvm_project/llvm/include/llvm/CodeGen/SelectionDAGNodes.h:27:0,
from
/home/rtiwari1/llvm_project/llvm/include/llvm/Target/TargetLowering.h:27,
from LoopStrengthReduce.cpp:74:
/home/rtiwari1/llvm_project/llvm/include/llvm/ADT/STLExtras.h:151:13:
note: ItTy llvm::next(ItTy) [with ItTy
llvm::ilist_iterator<llvm::Instruction>]
inline ItTy next(ItTy it)
^
In file included from /usr/include/c++/4.8/iterator:62:0,
from /home/rtiwari1/llvm_project/llvm/include/llvm/Use.h:30,
from /home/rtiwari1/llvm_project/llvm/include/llvm/Value.h:18,
from /home/rtiwari1/llvm_project/llvm/include/llvm/User.h:22,
from
/home/rtiwari1/llvm_project/llvm/include/llvm/Constant.h:17,
from
/home/rtiwari1/llvm_project/llvm/include/llvm/Constants.h:24,
from LoopStrengthReduce.cpp:58:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note:
_ForwardIterator std::next(_ForwardIterator, typename
std::iterator_traits<_Iter>::difference_type) [with _ForwardIterator
llvm::ilist_iterator<llvm::Instruction>; typename
std::iterator_traits<_Iter>::difference_type = long int]
next(_ForwardIterator __x, typename
^
/bin/rm: cannot remove
‘/home/rtiwari1/llvm_project/llvm/lib/Transforms/Scalar/Release/LoopStrengthReduce.d.tmp’:
No such file or directory
make[3]: ***
[/home/rtiwari1/llvm_project/llvm/lib/Transforms/Scalar/Release/LoopStrengthReduce.o]
Error 1
make[3]: Leaving directory
`/home/rtiwari1/llvm_project/llvm/lib/Transforms/Scalar'
make[2]: *** [Scalar/.makeall] Error 2
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib/Transforms'
make[1]: *** [Transforms/.makeall] Error 2
make[1]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib'
make: *** [all] Error 1
Please help me to resolve this error as I am not found this soloution
anywhere.
Thanks & Regards,
Ratnesh
On Thu, Aug 2, 2018 at 1:52 AM, Ratnesh Tiwari <ratneshtr09 at gmail.com>
wrote:
> Thanks, I am building then llvm 2.7.
>
> On Wed, Aug 1, 2018, 11:03 PM Chris Bieneman <chris.bieneman at
me.com>
> wrote:
>
>> That source file was removed from LLVM in r232397 on March 16, 2015.
>>
>> It looks like lljvm hasn't been updated in a long time. LLVM's
C++ APIs
>> are not stable, so there is no expectation that a project built against
>> LLVM's C++ API in 2015 would build or reasonably function against
LLVM
>> trunk.
>>
>> The project probably works against LLVM 3.6.2 which was (I believe) the
>> last LLVM release to contain that header file.
>>
>> -Chris
>>
>> On Jul 31, 2018, at 12:05 PM, Ratnesh Tiwari via llvm-dev <
>> llvm-dev at lists.llvm.org> wrote:
>>
>> It is similar to the problem asked by *Ammar Naqvi via llvm-dev Sat
>> Mar 26 23:29:03 PDT 2016*
>>
>> *http://lists.llvm.org/pipermail/llvm-dev/2016-March/097665.html
>>
<http://lists.llvm.org/pipermail/llvm-dev/2016-March/097665.html>*
>>
>> Thank you.
>>
>>
>>
>> On Wed, Aug 1, 2018 at 12:32 AM, Ratnesh Tiwari <ratneshtr09 at
gmail.com>
>> wrote:
>>
>>> 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
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20180802/3c434557/attachment-0001.html>
-------------- next part --------------
make[1]: Entering directory `/home/rtiwari1/llvm_project/llvm/lib/System'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib/System'
make[1]: Entering directory `/home/rtiwari1/llvm_project/llvm/lib/Support'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib/Support'
make[1]: Entering directory `/home/rtiwari1/llvm_project/llvm/utils'
make[2]: Entering directory
`/home/rtiwari1/llvm_project/llvm/utils/TableGen'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/utils/TableGen'
make[2]: Entering directory `/home/rtiwari1/llvm_project/llvm/utils/fpcmp'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/utils/fpcmp'
make[2]: Entering directory
`/home/rtiwari1/llvm_project/llvm/utils/PerfectShuffle'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/rtiwari1/llvm_project/llvm/utils/PerfectShuffle'
make[2]: Entering directory
`/home/rtiwari1/llvm_project/llvm/utils/FileCheck'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/rtiwari1/llvm_project/llvm/utils/FileCheck'
make[2]: Entering directory
`/home/rtiwari1/llvm_project/llvm/utils/FileUpdate'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/rtiwari1/llvm_project/llvm/utils/FileUpdate'
make[2]: Entering directory `/home/rtiwari1/llvm_project/llvm/utils/count'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/utils/count'
make[2]: Entering directory `/home/rtiwari1/llvm_project/llvm/utils/not'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/utils/not'
make[2]: Entering directory
`/home/rtiwari1/llvm_project/llvm/utils/unittest'
make[3]: Entering directory
`/home/rtiwari1/llvm_project/llvm/utils/unittest/googletest'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/rtiwari1/llvm_project/llvm/utils/unittest/googletest'
make[3]: Entering directory
`/home/rtiwari1/llvm_project/llvm/utils/unittest/UnitTestMain'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/rtiwari1/llvm_project/llvm/utils/unittest/UnitTestMain'
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/utils/unittest'
make[1]: Leaving directory `/home/rtiwari1/llvm_project/llvm/utils'
make[1]: Entering directory `/home/rtiwari1/llvm_project/llvm/lib/VMCore'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib/VMCore'
make[1]: Entering directory `/home/rtiwari1/llvm_project/llvm/lib'
make[2]: Entering directory `/home/rtiwari1/llvm_project/llvm/lib/VMCore'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib/VMCore'
make[2]: Entering directory `/home/rtiwari1/llvm_project/llvm/lib/AsmParser'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib/AsmParser'
make[2]: Entering directory `/home/rtiwari1/llvm_project/llvm/lib/Bitcode'
make[3]: Entering directory
`/home/rtiwari1/llvm_project/llvm/lib/Bitcode/Reader'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/rtiwari1/llvm_project/llvm/lib/Bitcode/Reader'
make[3]: Entering directory
`/home/rtiwari1/llvm_project/llvm/lib/Bitcode/Writer'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/rtiwari1/llvm_project/llvm/lib/Bitcode/Writer'
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib/Bitcode'
make[2]: Entering directory `/home/rtiwari1/llvm_project/llvm/lib/Archive'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib/Archive'
make[2]: Entering directory `/home/rtiwari1/llvm_project/llvm/lib/Analysis'
make[3]: Entering directory
`/home/rtiwari1/llvm_project/llvm/lib/Analysis/IPA'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/rtiwari1/llvm_project/llvm/lib/Analysis/IPA'
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib/Analysis'
make[2]: Entering directory
`/home/rtiwari1/llvm_project/llvm/lib/Transforms'
make[3]: Entering directory
`/home/rtiwari1/llvm_project/llvm/lib/Transforms/Utils'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/rtiwari1/llvm_project/llvm/lib/Transforms/Utils'
make[3]: Entering directory
`/home/rtiwari1/llvm_project/llvm/lib/Transforms/Instrumentation'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/rtiwari1/llvm_project/llvm/lib/Transforms/Instrumentation'
make[3]: Entering directory
`/home/rtiwari1/llvm_project/llvm/lib/Transforms/Scalar'
llvm[3]: Compiling LoopStrengthReduce.cpp for Release build
LoopStrengthReduce.cpp: In member function ‘llvm::Value*
{anonymous}::LSRInstance::Expand(const {anonymous}::LSRFixup&, const
{anonymous}::Formula&, llvm::BasicBlock::iterator, llvm::SCEVExpander&,
llvm::SmallVectorImpl<llvm::WeakVH>&) const’:
LoopStrengthReduce.cpp:2820:52: error: call of overloaded
‘next(llvm::BasicBlock::iterator)’ is ambiguous
BetterPos = next(BasicBlock::iterator(Inst));
^
LoopStrengthReduce.cpp:2820:52: note: candidates are:
In file included from
/home/rtiwari1/llvm_project/llvm/include/llvm/CodeGen/SelectionDAGNodes.h:27:0,
from
/home/rtiwari1/llvm_project/llvm/include/llvm/Target/TargetLowering.h:27,
from LoopStrengthReduce.cpp:74:
/home/rtiwari1/llvm_project/llvm/include/llvm/ADT/STLExtras.h:151:13: note: ItTy
llvm::next(ItTy) [with ItTy = llvm::ilist_iterator<llvm::Instruction>]
inline ItTy next(ItTy it)
^
In file included from /usr/include/c++/4.8/iterator:62:0,
from /home/rtiwari1/llvm_project/llvm/include/llvm/Use.h:30,
from /home/rtiwari1/llvm_project/llvm/include/llvm/Value.h:18,
from /home/rtiwari1/llvm_project/llvm/include/llvm/User.h:22,
from
/home/rtiwari1/llvm_project/llvm/include/llvm/Constant.h:17,
from
/home/rtiwari1/llvm_project/llvm/include/llvm/Constants.h:24,
from LoopStrengthReduce.cpp:58:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note:
_ForwardIterator std::next(_ForwardIterator, typename
std::iterator_traits<_Iter>::difference_type) [with _ForwardIterator =
llvm::ilist_iterator<llvm::Instruction>; typename
std::iterator_traits<_Iter>::difference_type = long int]
next(_ForwardIterator __x, typename
^
/bin/rm: cannot remove
‘/home/rtiwari1/llvm_project/llvm/lib/Transforms/Scalar/Release/LoopStrengthReduce.d.tmp’:
No such file or directory
make[3]: ***
[/home/rtiwari1/llvm_project/llvm/lib/Transforms/Scalar/Release/LoopStrengthReduce.o]
Error 1
make[3]: Leaving directory
`/home/rtiwari1/llvm_project/llvm/lib/Transforms/Scalar'
make[2]: *** [Scalar/.makeall] Error 2
make[2]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib/Transforms'
make[1]: *** [Transforms/.makeall] Error 2
make[1]: Leaving directory `/home/rtiwari1/llvm_project/llvm/lib'
make: *** [all] Error 1
s