This is the mail archive of the gcc-bugs@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]

Re: java install bug


Alexandre Petit-Bianco wrote:

> Martin Kahlert writes:
>
> >         -o gnu/gcj/convert/.libs/JIS0208_to_Unicode.o
> > .deps/JIS0208_to_Unicode.pp: No such file or directory
>
> I'm seeing this too. It's been reported to the relevant PR (1586.) As
> a temporary work around, I propose what's below. It seems to let me do
> clean builds.

Neil has put the -MP option back into cpp for the benefit of automake
(Thanks, Neil). This patch, which I've just checked in, puts the Java build
back the way it was before and should fix these problems.

Interestingly, the "-M -MF" didn't seem to work in place of the "-Wp,-MD"
even when we hacked the Makefile.in by hand. For some reason I was getting
preprocessor output in the .o files. Maybe I misunderstood something.

regards

  [ bryce ]

2001-01-11  Bryce McKinlay  <bryce@albatross.co.nz>

	* Makefile.am: Re-enable dependencies.
	* Makefile.in: Rebuilt.

Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/egcs/libjava/Makefile.am,v
retrieving revision 1.126
diff -u -r1.126 Makefile.am
--- Makefile.am	2001/01/09 07:07:51	1.126
+++ Makefile.am	2001/01/11 02:49:58
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in.
 
-AUTOMAKE_OPTIONS = foreign no-installinfo no-dependencies
+AUTOMAKE_OPTIONS = foreign no-installinfo
 
 if TESTSUBDIR
 SUBDIRS = $(DIRLTDL) testsuite gcj include
@@ -238,7 +238,7 @@
 ## subdirs.  FIXME.
 $(nat_files) $(x_nat_files): %.lo: %.cc
 	@echo '$(LTCXXCOMPILE) -c -o $@ $<'; \
-	$(LTCXXCOMPILE) -M -MF .deps/$(*F).pp -c -o $@ $<
+	$(LTCXXCOMPILE) -Wp,-MD,.deps/$(*F).pp -c -o $@ $<
 	@-sed -e 's/^\([^:]*\)\.o[ 	]*:/\1.lo \1.o :/' \
 	  < .deps/$(*F).pp > .deps/$(*F).P; \
 	tr ' ' '\012' < .deps/$(*F).pp \

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