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
On Tue, Jun 3, 2008 at 10:33 AM, Hendrik Boom <hendrik at topoi.pooq.com> wrote:> 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.There is another way to resolve this, run make install, and then use the installed llvm-config, which will include a single directory containing both generated and regular header files. If *that* part doesn't work, please respond or open a PR. I'll be happy to prod llvm-config until it works correctly. However, I'm not sure trying to support all the bizarre ways ./configure and Make can build the generated files within llvm-config is a worthwhile investment of time. -Chandler> > > -- hendrik > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080603/c5157044/attachment.html>
On Tue, 03 Jun 2008 23:32:14 -0700, Chandler Carruth wrote:> > > There is another way to resolve this, run make install, and then use the > installed llvm-config, which will include a single directory containing > both generated and regular header files. If *that* part doesn't work, > please respond or open a PR. I'll be happy to prod llvm-config until it > works correctly. However, I'm not sure trying to support all the bizarre > ways ./configure and Make can build the generated files within > llvm-config is a worthwhile investment of time. > > -Chandler >I checked my installation diary (yes, I did make one) and indeed I did not perform a make install. Xhwxking back, I was not instructed to in the installation instructions in http://llvm.org/docs/GettingStarted.html. "install" is mentioned as a useful make target. Perhaps "gmake install" should be promoted to an actual installation step in the instructions. That might be the simplest fix for the problem. -- hendrik