From unknown Mon Jun 23 13:11:28 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17354 <17354@debbugs.gnu.org> To: bug#17354 <17354@debbugs.gnu.org> Subject: Status: distclean fails when source is relatively otherplace Reply-To: bug#17354 <17354@debbugs.gnu.org> Date: Mon, 23 Jun 2025 20:11:28 +0000 retitle 17354 distclean fails when source is relatively otherplace reassign 17354 automake submitter 17354 Jan Engelhardt severity 17354 normal tag 17354 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 26 19:49:25 2014 Received: (at submit) by debbugs.gnu.org; 26 Apr 2014 23:49:25 +0000 Received: from localhost ([127.0.0.1]:59383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeCLV-0005fD-2n for submit@debbugs.gnu.org; Sat, 26 Apr 2014 19:49:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56347) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeCLR-0005f3-AV for submit@debbugs.gnu.org; Sat, 26 Apr 2014 19:49:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeCLL-00055U-SY for submit@debbugs.gnu.org; Sat, 26 Apr 2014 19:49:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeCLL-00055D-Oo for submit@debbugs.gnu.org; Sat, 26 Apr 2014 19:49:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeCLG-0001Du-Dn for bug-automake@gnu.org; Sat, 26 Apr 2014 19:49:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeCLB-000547-7L for bug-automake@gnu.org; Sat, 26 Apr 2014 19:49:10 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeCLB-000543-4g for bug-automake@gnu.org; Sat, 26 Apr 2014 19:49:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53984) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1WeCLA-0001V4-RQ for automake-bug@gnu.org; Sat, 26 Apr 2014 19:49:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeCL6-00053X-36 for automake-bug@gnu.org; Sat, 26 Apr 2014 19:49:04 -0400 Received: from ares08.inai.de ([46.4.84.70]:48360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeCL5-00053P-Sz for automake-bug@gnu.org; Sat, 26 Apr 2014 19:49:00 -0400 Received: by ares08.inai.de (Postfix, from userid 25121) id 2173810393F90; Sun, 27 Apr 2014 01:48:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by ares08.inai.de (Postfix) with ESMTP id 1EB6418045BC6 for ; Sun, 27 Apr 2014 01:48:56 +0200 (CEST) Date: Sun, 27 Apr 2014 01:48:56 +0200 (CEST) From: Jan Engelhardt To: automake-bug@gnu.org Subject: distclean fails when source is relatively otherplace Message-ID: User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) With automake-1.13.4 & automake-1.14, when there is a _SOURCES = ../blah.c, make does not properly run because .deps is gone too early. File set: # Makefile.am SUBDIRS = b noinst_PROGRAMS = foo # configure.ac AC_INIT([a],[0]) AM_INIT_AUTOMAKE([foreign subdir-objects]) AC_PROG_CC AC_CONFIG_FILES([Makefile b/Makefile]) AC_OUTPUT # foo.c int main(void){return 0;} # b/Makefile.am noinst_PROGRAMS = bar bar_SOURCES = ../foo.c Observed: 01:43 wrgstfl:/dev/shm/testcase > make distclean Making distclean in b make[1]: Entering directory `/dev/shm/testcase/b' test -z "bar" || rm -f bar rm -f *.o rm -f ../*.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f ../.deps/.dirstamp rm -f ../.dirstamp rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -rf ../.deps rm -f Makefile make[1]: Leaving directory `/dev/shm/testcase/b' make[1]: Entering directory `/dev/shm/testcase' Makefile:348: .deps/foo.Po: No such file or directory make[1]: *** No rule to make target `.deps/foo.Po'. Stop. make[1]: Leaving directory `/dev/shm/testcase' make: *** [distclean-recursive] Error 1 Expected: Don't fail. Additional information: The problem is also observable without using ".."; foo_SOURCES = b/foo.c, bar_SOURCES = foo.c also yields the same issue that one .deps is gone before the Makefile of another directory is executed. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 15 13:06:19 2014 Received: (at 17354) by debbugs.gnu.org; 15 Oct 2014 17:06:19 +0000 Received: from localhost ([127.0.0.1]:44691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XeS1i-0003Oo-Pi for submit@debbugs.gnu.org; Wed, 15 Oct 2014 13:06:19 -0400 Received: from a4nancy.globenet.org ([80.67.172.114]:35908 helo=mail.herbesfolles.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XeS1g-0003Oe-Ac for 17354@debbugs.gnu.org; Wed, 15 Oct 2014 13:06:17 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) with ESMTPSA id 4460F22BB3 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=herbesfolles.org; s=alternc; t=1413392774; bh=QO5bT3CxDgTJ3d3W48HA7VQC82mcySx5+ssYOnOXns8=; h=Date:From:To:Subject; b=aTepz/C9J8ngerX8/+kNFFRFx6j1gF2+bcfSseh2Fof5lbe2lBte5ahWgNHf+Scha nu00E4GKLaxZ/PLKS0ayDS6tFtCKCrgOwK98MI4IHrLa/w9DYGwDTtgA+d0Q7bIalQ hKLShz3v8ttNjArMwnyXbV3DL/Jzlr75l2t5syOM= Message-ID: <543EA985.60100@herbesfolles.org> Date: Wed, 15 Oct 2014 19:06:13 +0200 From: Colomban Wendling User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.1.2 MIME-Version: 1.0 To: 17354@debbugs.gnu.org Subject: Re: bug#17354: distclean fails when source is relatively otherplace Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17354 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) I just ran into this issue today trying to port a relatively large build system to use `subdir-objects`. This is quite annoying as everything else works just fine, but this bug either prevents me from using `subdir-objects` at all or forces me to rewrite these parts using a completely different approach. Also, I would believe it should be relatively easy to fix as distclean basically just *removes* files anyway. And the fact the problem here is that a file is already gone sounds a bit ironic :) From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 19 07:26:15 2014 Received: (at 17354) by debbugs.gnu.org; 19 Dec 2014 12:26:15 +0000 Received: from localhost ([127.0.0.1]:50910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1wdL-0006eq-5j for submit@debbugs.gnu.org; Fri, 19 Dec 2014 07:26:15 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:63162) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1wdI-0006ec-Ai; Fri, 19 Dec 2014 07:26:12 -0500 Received: by mail-wg0-f41.google.com with SMTP id y19so1196728wgg.0; Fri, 19 Dec 2014 04:26:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=4x4Ji0ysJ06o63hLAh4ZzR5LnL1vg8E4ekeWXCs1c1s=; b=fX/+FCpb3Myg1XJH44FQU1S/gbqTQjXYgBUyJFveXXPjP5lvWv0s7UN0fMq2peRBvz CNMb/Rg7Te4z9f9NAChlwgdyL/G/YBu9UP6evpHq874U7KVFTVmvsZzbZytXdCsTbUkn xcs8TfPer5VJdlFo4K8stJzPT/Vk9+zKVzzWax49YUMvw4/KOs15XdF9b+NwzvhwIk7r nCLj071Bu3q1ABbVgxXS5U4/xxVsOh8NMZ3JBLrOB7puenxAgqY6EsoT4+8zFbWtTci3 UGKM1WLORUOgd+TntqmAJ2WxF54woO5LK1N+aoneyc594LaOy43a/6YwnjOf8k2YgSqf EU3A== X-Received: by 10.194.71.169 with SMTP id w9mr13613908wju.19.1418991971754; Fri, 19 Dec 2014 04:26:11 -0800 (PST) Received: from [192.168.0.101] (host159-94-dynamic.7-79-r.retail.telecomitalia.it. [79.7.94.159]) by mx.google.com with ESMTPSA id jr4sm12549921wjc.20.2014.12.19.04.26.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Dec 2014 04:26:11 -0800 (PST) Message-ID: <54941962.7000701@gmail.com> Date: Fri, 19 Dec 2014 13:26:10 +0100 From: Stefano Lattarini MIME-Version: 1.0 To: Jan Engelhardt , 17354@debbugs.gnu.org Subject: Re: bug#17354: distclean fails when source is relatively otherplace References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17354 Cc: GNU bug tracker automated control server X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 17354 wontfix close 17354 stop On 04/27/2014 01:48 AM, Jan Engelhardt wrote: > > With automake-1.13.4 & automake-1.14, when there is a _SOURCES = > ../blah.c, make does not properly run because .deps is gone too early. > > > File set: > > # Makefile.am > SUBDIRS = b > noinst_PROGRAMS = foo > > # configure.ac > AC_INIT([a],[0]) > AM_INIT_AUTOMAKE([foreign subdir-objects]) > AC_PROG_CC > AC_CONFIG_FILES([Makefile b/Makefile]) > AC_OUTPUT > > # foo.c > int main(void){return 0;} > > # b/Makefile.am > noinst_PROGRAMS = bar > bar_SOURCES = ../foo.c > > > Observed: > > 01:43 wrgstfl:/dev/shm/testcase > make distclean > Making distclean in b > make[1]: Entering directory `/dev/shm/testcase/b' > test -z "bar" || rm -f bar > rm -f *.o > rm -f ../*.o > rm -f *.tab.c > test -z "" || rm -f > test . = "." || test -z "" || rm -f > rm -f ../.deps/.dirstamp > rm -f ../.dirstamp > rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags > rm -rf ../.deps > rm -f Makefile > make[1]: Leaving directory `/dev/shm/testcase/b' > make[1]: Entering directory `/dev/shm/testcase' > Makefile:348: .deps/foo.Po: No such file or directory > make[1]: *** No rule to make target `.deps/foo.Po'. Stop. > make[1]: Leaving directory `/dev/shm/testcase' > make: *** [distclean-recursive] Error 1 > > > Expected: > > Don't fail. > > > Additional information: > > The problem is also observable without using ".."; > foo_SOURCES = b/foo.c, bar_SOURCES = foo.c > also yields the same issue that one .deps is gone before the Makefile of > another directory is executed. > I would suggest using non-recursive builds, that solves many issues this kind by giving make a better and complete view of the project and its interdependencies. I *might* end up fixing this bug if I manage to rework the dependency tracking code to use the '-include' directive (which will require dropping support for all make implementations not supporting such directive, but I think that would be a good trade-off), but I'm not making any promise. You should keep in mind that non-recursive builds are discouraged (except the very rare cases where the stuff in a subdirectory is truly and completely independent from *all* stuff in any other subdirectory), and we'll no longer actively work on adding features or fixing bugs involving them. Regards, Stefano From unknown Mon Jun 23 13:11:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 17 Jan 2015 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator