From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23598 invoked by alias); 31 Mar 2012 18:17:31 -0000 Received: (qmail 23588 invoked by uid 22791); 31 Mar 2012 18:17:30 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.151) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 31 Mar 2012 18:17:16 +0000 Received: from md1.u-strasbg.fr (md1.u-strasbg.fr [IPv6:2001:660:2402::186]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id q2VIGmBt079667 ; Sat, 31 Mar 2012 20:16:48 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms8.u-strasbg.fr [130.79.204.17]) by md1.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id q2VIGldg047818 ; Sat, 31 Mar 2012 20:16:47 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from E6510Muller (lec67-4-82-230-53-140.fbx.proxad.net [82.230.53.140]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id q2VIGiOC012968 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) ; Sat, 31 Mar 2012 20:16:45 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Pierre Muller'" , "'Joel Brobecker'" , "'Tom Tromey'" Cc: References: <32726.6318876811$1333031278@news.gmane.org> <87ehs9n7xx.fsf@fleche.redhat.com> <20120330213422.GX2713@adacore.com> <20120330220740.GA18842@adacore.com> <002101cd0f36$ee5b8bc0$cb12a340$@muller@ics-cnrs.unistra.fr> In-Reply-To: <002101cd0f36$ee5b8bc0$cb12a340$@muller@ics-cnrs.unistra.fr> Subject: RE: gdb/gnulib problems with BSD operating systems Date: Sat, 31 Mar 2012 18:17:00 -0000 Message-ID: <003d01cd0f6a$6d4c0120$47e40360$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00098.txt.bz2 > > % /path/to/gdb/configure > > % /home/brobecke/gmake > > I was wondering if the fact of adding a full path could have an influence. So I tested 4 variants (on GDB-7.4 sources) Variant 1) Using just 'gmake' Variant 2) Using '/usr/local/bin/gmake' Variant 3) Using 'gmake all-gdb' Variant 4) Using '/usr/local/bin/gmake all-gdb' Clearly, only variants 1 and 2 complete successfully, while variants using all-gdb do have MAKE = make instead of MAKE = 'gmake as called, i.e. with or without path' There are differences in the gdb/Makefile's (see below) but I have no idea if this explains the failure with all-gdb target. Pierre Muller GDB pascal language maintainer [pierre@freelove832 ~]$ diff -c test-gmake/gdb/Makefile test-gmake-all-gdb/gdb/Makefile *** test-gmake/gdb/Makefile Sat Mar 31 08:38:04 2012 --- test-gmake-all-gdb/gdb/Makefile Sat Mar 31 08:43:46 2012 *************** *** 55,62 **** LN_S = ln -s INSTALL = /usr/bin/install -c ! INSTALL_PROGRAM = /usr/bin/install -c ! INSTALL_DATA = /usr/bin/install -c -m 644 DESTDIR = --- 55,62 ---- LN_S = ln -s INSTALL = /usr/bin/install -c ! INSTALL_PROGRAM = ${INSTALL} ! INSTALL_DATA = ${INSTALL} -m 644 DESTDIR = *************** *** 107,113 **** YLWRAP = $(srcdir)/../ylwrap # where to find makeinfo, preferably one designed for texinfo-2 ! MAKEINFO = makeinfo --split-size=5000000 MAKEINFOFLAGS = --split-size=5000000 MAKEINFO_EXTRA_FLAGS = MAKEINFO_CMD = $(MAKEINFO) $(MAKEINFOFLAGS) $(MAKEINFO_EXTRA_FLAGS) --- 107,113 ---- YLWRAP = $(srcdir)/../ylwrap # where to find makeinfo, preferably one designed for texinfo-2 ! MAKEINFO = makeinfo MAKEINFOFLAGS = --split-size=5000000 MAKEINFO_EXTRA_FLAGS = MAKEINFO_CMD = $(MAKEINFO) $(MAKEINFOFLAGS) $(MAKEINFO_EXTRA_FLAGS) *************** *** 2197,2217 **** # simpler scheme. # ! ifeq ($(DEPMODE),depmode=gcc3) # Note that we put the dependencies into a .Tpo file, then move them # into place if the compile succeeds. We need this because gcc does # not atomically write the dependency output file. ! override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \ ! -MF $(DEPDIR)/$(basename $(@F)).Tpo ! override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \ ! $(DEPDIR)/$(basename $(@F)).Po ! else ! override COMPILE.pre = source='$<' object='$@' libtool=no \ ! DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC) # depcomp handles atomicity for us, so we don't need a postcompile # step. ! override POSTCOMPILE = ! endif # A list of all the objects we might care about in this build, for # dependency tracking. --- 2197,2217 ---- # simpler scheme. # ! #ifeq ($(DEPMODE),depmode=gcc3) # Note that we put the dependencies into a .Tpo file, then move them # into place if the compile succeeds. We need this because gcc does # not atomically write the dependency output file. ! #override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \ ! # -MF $(DEPDIR)/$(basename $(@F)).Tpo ! #override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \ ! # $(DEPDIR)/$(basename $(@F)).Po ! #else ! #override COMPILE.pre = source='$<' object='$@' libtool=no \ ! # DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC) # depcomp handles atomicity for us, so we don't need a postcompile # step. ! #override POSTCOMPILE = ! #endif # A list of all the objects we might care about in this build, for # dependency tracking. *************** *** 2221,2233 **** # Ensure that generated files are created early. Use order-only # dependencies if available. They require GNU make 3.80 or newer, # and the .VARIABLES variable was introduced at the same time. ! ifdef .VARIABLES ! $(all_object_files): | $(generated_files) ! else $(all_object_files) : $(generated_files) ! endif # Dependencies. ! -include $(patsubst %.o, $(DEPDIR)/%.Po, $(all_object_files)) ### end of the gdb Makefile.in. --- 2221,2233 ---- # Ensure that generated files are created early. Use order-only # dependencies if available. They require GNU make 3.80 or newer, # and the .VARIABLES variable was introduced at the same time. ! #ifdef .VARIABLES ! #$(all_object_files): | $(generated_files) ! #else $(all_object_files) : $(generated_files) ! #endif # Dependencies. ! #-include $(patsubst %.o, $(DEPDIR)/%.Po, $(all_object_files)) ### end of the gdb Makefile.in.