[GCC-XML] Compiling gccxml with homebrewed gcc4.9

Mark Moll mmoll at rice.edu
Tue Oct 21 12:59:48 EDT 2014


I ran into the same problem. I have a hacky fix that at least makes the tests pass. After the build/install is completed, I patch ${prefix}/share/gccxml-0.9 to look like this:

GCCXML_COMPILER="/opt/local/bin/g++-mp-4.9"
GCCXML_CXXFLAGS="-m64 -pipe -Os -include /opt/local/share/gccxml-0.9/gccxml.h"

(As you can probably guess, I am using MacPorts, not HomeBrew.) The gccxml.h currently contains this:

#define __deprecated_msg(msg) deprecated
#undef __SIZEOF_INT128__
#define _POSIX_C_SOURCE 199506L
#define BOOST_MATH_DISABLE_FLOAT128 1
#define __atomic_thread_fence(order) {}
#define __atomic_signal_fence(order) {}

It is still a work in progress. I am trying to use gccxml with Py++ to generate python bindings. The code for which I am trying to generate bindings heavily relies on Boost. The installed version of Boost has been compiled with clang. This causes all kinds of problems. I am now stuck at this error:

xml_find_template_parm encountered unsupported type identifier_node
/opt/local/include/boost/ratio/detail/mpl/abs.hpp:83: sorry, unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI


-- 
Mark Moll






More information about the gccxml mailing list