This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Don't link ecj1 against libgcj.so.* (PR libgcj/38396)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>, Andrew Haley <aph at redhat dot com>, Paolo Bonzini <bonzini at gnu dot org>, Alexandre Oliva <aoliva at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 19 Dec 2008 11:52:05 +0100
- Subject: Re: [PATCH] Don't link ecj1 against libgcj.so.* (PR libgcj/38396)
- References: <20081218093733.GW17496@tyan-ft48-01.lab.bos.redhat.com> <20081218185918.GA2741@ins.uni-bonn.de>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Dec 18, 2008 at 07:59:19PM +0100, Ralf Wildenhues wrote:
> * Jakub Jelinek wrote on Thu, Dec 18, 2008 at 10:37:33AM CET:
> >
> > The addition of dummy ecjx.cc was needed, because otherwise ecjx would
> > be without any sources, which confuses libtool.
>
> I don't follow this statement; this should work. Please post the error
> that happens without any sources.
Without the dummy source:
/bin/sh ./libtool --tag=GCJ --mode=link /usr/src/gcc/obj89/gcc/gcj -B/usr/src/gcc/obj89/x86_64-unknown-linux-gnu/32/libjava/ -B/usr/src/gcc/obj89/gcc/ -L/usr/src/gcc/obj89/x86_64-unknown-linux-gnu/32/libjava -ffloat-store -fomit-frame-pointer -g -O2 -m32 -m32 -o ecjx -findirect-dispatch --main=org.eclipse.jdt.internal.compiler.batch.GCCMain -Djava.class.path=/usr/share/java/eclipse-ecj.jar -L/usr/src/gcc/obj89/x86_64-unknown-linux-gnu/32/libjava/.libs
libtool: link: /usr/src/gcc/obj89/gcc/gcj -B/usr/src/gcc/obj89/x86_64-unknown-linux-gnu/32/libjava/ -B/usr/src/gcc/obj89/gcc/ -ffloat-store -fomit-frame-pointer -g -O2 -m32 -m32 -o ecjx -findirect-dispatch --main=org.eclipse.jdt.internal.compiler.batch.GCCMain -Djava.class.path=/usr/share/java/eclipse-ecj.jar -L/usr/src/gcc/obj89/x86_64-unknown-linux-gnu/32/libjava -L/usr/src/gcc/obj89/x86_64-unknown-linux-gnu/32/libjava/.libs
gcj: no input files
make[4]: *** [ecjx] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/usr/src/gcc/obj89/x86_64-unknown-linux-gnu/32/libjava'
make[3]: *** [all-recursive] Error 1
which is correct, there aren't any input files on the gcj command line, only options.
Jakub