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.bugs Subject: bug#62450: 29.0.60; Skip failing tests on Cygwin with native compilation Date: Sun, 26 Mar 2023 17:54:26 +0300 Message-ID: <83mt3za7h9.fsf@gnu.org> References: <519b122a-a46c-0abd-6bc8-a4dc64f869ac@cornell.edu> <835yaoazp7.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14277"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62450@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 26 16:55:29 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pgRmL-0003T2-DX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Mar 2023 16:55:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgRlz-0006KU-1s; Sun, 26 Mar 2023 10:55:07 -0400 Original-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 1pgRlu-0006K3-Lp for bug-gnu-emacs@gnu.org; Sun, 26 Mar 2023 10:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pgRlu-0002h1-Cf for bug-gnu-emacs@gnu.org; Sun, 26 Mar 2023 10:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pgRlt-0005om-OL for bug-gnu-emacs@gnu.org; Sun, 26 Mar 2023 10:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Mar 2023 14:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62450 X-GNU-PR-Package: emacs Original-Received: via spool by 62450-submit@debbugs.gnu.org id=B62450.167984247622325 (code B ref 62450); Sun, 26 Mar 2023 14:55:01 +0000 Original-Received: (at 62450) by debbugs.gnu.org; 26 Mar 2023 14:54:36 +0000 Original-Received: from localhost ([127.0.0.1]:45672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgRlT-0005o0-OB for submit@debbugs.gnu.org; Sun, 26 Mar 2023 10:54:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgRlR-0005nj-48 for 62450@debbugs.gnu.org; Sun, 26 Mar 2023 10:54:33 -0400 Original-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 1pgRlL-0008Er-Fs; Sun, 26 Mar 2023 10:54:27 -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=hSNlG2hdqHrxRzGqA9BZWkpukshcHxPV8/rann9qDW8=; b=L+mG3TRZx0Hr js8SCxQMlgpkazTNHOSDEZgLA7ijp68jiBfAhPYlf0qGmmwGPCfQoe70e97V1xZdsL3UpdGSdEe2j 1qTDJVfERLV6MF7MtzfeF69PWYTZprpiu5P6u4nFSwx6Zc9BcuR7LmXS0xjKtI7Sh454Gmxc/O71k 0d1gb3yKhCJo8tJQfGIrtJN7dQXR7byXwTfTtEsdfN19b1xdwrxexrASoZ1Clp5uaHSBNwf8rRvJk cfPoVwOminHGT5bVrvZ3hR0ERBvlTP+DDc3uxG+7J+AQwgzUplhPf0dg63oNjA1Ux/zn97vvVcW/K rEB79vJQ3P5eX6MFntRAMg==; Original-Received: from [87.69.77.57] (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 1pgRlK-0004Zz-IW; Sun, 26 Mar 2023 10:54:26 -0400 In-Reply-To: (message from Ken Brown on Sun, 26 Mar 2023 10:15:17 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258687 Archived-At: > Date: Sun, 26 Mar 2023 10:15:17 -0400 > Cc: 62450-done@debbugs.gnu.org > From: Ken Brown > > On 3/26/2023 12:44 AM, Eli Zaretskii wrote: > > > (I do wonder whether this is a good idea in the long run. Native > > compilation is here to stay, so avoiding its testing for Cygwin might > > not be the best solution. The PROBLEMS entry seems to imply that > > relatively simple measures, which the test suite could take, could > > avoid the fork failures, so my recommendation would be to try to find > > a better fix in the future, albeit not in Emacs 29.) > > I agree, and I hope I can do it. Great, thanks. > By the way, I've been experimenting with building the .eln files > with ASLR enabled, via the following: > > --- a/lisp/emacs-lisp/comp.el > +++ b/lisp/emacs-lisp/comp.el > @@ -186,8 +186,9 @@ native-comp-compiler-options > :type '(repeat string) > :version "28.1") > > -(defcustom native-comp-driver-options (when (eq system-type 'darwin) > - '("-Wl,-w")) > +(defcustom native-comp-driver-options > + (cond ((eq system-type 'darwin) '("-Wl,-w")) > + ((eq system-type 'cygwin) '("-Wl,-dynamicbase"))) > "Options passed verbatim to the native compiler's back-end driver. > Note that not all options are meaningful; typically only the options > affecting the assembler and linker are likely to be useful. > > I've been building and running Emacs like this for a couple months and > not doing any rebasing, and I haven't seen a single fork failure outside > of the test suite. So this might be the way to handle the problem in > the long run. Feel free to install the above on master. > But I still hope to figure out what's different about native > compilation in the test suite. You mean, why the fork fails? I thought the PROBLEMS entry explains that?