This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Compiling for multiple Linux distros
- From: Andrew Haley <aph at redhat dot com>
- To: Donal Riordan <riordan at effor-dev dot org>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 13 Mar 2008 17:42:22 +0000
- Subject: Re: Compiling for multiple Linux distros
- References: <47D9618A.5070702@effor-dev.org>
Donal Riordan wrote:
> Hello all,
>
> I'm trying to compile a simple hello world program to an executable that
> will work on both my test distros; Ubuntu 7.10 & Fedora 8. Everything
> works fine when I compile and execute on the same system but I cannot
> execute a binary on Ubuntu when it was compiled in Fedora and vice-versa.
>
> Running the Fedora binary on Ubuntu generates the error:
> error while loading shared libraries: libgcj.so.8rh: cannot open shared
> object file: No such file or directory
>
> Running the Ubuntu binary on Fedora generates:
> libgcj failure: gcj linkage error.
> Incorrect library ABI version detected. Aborting.
Compile everything with -findirect-dispatch.
Andrew.