[Mesa-dev] [PATCH] build: remove forced -fno-rtti

Alexander von Gluck kallisti5 at unixzen.com
Thu Oct 17 02:41:39 CEST 2013


On Wed, 2013-10-16 at 18:32 -0500, Alexander von Gluck wrote:
> > Jan Vesely wrote:
> > > We've seen no other complaints on this issue, so likely it is
> something
> > > environmental on your end. (unless an older version of LLVM has an
> > > issue... which is what i'm trying to figure out)
> > 
> > Hi Alex,
> > 
> > I ran into the same issue with the following setup:
> > git llvm is built using cmake in a separate build directory,
> > while I can see in */flags.make (in build dir) and */link.txt that
> > CXX_FLAGS do include -fno-rtti
> > after compiling and installing llvm in local dir the output of
> > llvm-config --cxx-flags is without -fno-rtti
> 
> Thanks, thats the info I was looking for :-)
> 
> I'll reach out to the llvm guys and see if we figure out a solution
> before the next llvm release. Do you know if it effects versions
> previous to mainline llvm?

Confirmed, it seems a bug has been open since 2012 on it:
http://llvm.org/bugs/show_bug.cgi?id=14200

Since this is due to a bug in llvm, I still think this is the correct
behaviour on our end.

Is it enough to recommend anyone using cmake to build llvm simply set
-fno-rtti in CXXFLAGS prior to building mesa? All of the packaged
versions of llvm seem to be using llvm autotools (so they don't see this
issue)

 -- Alex



More information about the mesa-dev mailing list