Basile STARYNKEVITCH
2007-May-14 06:43 UTC
[LLVMdev] reading a module from a memory string (BitCode)
>> Apparently BitcodeReader.h is only in lib/Bitcode/Reader/ but not in >> include, so a make install does not install it.>I'm not sure what you mean... the header is in include/llvm/Bitcode.>> Is it supposed to be accessible from applications? How exactly? I feel that >> some install rule is missing; after a sudo make install, >> grep -rn BitcodeReader /usr/local/include/llvm/ >> don't find any occurrence! Is this a bug or a misunderstanding of mine?>I think there is something strange going on :) Try doing a full update >I just cleaned entirely my local CVS copy, and checked it out again. Then I mkdir _Obj64 (on Linux/Debian/Sid/AMD64 system, with g++-4.1) and did cd /usr/src/Lang/llvm/_Obj64 # prefix is the default /usr/local/ "../configure" '--enable-static' '--enable-targets=host-only' '--enable-doxygen' '--with-gnu-ld' make sudo make install But still getting find /usr/local/include/llvm -name 'Bit*eader*' /usr/local/include/llvm/Bitcode/BitstreamReader.h and grep -rni BitcodeReader /usr/local/include/llvm remains desperately silent. Obviously, I made a mistake which I cannot find yet. Any help please? Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faïencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***
Reid Spencer
2007-May-14 06:57 UTC
[LLVMdev] reading a module from a memory string (BitCode)
Hi Basile, On Mon, 2007-05-14 at 08:43 +0200, Basile STARYNKEVITCH wrote:> >> Apparently BitcodeReader.h is only in lib/Bitcode/Reader/ but not in > >> include, so a make install does not install it. > > >I'm not sure what you mean... the header is in include/llvm/Bitcode. > > >> Is it supposed to be accessible from applications? How exactly? I feel that > >> some install rule is missing; after a sudo make install, > >> grep -rn BitcodeReader /usr/local/include/llvm/ > >> don't find any occurrence! Is this a bug or a misunderstanding of mine? > > >I think there is something strange going on :) Try doing a full update > > > > I just cleaned entirely my local CVS copy, and checked it out again. > > Then I mkdir _Obj64 (on Linux/Debian/Sid/AMD64 system, with g++-4.1) and did > cd /usr/src/Lang/llvm/_Obj64 > # prefix is the default /usr/local/ > "../configure" '--enable-static' '--enable-targets=host-only' '--enable-doxygen' '--with-gnu-ld' > make > sudo make install > > But still getting > find /usr/local/include/llvm -name 'Bit*eader*' > /usr/local/include/llvm/Bitcode/BitstreamReader.h > > and grep -rni BitcodeReader /usr/local/include/llvm > remains desperately silent. > > Obviously, I made a mistake which I cannot find yet. Any help please?That all looks correct to me. The BitcodeReader.h file is a private implementation header located in lib/Bitcode/Reader and it won't get installed. The BitstreamReader.h file is the public interface to (generic) bitstream reading. The ReaderWriter.h file should also be installed in your /usr/local/include/llvm/Bitcode directory. This is the public interface to reading and writing LLVM bitcode (LLVM specific bitstream files). If this is insufficient for you then you need to talk to Chris Lattner about making additional (private) interfaces in BitcodeReader.h available in ReaderWriter.h Reid.> > Regards.
Chris Lattner
2007-May-14 07:33 UTC
[LLVMdev] reading a module from a memory string (BitCode)
On Mon, 14 May 2007, Basile STARYNKEVITCH wrote:> But still getting > find /usr/local/include/llvm -name 'Bit*eader*' > /usr/local/include/llvm/Bitcode/BitstreamReader.h > > and grep -rni BitcodeReader /usr/local/include/llvm > remains desperately silent. > > Obviously, I made a mistake which I cannot find yet. Any help please?You want: include/llvm/Bitcode/ReaderWriter.h -Chris -- http://nondot.org/sabre/ http://llvm.org/