I've actually tried to compile both LLVM and my lib with -frtti with same results. On Dec 10, 2012, at 21:57, Jim Grosbach <grosbach at apple.com> wrote:> Llvm typically doesn't build with RTTI enabled. Perhaps that's what you're running into? > > Jim-- Vladimir Pouzanov http://www.farcaller.net/ -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4454 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121210/9ee47c04/attachment.bin>
Vladimir Pouzanov <farcaller at gmail.com> writes:> On Dec 10, 2012, at 21:57, Jim Grosbach <grosbach at apple.com> wrote: >> Llvm typically doesn't build with RTTI enabled. Perhaps that's what >> you're running into? >> > I've actually tried to compile both LLVM and my lib with -frtti with > same results.Please show the exact commands you used for building LLVM with RTTI support. It would also help if you repeat your recipe for building LLVM but appending to your `make' command the text "VERBOSE=1" and then show the compiler command line for one .cpp file (lib/MC/MCAsmInfo.cpp is the best candidate.)
> -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] > On Behalf Of Óscar Fuentes > > Vladimir Pouzanov <farcaller at gmail.com> writes: > > > On Dec 10, 2012, at 21:57, Jim Grosbach <grosbach at apple.com> wrote: > >> Llvm typically doesn't build with RTTI enabled. Perhaps that's what > >> you're running into? > >> > > I've actually tried to compile both LLVM and my lib with -frtti with > > same results. > > Please show the exact commands you used for building LLVM with RTTI > support. > > It would also help if you repeat your recipe for building LLVM but appending > to your `make' command the text "VERBOSE=1" and then show the compiler > command line for one .cpp file (lib/MC/MCAsmInfo.cpp is the best > candidate.) >There is (was?) a CMake variable for this if you're going that route. Setting LLVM_REQUIRES_RTTI=1 enabled an RTTI build that I haven't had issues with. I don't know what the ./configure equivalent is, sorry. -Gordon> _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Good. Copying llvmdev for the record. Vladimir Pouzanov <farcaller at gmail.com> writes:> Sorted it out. > > In the end, the working build commands for me were: > > % export CXXFLAGS=-frtti > % ../llvm-3.1/configure > --prefix=/Users/farcaller/Developer/Active/llvm-src/install-3.1 > --enable-debug-runtime --enable-debug-symbols --disable-docs > --disable-doxygen --enable-shared > % make -j9 REQUIRES_RTTI=1