[LLVMdev] Problems with iterator.h
Hendrik Boom
hendrik at topoi.pooq.com
Tue Jun 3 09:07:51 PDT 2008
On Tue, 03 Jun 2008 15:31:36 +0000, Hendrik Boom wrote:
> Just finished the compiling llvm without llvm-gcc from svn.
>
> Tried it out. Got
>
> g++ -o hlvm.o -c -I/farhome/hendrik/dv/llvm/llvm/include -D_DEBUG
> -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -g -Woverloaded-virtual hlvm.cpp In
> file included from
> /farhome/hendrik/dv/llvm/llvm/include/llvm/DerivedTypes.h: 21,
> from hlvm.cpp:1:
> /farhome/hendrik/dv/llvm/llvm/include/llvm/Type.h:19:31: error:
> llvm/ADT/iterato r.h: No such file or directory
>
> and other similar messages.
>
> Looked in /farhome/hendrik/dv/llvm/llvm/include/llvm/ADT and found two
> relevant-looking files:
>
> -rw-r--r-- 1 hendrik sbox 1328 2008-06-03 10:00 iterator -rw-r--r--
> 1 hendrik sbox 2418 2008-06-03 10:00 iterator.h.in
>
> (a) What should I do now?
>
> (b) Is this a bug in the Makefiles? It looks as if something should
> have
> built iterator.h from iterator.h.in, but nothing did.
>
> -- hendrik
I found it! In the OBJ-ROOT.
hendrik at lovesong:~/dv/llvm/obj$ ls ~/dv/llvm/obj/include/llvm/ADT
hash_map.h hash_set.h iterator.h
hendrik at lovesong:~/dv/llvm/obj$
I obtained the options from llvm-config --cxxflags. So the problem
seems to be that llvm-config didn't know about the include files in
the object root.
-- hendrik
More information about the llvm-dev
mailing list