[GCC-XML] Parsing LLVM

Paolo Redaelli paolo.redaelli at gmail.com
Thu May 23 10:13:53 EDT 2013


I'm trying to parse recent LLVM headers but I'm not able to solve this
issue:

gccxml -fexceptions `llvm-config --cppflags --cflags --cxxflags `
plugin/c/llvm-liberty.h -fxml=llvm.gcc-xml
In file included from /usr/include/c++/4.6/bits/ios_base.h:43,
                 from /usr/include/c++/4.6/ios:43,
                 from /usr/include/c++/4.6/ostream:40,
                 from /usr/include/c++/4.6/iterator:64,
                 from /usr/lib/llvm-3.1/include/llvm/Use.h:30,
                 from /usr/lib/llvm-3.1/include/llvm/Value.h:17,
                 from /usr/lib/llvm-3.1/include/llvm/User.h:23,
                 from /usr/lib/llvm-3.1/include/llvm/Constant.h:17,
                 from /usr/lib/llvm-3.1/include/llvm/GlobalValue.h:21,
                 from /usr/lib/llvm-3.1/include/llvm/Function.h:21,
                 from /usr/lib/llvm-3.1/include/llvm/Module.h:18,
                 from /usr/lib/llvm-3.1/include/llvm-c/Core.h:24,
                 from /usr/lib/llvm-3.1/include/llvm-c/Analysis.h:22,
                 from plugin/c/llvm-liberty.h:18:
/usr/include/c++/4.6/bits/locale_classes.h: In member function 'void
std::locale::facet::_M_remove_reference() const':
/usr/include/c++/4.6/bits/locale_classes.h:414: error: exception handling
disabled, use -fexceptions to enable
make: *** [llvm.gcc-xml] Errore 1

I'm running
gccxml 0.9.0+cvs20120420-4ubuntu1
llvm-dev 1:3.1-15~exp1
gcc 4:4.6.3-1ubuntu5

Gccxml parsed previous versions of llvm without problems.
Has anyone tried to parse recent LLVM headers?
What else may I try? Building gccxml from the git repository?
Thanks in advance for you attention
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20130523/e517d381/attachment.html>


More information about the gccxml mailing list