This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: compilation problems with ecj.jar
Marco Trudel wrote:
Andrew Haley wrote:
Marco Trudel writes:
> Tom Tromey wrote:
> >>>>>> "Marco" == Marco Trudel <mtrudel@gmx.ch> writes:
> > > > Marco> Well, I still don't see why the host of ecj is the
configured target
> > Marco> instead of the configured host, but I guess I don't need
to understand
> > Marco> that.
> > > > The intent of the code is that the installed be compiled
with the
> > build-x-host compiler, since ecj1 must run on the host. That
conforms
> > pretty well to what I see in configure:
> > > > GCJ_FOR_ECJX="${with_cross_host}-gcj"
> > Yes, this is what I would expect. With my host=Linux,
target=minGW and > build=Linux, it evaluates to
"i686-pc-linux-gnu-gcj". But the ecj > compilation is still somehow
broken, the command is:
> > i686-pc-linux-gnu-gcj -o ecjx.exe -findirect-dispatch >
--main=org.eclipse.jdt.internal.compiler.batch.GCCMain >
/usr/local/src/gcc/libjava/.././libjava/../ecj.jar
> > Either a wrong gcj is choosen or the output should be named
"ecj" > instead of "ecj.exe". Furthermore, the compilation fails:
> > make[3]: Entering directory >
`/home/Marco/Desktop/compile-lin-win/gcc-build/i686-pc-mingw32/libjava'
> i686-pc-linux-gnu-gcj -o ecjx.exe -findirect-dispatch >
--main=org.eclipse.jdt.internal.compiler.batch.GCCMain >
/usr/local/src/gcc/libjava/.././libjava/../ecj.jar
Does i686-pc-linux-gnu-gcj work at all? Can you try it with a simple
testcase?
Yes. It works and compiles .java and .class files...
I now stopped to include ecj.jar in the main compilation and will attend
to that later when I'm finally able to compile a host=mingw target=mingw
compiler. I think it's very likely that I'll just compile ecj.jar myself
after the main compilation.
Shall I add a bugreport so that this won't be forgotten?
Marco