quick libgcj compile question
Alexandre Petit-Bianco
apbianco@cygnus.com
Tue Oct 3 14:58:00 GMT 2000
Tom.Williams@diversifiedsoftware.com writes:
> I've been building for about 48 hours now and I don't know how much
> more is left.
This is a known problem. A patch that speeds things up exists, but I
haven't tried it yet (next on my list of things to do. I know, I'm
late.)
As a temporary solution, you should manually disable the use of iconv
in the front-end, rebuild/reinstall the java compiler and restart a
libgcj build.
./A
Index: jcf-parse.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jcf-parse.c,v
retrieving revision 1.56
diff -u -p -r1.56 jcf-parse.c
--- jcf-parse.c 2000年09月23日 17:09:39 1.56
+++ jcf-parse.c 2000年10月03日 21:52:42
@@ -770,6 +770,7 @@ parse_source_file (file, finput)
/* There's no point in trying to find the current encoding unless we
are going to do something intelligent with it -- hence the test
for iconv. */
+#undef HAVE_ICONV
#ifdef HAVE_ICONV
#ifdef HAVE_NL_LANGINFO
setlocale (LC_CTYPE, "");
Index: jv-scan.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jv-scan.c,v
retrieving revision 1.19
diff -u -p -r1.19 jv-scan.c
--- jv-scan.c 2000年09月13日 17:09:36 1.19
+++ jv-scan.c 2000年10月03日 21:52:43
@@ -191,6 +191,7 @@ DEFUN (main, (argc, argv),
/* There's no point in trying to find the current encoding
unless we are going to do something intelligent with it
-- hence the test for iconv. */
+#undef HAVE_ICONV
#ifdef HAVE_ICONV
#ifdef HAVE_NL_LANGINFO
setlocale (LC_CTYPE, "");
Index: lex.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/lex.c,v
retrieving revision 1.42
diff -u -p -r1.42 lex.c
--- lex.c 2000年09月12日 22:23:59 1.42
+++ lex.c 2000年10月03日 21:52:46
@@ -210,6 +210,7 @@ java_new_lexer (finput, encoding)
lex->bs_count = 0;
lex->unget_value = 0;
+#undef HAVE_ICONV
#ifdef HAVE_ICONV
lex->handle = iconv_open ("UCS-2", encoding);
if (lex->handle == (iconv_t) -1)
More information about the Java
mailing list