This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compilation problems with ecj.jar


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...



Marco



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]