This is the mail archive of the java-discuss@sources.redhat.com 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]

Re: Freenet compilation errors.


>>>>> "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}\

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