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: [head] Java bootstrap failure: natClip.cc:26: syntax error before`;'


On Mar  2, 2001, "Zack Weinberg" <zackw@Stanford.EDU> wrote:

> On Fri, Mar 02, 2001 at 12:32:11AM -0300, Alexandre Oliva wrote:
>> On Mar  1, 2001, "Zack Weinberg" <zackw@Stanford.EDU> wrote:

>> > The subdirectory configure is run with the wrong value of CXX.

>> Are you 100% sure the wrong value of CXX wasn't being picked from
>> <target-sub-dir>/config.cache?

> Yes, I put "echo $CXX >&2" at the very top of libjava/configure:

Here's a shot in the dark.  Does this help?  If not, could you (or
anybody else that experiences the same problem) grant me temporary
login access to a machine on which the problem can be observed?

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/Makefile.in,v
retrieving revision 1.74
diff -u -p -r1.74 Makefile.in
--- Makefile.in 2001/03/08 05:40:30 1.74
+++ Makefile.in 2001/03/08 05:57:06
@@ -1051,7 +1051,7 @@ $(CLEAN_MODULES) $(CLEAN_X11_MODULES) cl
 
 .PHONY: $(CLEAN_TARGET_MODULES)
 $(CLEAN_TARGET_MODULES):
-	@dir=`echo $@ | sed -e 's/clean-target-//'`; \
+	@dir=`echo $@ | sed -e 's/clean-target-//'`; export dir; \
 	rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
 	if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
 	  r=`pwd`; export r; \
@@ -1234,7 +1234,7 @@ $(INSTALL_MODULES): installdirs
 # target tools.
 .PHONY: $(CONFIGURE_TARGET_MODULES)
 $(CONFIGURE_TARGET_MODULES):
-	@dir=`echo $@ | sed -e 's/configure-target-//'`; \
+	@dir=`echo $@ | sed -e 's/configure-target-//'`; export dir; \
 	if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
 	  r=`pwd`; export r; \
 	  $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
@@ -1252,7 +1252,7 @@ $(CONFIGURE_TARGET_MODULES):
 	    fi; \
 	  fi; \
 	fi; exit 0	# break command into two pieces
-	@dir=`echo $@ | sed -e 's/configure-target-//'`; \
+	@dir=`echo $@ | sed -e 's/configure-target-//'`; export dir; \
 	if [ ! -d $(TARGET_SUBDIR) ]; then \
 	  true; \
 	elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
@@ -1340,12 +1340,13 @@ $(CONFIGURE_TARGET_MODULES):
 # To build a target all-X means to cd to X and make all.
 .PHONY: $(ALL_TARGET_MODULES)
 $(ALL_TARGET_MODULES):
-	@dir=`echo $@ | sed -e 's/all-target-//'`; \
+	@dir=`echo $@ | sed -e 's/all-target-//'`; export dir; \
 	if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
 	  r=`pwd`; export r; \
 	  s=`cd $(srcdir); pwd`; export s; \
 	  $(SET_LIB_PATH) \
-	  (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
+	  (cd $(TARGET_SUBDIR)/$${dir}; \
+	    $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
 	else \
 	  true; \
 	fi
@@ -1354,12 +1355,13 @@ $(ALL_TARGET_MODULES):
 # To build a target install-X means to cd to X and make install.
 .PHONY: $(CHECK_TARGET_MODULES)
 $(CHECK_TARGET_MODULES):
-	@dir=`echo $@ | sed -e 's/check-target-//'`; \
+	@dir=`echo $@ | sed -e 's/check-target-//'`; export dir; \
 	if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
 	  r=`pwd`; export r; \
 	  s=`cd $(srcdir); pwd`; export s; \
 	  $(SET_LIB_PATH) \
-	  (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
+	  (cd $(TARGET_SUBDIR)/$${dir}; \
+	    $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
 	else \
 	  true; \
 	fi
@@ -1369,7 +1371,7 @@ $(CHECK_TARGET_MODULES):
 # and make install.
 .PHONY: $(INSTALL_TARGET_MODULES)
 $(INSTALL_TARGET_MODULES): installdirs
-	@dir=`echo $@ | sed -e 's/install-target-//'`; \
+	@dir=`echo $@ | sed -e 's/install-target-//'`; export dir; \
 	if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
 	  r=`pwd`; export r; \
 	  s=`cd $(srcdir); pwd`; export s; \

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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