This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: java install bug
- To: apbianco at cygnus dot com
- Subject: Re: java install bug
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Thu, 11 Jan 2001 16:27:10 +1300
- CC: martin dot kahlert at infineon dot com, gcc-bugs at gcc dot gnu dot org, java-patches at sourceware dot cygnus dot com, Ramakrishna Kandula <ramky2000us at yahoo dot com>, Neil Booth <neil at daikokuya dot demon dot co dot uk>
- References: <20010109092801.A9506@keksy.muc.infineon.com> <14939.35918.405103.504412@deliverance.cygnus.com>
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 \