Matthias,
   I don't know why you are surprised that no ecj1 is built. The 
build process is supposed to use ecj.jar if a pre-existing
ecj package isn't installed...

http://gcc.gnu.org/ml/java/2006-12/msg00070.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32712

I am loath to attempt to backport too many changes
that work in gcc 4.4 because we can't be certain all
the required changes to support them exist in gcc 4.3.
It might be more sensible to examine if we can create
an ecj package for fink that gcc43 could use in its build.
             Jack
ps The existing gcc43-4.3.0-1001 package builds pdftk fine
here using ecj.jar instead of ecj1. Also, remember there
is a limit to the number of times I can rev gcc43 without
folks rebelling. I already get enough complaints that they
have to build java support in the first place.


On Sun, Mar 23, 2008 at 08:13:42PM +0100, Matthias Ringwald wrote:
> Hi Jack
>
> in gcc43 -1001, no ecj1 is built.  I don't why ecj1 is not build in your 
> package, but it looks like it might be build if the libjava/classpath 
> target is build which I guess is not necessary.
>
> But I've found helpful documentation in the gcc-4.4 snapshot which allows 
> to bootstrap ecj1 using the following script:
>
> #!/bin/sh
>
> # create bootstrap ecj1 and put into PATH
> cat <<EOF > ecj1
> #! /bin/sh
> gij -cp /tmp/ecj.jar org.eclipse.jdt.internal.compiler.batch.GCCMain 
> ${1+"$@"}
> EOF
> PATH_ORIG=$PATH
> PATH=.:$PATH
>
> # compile ecj.jar to ecjx
> echo "compiling ecj.jar to native ecjx"
> gcj /tmp/ecj.jar --main=org.eclipse.jdt.internal.compiler.batch.GCCMain -o 
> ecjx
>
> # voila! we have a new ecj1
> PATH=$PATH_ORIG
> rm ecj1
> mv ecjx ecj1
>
> ... in this script the location of ecj.jar would have to be adapted to that 
> of the one in the source tree downloaded by contrib/download_ecj
> could you incorporate this into gcc43.info?
>
> pdftk does not build yet, but a HelloWorld.java works. ... and compiling 
> ecj.jar with gcj should also be counted as a positive sign.. :)
>
> matthias
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to