This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Patch installed to java/Makefile.in for alpha-osf4 bootstrap lossage


	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

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