From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Trouble with make creating Emacs 28.1 Windows binary dist Date: Tue, 05 Apr 2022 14:26:56 +0300 Message-ID: <83k0c3epof.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10008"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Corwin Brust Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 05 13:28:17 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nbhM9-0002L1-OP for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Apr 2022 13:28:17 +0200 Original-Received: from localhost ([::1]:59104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbhM8-0006ti-Pl for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Apr 2022 07:28:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbhKz-0005pB-5S for emacs-devel@gnu.org; Tue, 05 Apr 2022 07:27:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57306) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbhKy-0005N3-K6; Tue, 05 Apr 2022 07:27:04 -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=Ysx0wQasdNfY4oncwGRxRz390QJhPHl+qGKSz+kzicY=; b=oLle0V+Cv/dy 4trPd8FCg9krDaA9+qlrX4IgFshfTdI6EF7uhrGJU5v2MU1eN3Wch7Z+QQU6q1bpGvFBAZEkPlrE9 1G0+pBGw0z8Y1Y1kZ4svtqSjR+Xsu3OvZLoQQK9EeZ2Cl98JDJVjTqxNc5Is+yqfXZbwKulUrcH5D 2hZYSt3pubJtzx3MsrW8vc4AjnA2+AKsDIFTsi/gvigTgVW1znXRUosJ5IYQXLOANIlNIoTRwFcx/ 54zDkeQl3QZnuQw1KDP/kLMZpnGWYDhMj0mnyVrQ4k+boMm+ORkA7A6EX4bZIpFoF9YvI3PNMSfcC elcJuMDkN8ZAOB5BezkNEQ==; Original-Received: from [87.69.77.57] (port=3579 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbhKo-0006ws-Ne; Tue, 05 Apr 2022 07:26:56 -0400 In-Reply-To: (message from Corwin Brust on Mon, 4 Apr 2022 23:39:51 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287806 Archived-At: > From: Corwin Brust > Date: Mon, 4 Apr 2022 23:39:51 -0500 > > git fetch --all --tags > git checkout tags/emacs-28.1 -b emacs-28.1 > ./configure --without-dbus --with-native-compilation > --without-compress-install CFLAGS=-O2 Why are you building the Git branch instead of building the release tarball? Building from Git takes much more time, for starters, and technically you don't build the same sources as the ones released. > All of which appear to work fine. Then I perform the build as such: > > make -j 20 install-strip prefix=${HOME}/emacs-build/install/emacs-28.1 > > That failed. FTR, had this worked I would have done this: > cd ~/emacs-build/install/emacs-28.1 > zip -r -9 ~/emacs-upload/emacs-28.1-no-deps.zip > unzip -d bin ~/emacs-build/deps/emacs-28-deps.zip > zip -r -9 ~/emacs-upload/emacs-28.1-no-deps.zip > > And then I would build the executable installer, after which I would > be ready to sign and upload to the GNU FTP site. > > Here is the first of the errors that appear to stop things. There are > several of these, all quite similar: > > ELC cedet/ede/pconf.elc > >>Error occurred processing cedet/ede.el: File error (("Renaming" "Permission denied" "c:/Users/corwi/emacs-build/git/emacs-28.1/lisp/cedet/ede.elc3EEf9c" "c:/Users/corwi/emacs-build/git/emacs-28.1/lisp/cedet/ede.elc")) > ELC cedet/ede/pmake.elc My guess would be that building and installing in one go, and with such a high parallelism at that, causes some conflicts, whereby two programs access the same file together, and one of them attempts to rename/remove the file. My suggestion is first build with "make -j20 ..." and then install with "make install-strip". The latter doesn't need such high parallelism anyway, since it basically processes stuff serially.