This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] [java] bump libgcj soname
- From: Andrew Haley <aph at redhat dot com>
- To: Matthias Klose <doko at ubuntu dot com>, Jakub Jelinek <jakub at redhat dot com>
- Cc: GCJ-patches <java-patches at gcc dot gnu dot org>, "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>
- Date: Sat, 2 Jan 2016 15:39:57 +0000
- Subject: Re: [patch] [java] bump libgcj soname
- Authentication-results: sourceware.org; auth=none
- References: <55365991 dot 4030806 at ubuntu dot com> <20150421141125 dot GW1725 at tucnak dot redhat dot com> <55365BB2 dot 4080603 at ubuntu dot com> <20150421141924 dot GX1725 at tucnak dot redhat dot com> <55365EE0 dot 8070202 at ubuntu dot com> <20150421143747 dot GY1725 at tucnak dot redhat dot com> <5687E158 dot 7000401 at ubuntu dot com>
On 02/01/16 14:40, Matthias Klose wrote:
>
> preparing for a test rebuild of the archive, and trying to run gcj-dbtool (from
> GCC 5) with libgcj16 (from GCC 6):
>
> $ gcj-dbtool -n /tmp/foo.db
> libgcj failure: gcj linkage error.
> Incorrect library ABI version detected. Aborting.
>
> Aborted (core dumped)
>
> natClassLoader.cc:_Jv_CheckABIVersion checks the ABI version, which is defined as
>
> libjava/include/jvm.h:#define GCJ_CXX_ABI_VERSION (__GNUC__ * 100000 +
> __GNUC_MINOR__ * 1000)
>
> so this will be seen with everything directly linked to libgcj with a libgcj16
> upgraded to GCC 6. So what to do? Bump the soname, or discard this check?
I'd bump the soname.
> In any case, GCJ_CXX_ABI_VERSION should be changed to not include __GNUC_MINOR__
> anymore. Maybe for the gcc-5-branch, set it unconditionally to 3 so that it
> won't change anymore with future releases from the gcc-5 branch?
That's safe only if Classpath and libgcj are not changed at all. I guess
we can guarantee that on the gcc-5 branch?
Andrew.