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
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. > > -- hendrikI 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
Hi Hendrik,> -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.inDid you run AutoGen.sh (not sure about case). I think that's needed when compiling from svn, and it should generate the makefiles for building iterator.h. I think. Gr. Matthijs -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080603/71a355fc/attachment.sig>
On Tue, 03 Jun 2008 18:48:09 +0200, Matthijs Kooijman wrote:> Hi Hendrik, > >> -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 > Did you run AutoGen.sh (not sure about case). I think that's needed when > compiling from svn, and it should generate the makefiles for building > iterator.h. I think.I followed the instructions in http://llvm.org/docs/GettingStarted.html#starting. Since then I've found the include files under the object root. Naturally, that's where generated files go. The problem is now that llvm- config --cxxflags doesn't know about the include files under the object root. Of course there's an easy workaround -- just specify an extra include directory on my g++ line, but it should probably get fixed in the SVN sources. -- hendrik