Hi, On Thu, 2007-04-19 at 13:11 +0200, Dalibor Topic wrote: > 2007-04-19 Andrew John Hughes <[EMAIL PROTECTED]> > > * m4/acinclude.m4 > (CLASSPATH_FIND_JAVAC): Allow detected JAVAC.
Thanks also added to the release branch. BTW. I was happily surprised that the openjdk-javac compiler builds out of the box now (on Fedora rawhide with gcj and gcj-java-compat packages installed): svn checkout https://openjdk.dev.java.net/svn/openjdk/compiler/trunk \ compiler --username guest --password guest cd compiler make And you will have a dist/lib/javac.jar and a dist/bin/javac script after some time. The result works with cacao but not with gcj out of the box (see below though). And the results seems to compile all of GNU Classpath just fine. The attached patch makes things work also with gij (by setting the target byte code to 1.5). Unfortunately the resulting gcj aot compiled binary seems to not work: gcj --main=com.sun.tools.javac.Main -g -o ~/bin/javac \ dist/lib/javac.jar /home/mark/bin/javac -bootclasspath '' -classpath ../vm/reference:..:../external/w3c_dom:../external/sax:../external/relaxngDatatype:../external/jsr166:.:: -d . @classes An exception has occurred in the compiler (1.7.0-opensource). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you. java.lang.NullPointerException at com.sun.tools.javac.code.Symbol$TypeSymbol.formFullName(Symbol.java:506) at com.sun.tools.javac.code.Symbol$PackageSymbol.<init>(Symbol.java:605) at com.sun.tools.javac.code.Symbol$PackageSymbol.<init>(Symbol.java:609) at com.sun.tools.javac.code.Symtab$1.<init>(Symtab.java:290) at com.sun.tools.javac.code.Symtab.<init>(Symtab.java:290) at com.sun.tools.javac.code.Symtab.instance(Symtab.java:60) at com.sun.tools.javac.jvm.ClassReader.<init>(ClassReader.java:220) at com.sun.tools.javac.jvm.ClassReader.instance(ClassReader.java:183) at com.sun.tools.javac.main.JavaCompiler.<init>(JavaCompiler.java:308) at com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:87) at com.sun.tools.javac.main.Main.compile(Main.java:36make: *** [compile-classes] Error 4 But I haven't investigated why yet. Cheers, Mark
Index: Makefile =================================================================== --- Makefile (revision 211) +++ Makefile (working copy) @@ -146,7 +146,7 @@ $(JAVAC) -d $(BUILD_BOOTCLASSES) -source $(COMPILER_SOURCE_LEVEL) -g:source,lines @$(BUILD_JAVAC_SRCFILES) $(MKDIR) -p $(BUILD_CLASSES) $(JAVA) -cp $(BUILD_BOOTCLASSES):$(SRC_CLASSES) com.sun.tools.javac.Main \ - -d $(BUILD_CLASSES) -g:source,lines @$(BUILD_JAVAC_SRCFILES) + -d $(BUILD_CLASSES) -g:source,lines -source $(COMPILER_SOURCE_LEVEL) -target $(COMPILER_SOURCE_LEVEL) @$(BUILD_JAVAC_SRCFILES) ( $(ECHO) "Main-Class: com.sun.tools.javac.Main" ; \ $(ECHO) "Built-By: $$USER" ; \ $(ECHO) "Built-At: `date`" ) > $(BUILD)/javac.MF
