From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "H. Dieter Wilhelm" Newsgroups: gmane.emacs.devel Subject: Re: Native compilation on Windows, was Re: Bootstrap Compilation Speed Date: Mon, 17 Jan 2022 17:25:00 +0100 Message-ID: <86h7a25nz7.fsf@duenenhof-wilhelm.de> References: <86wnj18f7w.fsf@duenenhof-wilhelm.de> <65b2a18bc1a597333b42d35a2717dc33@russet.org.uk> <86lezg95ud.fsf_-_@duenenhof-wilhelm.de> <83h7a4zu89.fsf@gnu.org> <86czks94vl.fsf@duenenhof-wilhelm.de> <86v8yj7vhv.fsf@duenenhof-wilhelm.de> <83v8yjyj21.fsf@gnu.org> <87sftmn1k9.fsf@russet.org.uk> <83sftmwner.fsf@gnu.org> <87mtjump5q.fsf@russet.org.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13084"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Eli Zaretskii , corwin@bru.st, emacs-devel@gnu.org To: Phillip Lord Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 17 17:28:03 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 1n9UrT-0003Gp-So for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Jan 2022 17:28:03 +0100 Original-Received: from localhost ([::1]:60602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9UrS-000257-I3 for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Jan 2022 11:28:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9Uof-0008Lh-Oy for emacs-devel@gnu.org; Mon, 17 Jan 2022 11:25:10 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.130]:43211) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9Uoe-0000cp-1L; Mon, 17 Jan 2022 11:25:09 -0500 Original-Received: from ping ([92.116.180.222]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MS1G7-1mlfbq1zpb-00TRiB; Mon, 17 Jan 2022 17:25:01 +0100 In-Reply-To: <87mtjump5q.fsf@russet.org.uk> (Phillip Lord's message of "Mon, 17 Jan 2022 14:07:29 +0000") X-Provags-ID: V03:K1:cDmMWPHL0/ZKFzZVZ5FXHgKBd3iLxjBm/Cd9KVxL7v04+3SucAm jEXZ/Qb+KkV4DcH8824Izt+Oqk03vgDi+WAuH5x9+gjMXQO213HH6hAGb+NDsjPHnltpo0a OdviQ/NnqUouMCG6RK8ItxZQtfSSiaxSc+t4M37OjsrQqZsQ3df/GaXUkoJQ8FrtARiwQfc ISB9KJ8Qacx407Es5CQDA== X-UI-Out-Filterresults: notjunk:1;V03:K0:pGWbogfiLBk=:YG8iinAmXFgYLA3Ak1rS8r S9GNMXC1vlGAmSlOf5wGk3r9HY1fWiedZrTS3iGlU/lwJnTQKYSOSYr89rhPfwIZUWL8ZR2Az WToRuxsqdZzg90NoIcSmSdJm3x0By3W5xughcGjtlbzaFh7hdOr4FultOEZA5+ujmydpQ1lq3 fosUbuUqzZDoku/psB9XRKY5L9cVKGFKQp0oGTQGyy+m+zQnTtDNJ8TUYZyAxDNH3cGLD2FNc Q0kU9mRVvGJMyz/2NmaAx+57HagcBNYJC5cfncS/SfnbVmex4nFbMfEEaDZJAX7ovykURGatt t4T0VSQxAHApfO46+TWbMsFDtk2aTPn1JVnwcVGvMQ+Tuu/c500Pq8hLrwlvDRFXnWkqAgAJ1 WLgQ3rN1YO2si5f+PTC3ZK0nhCEodqxbvwwAMCR+LbeBc/fhoEAHT6CB3PRpVA4ZzRRBfahJR m+vSAYfCvQvgO5ObXBsUXlAtfFlZJHaptjWRjCsQoMwH6mqWDx6VKoOnwkSLe3Z00MQc72gOZ SXbzxXACHfojYAUWLPwsbsMInMfzlJlep5jD3XJFISQGZTpwdwW2byuiXnHMKQrTYeIutCK+9 fNlrXtoLHNfOp8uKAKfRCbsiy+3ZQHdS0ET4iG8EZ83zhbdvDB/rAsvxhpbB1w9DCwwwPRLsq PFm/6YbsUnbkky+PoGzt9UO4MN/B2meX68I39WVYtJo1cv30w/qWlsbDd5pnqrgjveCaKJOu8 Xgk+UU2cVCuuzHxV Received-SPF: none client-ip=212.227.126.130; envelope-from=dieter@duenenhof-wilhelm.de; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:284884 Archived-At: Phillip Lord writes: > Eli Zaretskii writes: > >>> From: Phillip Lord >>> Cc: "H. Dieter Wilhelm" , corwin@bru.st, >>> emacs-devel@gnu.org >>> Date: Mon, 17 Jan 2022 09:39:34 +0000 >>> >>> Eli Zaretskii writes: >>> >>> >> I could build Gnu-Emacs-28.0.91 when I used the archived sources >>> >> >>> >> $ ./configure --with-native-compilation >>> >> >>> >> The difference to the build-zips.sh seems to me some more options from >>> >> the script (and that is build from the git tree): >>> >> >>> >> echo [build] Configuring Emacs >>> >> $REPO_DIR/$BRANCH/configure \ >>> >> --without-dbus \ >>> >> --without-compress-install \ >>> >> --with-native-compilation \ >>> >> $CACHE \ >>> >> CFLAGS="$CFLAGS" >>> >> >>> >> Could it be that these additional options are spoiling the build? >>> >> (CACHE=-C , I think.) >>> > >>> > I'd drop the CACHE part, so that the configure script starts from a >>> > clean state. >>> >>> I wouldn't! >>> >>> CACHE=-C is used only on a snapshot build. These were always built >>> incrementally from the previous version because I judged that the risk >>> of a broken build was small compared to the significant time and cost >>> saving that the incremental build provided. >> >> AFAIU, Dieter said he did more than one build in the same tree for >> several different configurations, so I suggested to eliminate the >> cache as a possible factor for the problems he saw in the second >> build. Apologies if I misunderstood. > > > Oh, sure, that's fine. Just saying that the `CACHE=-C` is there for > mostly good reasons! I'm too inexperienced to judge the options. But, for the moment, it seems to me when the $CACHE line is active then there is NO native compilation going on for my builds. (No idea why, I'll try to confirm this.) The current idea is to build 28.0.91 with build-zips.sh - in the usual way but --with-native compilation - and then copy the lisp-native/ folder into the archive. Then checking if such a build is running and actually loading the .eln files on a Windows system without MSYS/MinGW. Hmm, how can I test if Emacs is actually loading some .eln and not the .elc files? Dieter -- Best wishes H. Dieter Wilhelm Zwingenberg, Germany