https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64956
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Matthias Klose from comment #3) > #if !defined(__GXX_ABI_VERSION) || __GXX_ABI_VERSION != 1002 > #error The C++ ABI version of compiler you are using does not match > #error that of the compiler used to build the library. The versions > #error must match or your program will not work correctly. > #error The Xapian library was built with g++ 4.9.1 > #endif I would expect that Xapian built with -fabi-version=2 and -fabi-version=8 should be compatible; the only changes to the compiler ABI are mangling, which with a template library probably only leads to a bit of code bloat from duplicated functions with different names. I suppose there could be runtime issues if there are variables mangled differently, but that's less likely.