From unknown Fri Sep 19 14:44:14 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#79466 <79466@debbugs.gnu.org> To: bug#79466 <79466@debbugs.gnu.org> Subject: Status: 31.0.50; Build in a separate directory Reply-To: bug#79466 <79466@debbugs.gnu.org> Date: Fri, 19 Sep 2025 21:44:14 +0000 retitle 79466 31.0.50; Build in a separate directory reassign 79466 emacs submitter 79466 Helmut Eller severity 79466 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 18 04:01:44 2025 Received: (at submit) by debbugs.gnu.org; 18 Sep 2025 08:01:44 +0000 Received: from localhost ([127.0.0.1]:59889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uz9aJ-0004pp-V6 for submit@debbugs.gnu.org; Thu, 18 Sep 2025 04:01:44 -0400 Received: from lists.gnu.org ([2001:470:142::17]:55028) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uz9aF-0004pQ-Nk for submit@debbugs.gnu.org; Thu, 18 Sep 2025 04:01:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uz9a9-00019q-TW for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2025 04:01:34 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uz9a6-0005a1-FY for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2025 04:01:33 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-45e03730f83so2591495e9.0 for ; Thu, 18 Sep 2025 01:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758182482; x=1758787282; darn=gnu.org; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=fP0U4axRHbdLH5jgEFrowQy9odiJoh700uFtRcm4hqs=; b=GMWUAM/t3+0FVi/FjLJ53f79hZ4YIA88bXSG/fZ+A1l1T6GtkWkR0sFgGh1tyzSak2 dmz+5A89uID39YD6zcq9ZvGOKJtOWZHvaxchpMoECMf5hETFcKE2JpTUVTPv9kOYU+lQ od2WUklhVXF5xWRR32d+wk/81xQqElrwaHaDwcMePd7D06dZE62jOAVxjpqOEf4MKPX0 wuTuaWc09YIfeVNQfGePc2WjwbswbCiJBTYt4wWptuL1kTgj+KKzMs+K2FVTJCzO3TOD 3LQ+DT9yHYtX/6eUf9fUO/chRGxYIrH8S2+gzhQ2UWy7Jm82E1PsDUaSgvBwFKz7bIzV 8Tjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758182482; x=1758787282; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fP0U4axRHbdLH5jgEFrowQy9odiJoh700uFtRcm4hqs=; b=o6a84mbNR4QML2xQvWqIzJaVcYMQa8FWbS8GPq6GcZgUYmy1/qWaYcANauLDYTqqvL JdbNX3Kih9u60UR4uEQ4kjeUn7wSWSO068p5HVrrXDmQjwPJUVHI41djNrD1sH4rtGPj zdfWNNLgoy7xXa2sy9jRceMw4k+zkJ9XVEt+ZeaNMb61U/wp01/pZb0SDbNU8oCDsIBq 8nM1RBE5sV56khoOPeFEi+9NTonR9ESK6HaEiuFxwVwSgW53E9LeIMyJ5hv7bTyX7NhH zbypOCEZ02fEsolUjRgDKywKNbiJPIUBtEPVSND1F+vfPu9FBM2yyaeOgVgue2AwxMCT zDHA== X-Gm-Message-State: AOJu0Yy73Fez/VbV9MolMCahHZ1ZNqxo6/g2A7GldukJIefdX1e+GWKb N9JMnaFxf1fy1NV97lA/a2vaHl0au1ldpA+bPtld1EJIvupAEQw2i8jNG3b/Tg== X-Gm-Gg: ASbGncssXrfIy9E8xxuVpiEuMfNhrugY24m1VADXRSqakdHkrqAxfIUJ8OWgJOsmK5h pZ3SGnhHln8sBU4RxNZEixKRj99LhBskRs8Ztqjj+hlWVbqtU4YJxEhSuCNZBVmJ/0Mpo+tXzWC iGCCO70M100blIKycNSEOV5XbSbOOiXHJO+UOvoOQx11PFCXa4LHc2/AG8vgGQYBMDtk+Wpu5Tx AGliseRaHuDABASCVEuWoPRP+AhAimeqIv904jfSZq6aFZ9aaqzFaeVDELAGBlU1QVCjXKuTaIT tuliDEQOEL9SFB1wgS31ORF6gwlJyZCkKQysVKwx8T5M4c/nYtEdlfZeXpJvUIbZpxsgb82y2ct lMU/0WTkG4cA7dB6yUTVqWlb2owCHU+vBCmxXFzY= X-Google-Smtp-Source: AGHT+IEr1RVCfqxNSN/+e+LZyPsWBxbF6Are/BqaPto5Dkm4xg4fadHV7T1+m0m2a/D2YX71BSzydQ== X-Received: by 2002:a05:600c:450c:b0:45d:f7f9:9822 with SMTP id 5b1f17b1804b1-46202a0ed47mr46344645e9.12.1758182482014; Thu, 18 Sep 2025 01:01:22 -0700 (PDT) Received: from caladan ([31.177.112.212]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45f321032a1sm59570675e9.2.2025.09.18.01.01.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 01:01:21 -0700 (PDT) From: Helmut Eller To: bug-gnu-emacs@gnu.org Subject: 31.0.50; Build in a separate directory X-Debbugs-Cc: Date: Thu, 18 Sep 2025 10:01:19 +0200 Message-ID: <87a52sw5o0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=eller.helmut@gmail.com; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (/) The file INSTALL under 3b) says that it should be possible to build in a separate directory. However this doesn't seem to work. I did something like cd /tmp mkdir build cd build /path/to/source/configure -C CFLAGS="-O0 -g3 make After some progress this aborts with: ... GEN ../etc/DOC /usr/bin/ld: cannot find dispnew.o: No such file or directory /usr/bin/ld: cannot find frame.o: No such file or directory /usr/bin/ld: cannot find scroll.o: No such file or directory ... It seems that changing the .c.o rule in src/Makefile like so .c.o: - $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $< + $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $< -o $@ allows the build to complete. However the .elc files still end up in the source directory. This might actually be useful, but I'm not sure that it's intended. Should we fix this? From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 18 05:24:41 2025 Received: (at 79466) by debbugs.gnu.org; 18 Sep 2025 09:24:41 +0000 Received: from localhost ([127.0.0.1]:60203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uzAsb-0001v1-39 for submit@debbugs.gnu.org; Thu, 18 Sep 2025 05:24:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59050) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uzAsY-0001uW-F7 for 79466@debbugs.gnu.org; Thu, 18 Sep 2025 05:24:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uzAsT-0000Bg-3l; Thu, 18 Sep 2025 05:24:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=FbiqdYBO7CFF810tWiduG+2dWCT7I3HHd0utw51XbnE=; b=qi3t77We0jNG dkmwP2X7fDCZNsdBOEaveBEQxz9fTeWZ/h67uY926OOjnFSJW0u0wJQ/Mg47e794k3OpGmZUFZ6dT 78bsK91eW3swQTcCcaMNPIg1gitIIRP6VeCb5UPPjkq/5qr398v7WfXcPjluZ+61pMnw8XKs7Wik6 qfUPFZlsd/EmZAm1fX28INtsmEFK0kGWWmE7L4tnoYwPTaMcyoK5qppoFPpHNjNmNaGzNozjSIzFC lPbr3sMlp96wtZHoU7/N7m8FXJFPh4mwYeV47DWFR/BsdWZkbrs5rZ9uw//M1gUtRuE71Rs5kGsaD TD6ImGRpfgSugkiZN2xIPQ==; Date: Thu, 18 Sep 2025 12:24:27 +0300 Message-Id: <864it0kt9w.fsf@gnu.org> From: Eli Zaretskii To: Helmut Eller In-Reply-To: <87a52sw5o0.fsf@gmail.com> (message from Helmut Eller on Thu, 18 Sep 2025 10:01:19 +0200) Subject: Re: bug#79466: 31.0.50; Build in a separate directory References: <87a52sw5o0.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79466 Cc: 79466@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Helmut Eller > Date: Thu, 18 Sep 2025 10:01:19 +0200 > > The file INSTALL under 3b) says that it should be possible to build in a > separate directory. However this doesn't seem to work. I did something > like > > cd /tmp > mkdir build > cd build > /path/to/source/configure -C CFLAGS="-O0 -g3 > make > > After some progress this aborts with: > > ... > GEN ../etc/DOC > /usr/bin/ld: cannot find dispnew.o: No such file or directory > /usr/bin/ld: cannot find frame.o: No such file or directory > /usr/bin/ld: cannot find scroll.o: No such file or directory > ... You need to make sure the source tree is free from the artifacts of a previous build. Did you do that? > It seems that changing the .c.o rule in src/Makefile like so > > .c.o: > - $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $< > + $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $< -o $@ > > allows the build to complete. However the .elc files still end up in > the source directory. This might actually be useful, but I'm not sure > that it's intended. > > Should we fix this? Shouldn't be needed, since VPATH should take care of that. But if some products of a build are in the source tree, Make could be fooled.