This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch installed to java/Makefile.in for alpha-osf4 bootstrap lossage
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Patch installed to java/Makefile.in for alpha-osf4 bootstrap lossage
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 9 Jan 2000 09:38:54 -0500 (EST)
- Cc: apbianco at cygnus dot com
When compiling on alpha-osf4 I get the following error:
> stage1/xgcc -Bstage1/ -B/usr/local/alphaev5-dec-osf4.0b/bin/ -DIN_GCC
> -W -Wall -Wtraditional -O2 -g -W -Wall -o ../gcjh gjavah.o jcf-io.o
> jcf-depend.o jcf-path.o zextract.o ../../libiberty/libiberty.a -lmld
> -lexc ../errors.o
> /usr/ucb/ld:
> ../errors.o: warning: multiply defined
> collect2: ld returned 1 exit status
> make[3]: *** [../gcjh] Error 1
The error message makes no sense until you realize that
libmld.a defines warning, error and fatal! I wish ld had actually
said that. :-)
Anyway, I installed the following patch which fixed it for me.
--Kaveh
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/ChangeLog,v
retrieving revision 1.326
diff -u -p -r1.326 ChangeLog
--- ChangeLog 2000/01/08 01:59:33 1.326
+++ ChangeLog 2000/01/09 14:29:50
@@ -1,3 +1,7 @@
+2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * Makefile.in (jcf-dump, gcjh): Move ../errors.o before $(LIBS).
+
Thu Jan 6 16:31:28 2000 Anthony Green <green@cygnus.com>
* expr.c (java_lang_expand_expr): Switch to permanent obstack
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/Makefile.in,v
retrieving revision 1.45
diff -u -p -r1.45 Makefile.in
--- Makefile.in 2000/01/06 22:06:21 1.45
+++ Makefile.in 2000/01/09 14:29:50
@@ -184,7 +184,7 @@ compiler: ../jc1$(exeext) ../jv-scan$(ex
../jcf-dump$(exeext): jcf-dump.o jcf-io.o jcf-depend.o jcf-path.o \
zextract.o $(LIBDEPS)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ jcf-dump.o jcf-io.o \
- jcf-depend.o jcf-path.o zextract.o $(LIBS) ../errors.o
+ jcf-depend.o jcf-path.o zextract.o ../errors.o $(LIBS)
# Dependencies here must be kept in sync with dependencies in Make-lang.in.
../jvgenmain$(exeext): jvgenmain.o mangle.o $(LIBDEPS)
@@ -193,7 +193,7 @@ compiler: ../jc1$(exeext) ../jv-scan$(ex
../gcjh$(exeext): gjavah.o jcf-io.o jcf-depend.o jcf-path.o \
zextract.o $(LIBDEPS)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gjavah.o jcf-io.o \
- jcf-depend.o jcf-path.o zextract.o $(LIBS) ../errors.o
+ jcf-depend.o jcf-path.o zextract.o ../errors.o $(LIBS)
Makefile: $(srcdir)/Makefile.in $(srcdir)/../configure
cd ..; $(SHELL) config.status