From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7568 invoked by alias); 13 Feb 2015 14:48:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 7470 invoked by uid 48); 13 Feb 2015 14:48:03 -0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/64956] [5 Regression] __GXX_ABI_VERSION needs a proper definition for the 5.x releases Date: Fri, 13 Feb 2015 14:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg01488.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64956 --- Comment #6 from Jason Merrill --- (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.