Freenet compilation errors.

Tom Tromey tromey@redhat.com
Sun Jan 7 14:20:00 GMT 2001


>>>>> "Mark" == Mark J Roberts <mjr@statesmean.com> writes:

>> gcj --encoding=8859_1 ...

Mark> This works fine, and the errors stop, but then this error occurs:
Mark> cc1: Unrecognized option `-fencoding=8859_1'
Mark> Is this a bug?
Yes, it definitely is. Here is a patch that should fix it. Can you
try it out? I haven't tested it yet, but once I do I'll submit it to
gcc-patches.
2001年01月07日 Tom Tromey <tromey@redhat.com>
	* jvspec.c (jvgenmain_spec): Omit -fencoding from cc1 invocation.
Mark> A similar thing happened when I tried to do (and note the "gcc")
Mark> "gcc -o HelloWorld --main=HelloWorld HelloWorld.java" -- it
Mark> errored with:
Mark> jc1: Unrecognized option `-fmain=Test'
You really need to use gcj here and not gcc.
Tom
Index: jvspec.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jvspec.c,v
retrieving revision 1.33
diff -u -r1.33 jvspec.c
--- jvspec.c	2000年10月20日 21:19:29	1.33
+++ jvspec.c	2001年01月07日 22:15:23
@@ -57,7 +57,7 @@
 		 %{v:-version} %{pg:-p} %{p}\
 		 %{<fbounds-check} %{<fno-bounds-check}\
 		 %{<fassume-compiled} %{<fno-assume-compiled}\
-		 %{<femit-class-file} %{<femit-class-files}\
+		 %{<femit-class-file} %{<femit-class-files} %{<fencoding*}\
 		 %{<fuse-boehm-gc} %{<fhash-synchronization} %{<fjni}\
 		 %{<fclasspath*} %{<fCLASSPATH*} %{<foutput-class-dir}\
 		 %{<fuse-divide-subroutine} %{<fno-use-divide-subroutine}\


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /