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] Re: Error whilst compiling egcs-core-19990314.tar.gz


On Mar 16, 1999, Yusuf Goolamabbas <yusufg@huge.net> wrote:

> Hi, I downloaded egcs-core-19990314.tar.gz from the ftp server and 

> sed: can't read cp/Makefile: No such file or directory

> Is it neccasary to download the snapshot for all languages even though 
> I just want to try the C compiler and runtime

Currently, you need at least c++ and objc too :-(

The attached patch is supposed to fix this problem.  Ok to install?

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org,computer.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Instituto de Computação, Universidade Estadual de Campinas, SP, Brasil
*** E-mail about software projects will be forwarded to mailing lists
Index: gcc/ChangeLog
from  Alexandre Oliva  <oliva@dcc.unicamp.br>
	
	* Makefile.in (INTL_TARGETS): new macro
	($(INTL_TARGETS)): depend on generated sources; drop dependencies
	on cp/parse.c and objc/objc-parse.c
	($(srcdir)/cp/parse.c): move to cp/Make-lang.in
	* objc/Make-lang.in ($(INTL_TARGETS)): depend on objc/objc-parse.c 
	
Index: gcc/Makefile.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v
retrieving revision 1.242
diff -u -r1.242 Makefile.in
--- gcc/Makefile.in	1999/03/11 08:51:17	1.242
+++ gcc/Makefile.in	1999/03/17 04:59:55
@@ -42,6 +42,11 @@
 CONFIG_LANGUAGES = @all_languages@
 LANGUAGES = c proto gcov$(exeext) $(CONFIG_LANGUAGES)
 
+# Languages should create dependencies of $(INTL_TARGETS) on generated
+# sources in Make-lang.in.  Example:
+# $(INTL_TARGETS): $(srcdir)/cp/parse.c
+INTL_TARGETS = intl.all intl.install intl.distdir
+
 # Selection of languages to be made during stage1 build.
 # This is overridden by configure.
 BOOT_LANGUAGES = c @all_boot_languages@
@@ -1900,18 +1905,8 @@
 	@$(MAKE) $(FLAGS_TO_PASS) intl.all
 
 # Make sure all the headers are there for xgettext to scan.
-# FIXME: extend the language interface
-# so that we needn't jump into language build internals like this.
-intl.all intl.install intl.distdir: \
-    $(srcdir)/c-gperf.h \
-    $(srcdir)/c-parse.c $(srcdir)/c-parse.h $(srcdir)/cexp.c \
-    $(srcdir)/cp/parse.c $(srcdir)/objc/objc-parse.c
-$(srcdir)/cp/parse.c:
-	@cp_srcdir=`sed -n 's/^srcdir[ 	]*=[	 ]*//p' cp/Makefile` && \
-	echo "cd cp && $(MAKE) $$cp_srcdir/parse.c" && \
-	cd cp && \
-	  $(MAKE) $(SUBDIR_FLAGS_TO_PASS) $(CXX_FLAGS_TO_PASS) \
-	    $$cp_srcdir/parse.c
+$(INTL_TARGETS): $(srcdir)/c-gperf.h \
+    $(srcdir)/c-parse.c $(srcdir)/c-parse.h $(srcdir)/cexp.c
 
 intl.all intl.install intl.uninstall intl.distdir \
   intl.mostlyclean intl.clean intl.distclean intl.maintainer-clean:
Index: gcc/cp/ChangeLog
from  Alexandre Oliva  <oliva@dcc.unicamp.br>
	
	* Make-lang.in: ($(INTL_TARGETS)): depend on cp/parse.c
	($(srcdir)/cp/parse.c): moved from ../Makefile.in
	
Index: gcc/cp/Make-lang.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/Make-lang.in,v
retrieving revision 1.31
diff -u -r1.31 Make-lang.in
--- gcc/cp/Make-lang.in	1999/02/22 08:49:32	1.31
+++ gcc/cp/Make-lang.in	1999/03/17 05:00:37
@@ -82,6 +82,14 @@
 g++spec.o: $(srcdir)/cp/g++spec.c
 	$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/cp/g++spec.c
 
+$(INTL_TARGETS): $(srcdir)/cp/parse.c
+$(srcdir)/cp/parse.c: $(srcdir)/cp/parse.y
+	@cp_srcdir=`sed -n 's/^srcdir[ 	]*=[	 ]*//p' cp/Makefile` && \
+	echo "cd cp && $(MAKE) $$cp_srcdir/parse.c" && \
+	cd cp && \
+	  $(MAKE) $(SUBDIR_FLAGS_TO_PASS) $(CXX_FLAGS_TO_PASS) \
+	    $$cp_srcdir/parse.c
+
 # N.B.: This is a copy of the gcc.o rule, with -DLANG_SPECIFIC_DRIVER added.
 # It'd be nice if we could find an easier way to do this---rather than have
 # to track changes to the toplevel gcc Makefile as well.
Index: gcc/objc/Make-lang.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/objc/Make-lang.in,v
retrieving revision 1.19
diff -u -r1.19 Make-lang.in
--- gcc/objc/Make-lang.in	1998/12/16 21:21:13	1.19
+++ gcc/objc/Make-lang.in	1999/03/17 05:00:37
@@ -71,6 +71,7 @@
 	$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -I$(srcdir)/objc \
 	-c $(srcdir)/objc/objc-parse.c
 
+$(INTL_TARGETS): $(srcdir)/objc/objc-parse.c
 $(srcdir)/objc/objc-parse.c : $(srcdir)/objc/objc-parse.y
 	cd $(srcdir)/objc; \
 	$(BISON) $(BISONFLAGS) objc-parse.y -o objc-parse.c

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