From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 02 14:54:15 2021 Received: (at submit) by debbugs.gnu.org; 2 Oct 2021 18:54:15 +0000 Received: from localhost ([127.0.0.1]:60579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWk9G-0007tN-Qc for submit@debbugs.gnu.org; Sat, 02 Oct 2021 14:54:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:48528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWk9E-0007tF-CC for submit@debbugs.gnu.org; Sat, 02 Oct 2021 14:54:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWk9E-0008Ju-3L for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 14:54:12 -0400 Received: from mail-dm6nam11on2072f.outbound.protection.outlook.com ([2a01:111:f400:7eaa::72f]:34633 helo=NAM11-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWk9C-0005hu-5d for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 14:54:11 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UYZnvBt3AJ3sDJv1yAHaeT/U/dv4KItBdYVPRJPLervVW/XO+6YSH1HfxSopKomhcSSflcZMQjv5XkDkDMa8SWmn0B/Gv1iFKgt7ZrlpojRVs3LNLHQBMoIvBz6HMy48SYZuqtq2wshB7bGt5mgLz5VS0r6ZAmoBDxTcg8tbrIq6lySJIk6UT0UfKmEnmXyIycIwHWXU4vzGkBRw5E7LJzhK3dLOcQgcy4pFfflIgf7pgtH7KXAZXGYtT3u0c8Rz0ZgUbQi3AiExB66MFBgL6atpruYncZeQDwPU37jn2Hs+J05FXkULmGYEG8vJTpe3se5uaHCfWgk8QTN6F5G5Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=un7fEXSqjTkHTMnjmyoz/RUHmxYnThjKYYlpOuvFi2s=; b=Vn1tf2E/cTdW+ZUl613obEntlQe4AHHqH8883SbTvllaIUwNwcJyYutyKI3xw9y13K0yz463+M8dxnj7sooeGl+svUlXaYPMjRbjV/viNiUehSLnpcCR7NtGIk1+5sHdk58XZu1pS0BbsrrQye52kywGgi226twDtvKK+hicd4TKj5aTiALLwDSsSA116akH2iZhIF2lDH6831KsEU/6qg6shUg85/6nqxDJUzTJ89dxKTZjGLRLR44DzTUTUed3e0tlTNRaRN5DMkKT+dWtiFh/3Yd1iggsh8s0/XyeccWIhnkxigfnZN14kwnzUMU9thnNy4QMZNE009R8m8E2iQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=un7fEXSqjTkHTMnjmyoz/RUHmxYnThjKYYlpOuvFi2s=; b=IGiT2SQNpYqPz46vS/4NXi3F60WKKdlsYKvOchxARA0Hlu/xqh2FonJVpNojNTpEHAx3uz6Yf9wSmY7Ey10WKyw7hxbQP54KCrvnrBHoZatio5kOgMKAiY3uYxUm28TZT0wp+A/CDvMBZ5hOJd1zusgmODjnSMRGx1Pf8rlD9pw= Authentication-Results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=cornell.edu; Received: from BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) by BN6PR04MB0243.namprd04.prod.outlook.com (2603:10b6:404:19::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.13; Sat, 2 Oct 2021 18:49:06 +0000 Received: from BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::d1a8:b6b3:dfd1:b093]) by BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::d1a8:b6b3:dfd1:b093%6]) with mapi id 15.20.4566.022; Sat, 2 Oct 2021 18:49:06 +0000 To: bug-gnu-emacs@gnu.org From: Ken Brown Subject: 28.0.60; mh-utils-tests fail with native compilation Message-ID: <9fd40a2f-c653-60b7-7f59-09c925122bf5@cornell.edu> Date: Sat, 2 Oct 2021 14:49:04 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MN2PR19CA0017.namprd19.prod.outlook.com (2603:10b6:208:178::30) To BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) MIME-Version: 1.0 Received: from [IPv6:2603:7081:7e3f:3419:709e:f8f0:91a9:ad0] (2603:7081:7e3f:3419:709e:f8f0:91a9:ad0) by MN2PR19CA0017.namprd19.prod.outlook.com (2603:10b6:208:178::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14 via Frontend Transport; Sat, 2 Oct 2021 18:49:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 62d073c4-a0f8-4e3d-7afa-08d985d54fb2 X-MS-TrafficTypeDiagnostic: BN6PR04MB0243: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1122; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JVfCTn+9o6QaTIOX8BIzM+bOL/+W8fGUMyAlHF5NcP7qE1hCUqJXkcgUYom/HVlA2Gi0LozPatljXs5SgtpPSBYwIWTtZ98PqPbyw0qk9fVA+IB8ve0M1pPCzJS5PPsTKT/w1B/dUhSQPMQvK4LTCs21K8TymnCCadknTNdjDfIOi1fThT0PjozAHF9tWOxgWl1+g1Cm8JgXrccQZVJS4LiqecQtwfKF1NwXMV3u+GKjFIB+bgBE3VzhL2xtmGuBoZ4ZimZRAVFffZlFzohnzmYr+kNLoSyabdlbKkm1bJQcHfX163eu7vVNleRHQ5I2DnJRe/nzJnvs7KJ0at9FvxD0TBH4ipn8k0W9WvbiN9JmMpOZWfQSgP5etjSmDZQd65aX63+XjmF0W0dSUdEHcL0yiQOJ3VlmJMIkzQtSssyeA8En1r6kaHrLEfviysARbB+OWHe01pfoPgvKx2mG6AX3laT7L8jbXXgTDeAUUhcGg5GAWsG4AAuGdC8MklL7ezjk/d0K5a+EEqND+6K7nA5U1290l/UEpkZcV/g64h9PjTPpbrYiiNKfCJPrw9coKL99aYwkZbkO7BJIqXuiTRTn6g8MtR/WduvvxCs+Ak5dnYw6N4Hxp9LVn9jIYvbiZaI+LCHmHcWYui7cesaI9qVgkdVX7IhfVK/BdGLHAz3EXz7Taww0d8bPXgNDz25cDh+YeYaeOJCxbU4uvKTWkWhY/hUCYXZj0GU/5wZx8Xn5xkyzaJaOGIuLxT0VeFer X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(5660300002)(186003)(2616005)(31686004)(66556008)(66476007)(8936002)(66946007)(508600001)(38100700002)(786003)(86362001)(8676002)(316002)(31696002)(6486002)(6916009)(83380400001)(75432002)(36756003)(2906002)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?Windows-1252?Q?wEWSp6bMPAxd8gUT81kZcQPTw3uOo3H/nCbUqZBOtdWVbFNCvR4//yk3?= =?Windows-1252?Q?IA4TWy3DWXAIRwSEYkGmhYJ1dbCC+frvsj/7o+b+gD6V1QnGvZuEg0dg?= =?Windows-1252?Q?fWwjsRkErRY5wDERpR7bt4y99TSbgdHvJw7KsBfME1NaLEEdi2bwSrIu?= =?Windows-1252?Q?ZzUyleRw0+huGa1yu+W8004wDhmQTQJYRsrYQaxaFgaMlzruUho/TT/a?= =?Windows-1252?Q?Zo/to1TuvH3rt3qiuXID41NKMW+q1lFTdY2bWkYy2sqkjIvWa+Cw7TSA?= =?Windows-1252?Q?CdOJuW0hRILNgF6g+UA1lOPwvOzo6jQWJtqk7BOlYdt6w8m5VPf5pjPf?= =?Windows-1252?Q?yy30SAzd1jZpOpNBI67exbDvbtX1Ew/vAYgRI7HdSs6vTMS43ejoOIyn?= =?Windows-1252?Q?+3S3ObnI4/SeXhD0AnvBVE452Qxdxr3TRsxEe8SG6zzve7UcSyq/cFxs?= =?Windows-1252?Q?nNQ5tfCUU+4wmO8UyQYNhF99CnVcNNKcLVrki7zTZf8Kxrh2mugbfxdM?= =?Windows-1252?Q?gUHOr7oH0YioCVrSUUaY8I201vcjn6IpDdeylIwlyNX9zJnKIPYWeUGN?= =?Windows-1252?Q?1Ummf/9+uxEU+Nm70DR1JiSnjWMWE/MQcjgjPqT2aQjPOTmiRUfOzI5n?= =?Windows-1252?Q?XYtuKT2sLDgcEannYSxvnzmbzhWuDDBwwQK4deNsQu3Z3Iu3X5vVjcBg?= =?Windows-1252?Q?XSiDPQkMav/2uem2VRDI0vqFvdQz6tQQCo3pD8l2vBX2e4Jw73Ma/i39?= =?Windows-1252?Q?aBTKIK+40Y95/rR8xFVEzv5RKEWNExJ6nNZbBNpK0cPWyspQxM4HDH3B?= =?Windows-1252?Q?Cvv1/WO43zC9aOP58bWbn/XIU8/ipZwqSgDdL1WHHP2+gMZ5W+n6OU39?= =?Windows-1252?Q?EhZIUunhcvEexfoYBez0t/Gx5iKRJ+p6fiLcNeHqpv8SVI5P8V1FrAYa?= =?Windows-1252?Q?mDltKI9IU1hjTkc6WHcNWjoU3I9hmD1vDdwxBC8RvGvhE0MSBX+9khUp?= =?Windows-1252?Q?MDdYoLAgs420Q4eHYzsZSHgVtLqSnvpuC5JpifN3GwfmcyTmzyIl+N3Q?= =?Windows-1252?Q?lv0ttI4dmFdYndCjUGYWiiVxwRXTBf4sPVbeZLhggHdZQrSTqIuq3lTl?= =?Windows-1252?Q?jGuk5uDVwsegyKqDmjlhDDJDej7qypwFH+yWfAtGzvuX9Tq9LH0CO0VM?= =?Windows-1252?Q?43OaiDLsQqlo8hD/SLhTG3kABd1BQVniIxzPpw5UlvioU5+Qxs2WwDi3?= =?Windows-1252?Q?t41t810XUWAlpinS5j9lrOHvc3an+r/QgRF8gkiVtAohFivo9bYA2VTW?= =?Windows-1252?Q?/LMrzIe0bNP6liXnY1jgZnlCHYcQWkZgGQPw9RPQSPDWdQ6UUm7lLiAi?= =?Windows-1252?Q?mhUJfsyMxpwLXCIZp5oZ+TZJPSJbFp3We2map1INwOxcageA5Tp2ELLp?= =?Windows-1252?Q?gABHf7Vt9dkV6x7rl+g0+fXt2vpsdGwQ16RHgPmASRcbInhswzMMbySU?= =?Windows-1252?Q?dg8k9NB8?= X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 62d073c4-a0f8-4e3d-7afa-08d985d54fb2 X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2021 18:49:06.2780 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WcCOCgWHjbj3UMNFchV4VUloyl6o4Yg82/FKll1hlQ77HZ6DegTCRcoqPbLHwVXDZXNpMY56nyxol5zhsmNK+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0243 Received-SPF: pass client-ip=2a01:111:f400:7eaa::72f; envelope-from=kbrown@cornell.edu; helo=NAM11-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, MSGID_FROM_MTA_HEADER=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) 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: -2.6 (--) Most of the tests in mh-utils-tests fail if I build the emacs-28 branch on Cygwin with native compilation: $ make -C test mh-utils-tests make: Entering directory '/home/kbrown/src/emacs/x86_64-emacs-28-native-lisp/test' make[1]: Entering directory '/home/kbrown/src/emacs/x86_64-emacs-28-native-lisp/test' GEN lisp/mh-e/mh-utils-tests.log Running 16 tests (2021-10-02 14:13:13-0400, selector ‘(not (tag :unstable))’) No MH variant found on the system call-process mock unexpected arglist (emacs --batch -l /tmp/emacs-int-comp-subr--trampoline-66696c652d6469726563746f72792d70_file_directory_p_0-rg5Ucy.el) call-process mock unexpected arglist (emacs --batch -l /tmp/emacs-int-comp-subr--trampoline-66696c652d6469726563746f72792d70_file_directory_p_0-f6P2ZU.el) Test mh-folder-completion-function-02-empty backtrace: signal(native-compiler-error ((lambda (arg538 &optional) (let ((f #' comp--native-compile((lambda (arg538 &optional) (let ((f #'file-dire comp-trampoline-compile(file-directory-p) comp-subr-trampoline-install(file-directory-p) fset(file-directory-p #) (unwind-protect (progn (if mh-test-variant-logged-already nil (mh-va (let* ((vnew (make-hash-table :test #'equal)) (vnew (getenv "MH")) ( (let ((lexical-binding t)) (let* ((vnew (make-hash-table :test #'equ (closure (t) nil (let ((lexical-binding t)) (let* ((vnew (make-hash- ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test ert-run-test(#s(ert-test :name mh-folder-completion-function-02-empt ert-run-or-rerun-test(#s(ert--stats :selector (not (tag :unstable)) ert-run-tests((not (tag :unstable)) #f(compiled-function (event-type ert-run-tests-batch((not (tag :unstable))) ert-run-tests-batch-and-exit((not (tag :unstable))) command-line-1(("-L" ":../../emacs-28-x86_64/test" "-l" "ert" "-l" " command-line() normal-top-level() Test mh-folder-completion-function-02-empty condition: (native-compiler-error (lambda (arg538 &optional) (let ((f ...)) (funcall f arg538))) "") FAILED 1/16 mh-folder-completion-function-02-empty (1.860486 sec) [...] Ran 16 tests, 4 results as expected, 12 unexpected (2021-10-02 14:13:21-0400, 7.807508 sec) 2 expected failures 12 unexpected results: FAILED mh-folder-completion-function-02-empty FAILED mh-folder-completion-function-03-plus FAILED mh-folder-completion-function-04-rel-folder FAILED mh-folder-completion-function-05-rel-folder-slash FAILED mh-folder-completion-function-06-rel-folder-slash-foo FAILED mh-folder-completion-function-07-rel-folder-slash-foo-slash FAILED mh-folder-completion-function-10-plus-slash-abs-folder FAILED mh-folder-completion-function-11-plus-slash-abs-folder-slash-foo FAILED mh-folder-completion-function-12-plus-nosuchfolder FAILED mh-folder-completion-function-13-plus-slash-nosuchfolder FAILED mh-sub-folders FAILED mh-sub-folders-actual This doesn't happen in a build without native compilation: $ make -C test mh-utils-tests make: Entering directory '/home/kbrown/src/emacs/x86_64-emacs-28/test' make[1]: Entering directory '/home/kbrown/src/emacs/x86_64-emacs-28/test' GEN lisp/mh-e/mh-utils-tests.log Running 16 tests (2021-10-02 14:18:12-0400, selector ‘(not (or (tag :unstable) (tag :nativecomp)))’) No MH variant found on the system [...] Ran 16 tests, 16 results as expected, 0 unexpected (2021-10-02 14:18:12-0400, 0.081313 sec) 2 expected failures From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 02 15:12:17 2021 Received: (at 50975) by debbugs.gnu.org; 2 Oct 2021 19:12:17 +0000 Received: from localhost ([127.0.0.1]:60594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWkQi-0008M7-Vj for submit@debbugs.gnu.org; Sat, 02 Oct 2021 15:12:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWkQh-0008Lu-BU for 50975@debbugs.gnu.org; Sat, 02 Oct 2021 15:12:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58972) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWkQb-0005e6-J8; Sat, 02 Oct 2021 15:12:09 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3376 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 1mWkQb-0007hh-5k; Sat, 02 Oct 2021 15:12:09 -0400 Date: Sat, 02 Oct 2021 22:11:55 +0300 Message-Id: <83o8879r7o.fsf@gnu.org> From: Eli Zaretskii To: Ken Brown , Andrea Corallo In-Reply-To: <9fd40a2f-c653-60b7-7f59-09c925122bf5@cornell.edu> (message from Ken Brown on Sat, 2 Oct 2021 14:49:04 -0400) Subject: Re: bug#50975: 28.0.60; mh-utils-tests fail with native compilation References: <9fd40a2f-c653-60b7-7f59-09c925122bf5@cornell.edu> MIME-version: 1.0 Content-type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50975 Cc: 50975@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: Ken Brown > Date: Sat, 2 Oct 2021 14:49:04 -0400 > > Most of the tests in mh-utils-tests fail if I build the emacs-28 branch on > Cygwin with native compilation: > > $ make -C test mh-utils-tests > make: Entering directory '/home/kbrown/src/emacs/x86_64-emacs-28-native-lisp/test' > make[1]: Entering directory > '/home/kbrown/src/emacs/x86_64-emacs-28-native-lisp/test' > GEN lisp/mh-e/mh-utils-tests.log > Running 16 tests (2021-10-02 14:13:13-0400, selector ‘(not (tag :unstable))’) > No MH variant found on the system > call-process mock unexpected arglist (emacs --batch -l > /tmp/emacs-int-comp-subr--trampoline-66696c652d6469726563746f72792d70_file_directory_p_0-rg5Ucy.el) > call-process mock unexpected arglist (emacs --batch -l > /tmp/emacs-int-comp-subr--trampoline-66696c652d6469726563746f72792d70_file_directory_p_0-f6P2ZU.el) > Test mh-folder-completion-function-02-empty backtrace: Andrea, please look into this when you have time. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 04 09:59:13 2021 Received: (at 50975) by debbugs.gnu.org; 4 Oct 2021 13:59:13 +0000 Received: from localhost ([127.0.0.1]:37955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXOUr-0004ez-A5 for submit@debbugs.gnu.org; Mon, 04 Oct 2021 09:59:13 -0400 Received: from mail-wm1-f54.google.com ([209.85.128.54]:55878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXOUp-0004ek-5P for 50975@debbugs.gnu.org; Mon, 04 Oct 2021 09:59:12 -0400 Received: by mail-wm1-f54.google.com with SMTP id v127so13517683wme.5 for <50975@debbugs.gnu.org>; Mon, 04 Oct 2021 06:59:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=wd/f1/p9ptgy16V0UFnR/mZrqp7iwuagxFlDR2VS5gk=; b=Faun6ec+4ITEfKrhDTMMLLLWliyDWl/O3lINa77bN+1meZFYRqPuIjOrdVCX5u2V1B G2fZ5Vi9tuNmL9jFgVI6uoR/jQ0DFZt9aCLagJnIjzF8I1T3r4CRZ1vW6F65KC7yPLcG ZxJojK/Auh+HdY9OaaH8SVUz02tEUf33Lz7b/I2GDatMpWlY8HG4HA7hBblUDQQZE+hX AMCG2a433UHTqQeAzu7LTXGE57Z0AMkmGu0KstrrxxX1adfQ1BHaCDvlJAlfyLl62O0o o9MvecfylH0A3d6zYnqHot5FOLaBso8GXa10eY7KewLS2Ik3a/RnkTtoWHlx22+sCv/d I4qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=wd/f1/p9ptgy16V0UFnR/mZrqp7iwuagxFlDR2VS5gk=; b=D9sLVAoJOzSyzKvWpMyFqZEC7pzOgJktatmz7ptySAcJvRxq1C8MSCUMRxOs0U2OTl IblgsfGJqacpIiQXA7xms82MMhVks6TEyCgb3PRBaFbBKSg6G4r/A3V+j/1Ul+p4uFfy 4OkKd3fsm23wvuEzwJgggCOj1GO/igOIwcfgaCuje4qZIyeYQ1nGa9EVsw8dVDtqq04H +UrJwFlYYqWtRIsr+DkHKxfC14tql+mOuCh81OCgD4ngY0t+XilFzZSAyjCrM4avrWum n7eUTCnejsfs0wJLfCIFGv38VG6fkwsWM3IU7NyzDUzoZi+lx9g3+fBNuwvTeAad82IZ AD8Q== X-Gm-Message-State: AOAM5302AkaOPwslwTt8AvVQ9y6vLSuBuPkdA9D7UxMueFgz74pxFEB5 2GGBDmpw0Mm4ie4M1XTxR8aAt+ZD8yE= X-Google-Smtp-Source: ABdhPJyEY7aP5fvNuYjC3T4xHFXvhnywWE51T30M8xeE6WbosoXz/ZBt7adDIVeZNEqkjUT4rJVamw== X-Received: by 2002:a1c:f615:: with SMTP id w21mr5679815wmc.16.1633355944732; Mon, 04 Oct 2021 06:59:04 -0700 (PDT) Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id o3sm14643803wra.52.2021.10.04.06.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Oct 2021 06:59:04 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#50975: 28.0.60; mh-utils-tests fail with native compilation References: <9fd40a2f-c653-60b7-7f59-09c925122bf5@cornell.edu> <83o8879r7o.fsf@gnu.org> Date: Mon, 04 Oct 2021 15:59:03 +0200 In-Reply-To: <83o8879r7o.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 02 Oct 2021 22:11:55 +0300") Message-ID: <87pmskzyag.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50975 Cc: 50975@debbugs.gnu.org, Ken Brown , Andrea Corallo 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: -1.0 (-) >>>>> On Sat, 02 Oct 2021 22:11:55 +0300, Eli Zaretskii said: >> From: Ken Brown >> Date: Sat, 2 Oct 2021 14:49:04 -0400 >>=20 >> Most of the tests in mh-utils-tests fail if I build the emacs-28 bra= nch on=20 >> Cygwin with native compilation: >>=20 >> $ make -C test mh-utils-tests >> make: Entering directory '/home/kbrown/src/emacs/x86_64-emacs-28-nat= ive-lisp/test' >> make[1]: Entering directory=20 >> '/home/kbrown/src/emacs/x86_64-emacs-28-native-lisp/test' >> GEN lisp/mh-e/mh-utils-tests.log >> Running 16 tests (2021-10-02 14:13:13-0400, selector =E2=80=98(not (= tag :unstable))=E2=80=99) >> No MH variant found on the system >> call-process mock unexpected arglist (emacs --batch -l=20 >> /tmp/emacs-int-comp-subr--trampoline-66696c652d6469726563746f72792d7= 0_file_directory_p_0-rg5Ucy.el) >> call-process mock unexpected arglist (emacs --batch -l=20 >> /tmp/emacs-int-comp-subr--trampoline-66696c652d6469726563746f72792d7= 0_file_directory_p_0-f6P2ZU.el) >> Test mh-folder-completion-function-02-empty backtrace: Eli> Andrea, please look into this when you have time. FWIW this bug is not specific to cywgin, it happens on GNU/Linux as well: Test mh-folder-completion-function-02-empty backtrace: signal(native-compiler-error ((lambda (arg3 &optional) (let ((f #'fi comp--native-compile((lambda (arg3 &optional) (let ((f #'file-direct comp-trampoline-compile(file-directory-p) comp-subr-trampoline-install(file-directory-p) #f(compiled-function () #)() #f(compiled-function () #)() ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test ert-run-test(#s(ert-test :name mh-folder-completion-function-02-empt ert-run-or-rerun-test(#s(ert--stats :selector (not ...) :tests [... ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable))) ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un command-line-1(("-L" ":." "-l" "ert" "-l" "lisp/mh-e/mh-utils-tests" command-line() normal-top-level() Test mh-folder-completion-function-02-empty condition: (native-compiler-error (lambda (arg3 &optional) (let ((f ...)) (funcall f arg3))) "") FAILED 1/16 mh-folder-completion-function-02-empty (0.320526 sec) (I=CA=BCm assuming the native compiler doesn=CA=BCt like the (arg3 &optiona= l) bit. Didn=CA=BCt we make the byte-compiler signal an error for that recently?) Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 04 10:07:44 2021 Received: (at 50975) by debbugs.gnu.org; 4 Oct 2021 14:07:44 +0000 Received: from localhost ([127.0.0.1]:37978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXOd4-0004wg-Ur for submit@debbugs.gnu.org; Mon, 04 Oct 2021 10:07:44 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXOd0-0004wL-6Q for 50975@debbugs.gnu.org; Mon, 04 Oct 2021 10:07:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=IxmQcWoE2GqaMi5xzPyaunfrN0sUZiOCvz7IIkv8aGw=; b=vZS8RIFLDI+C9MXsoPR/lR4rWJ h/CoEo789hE2ITD7QhnpnrzzWxptg6H0YoaBoklt3maxtLMnGlfOfnp4/XF/8bu3NScvn4nyDEjxb r3WSab6r6ATehFOrPOi3EL6Jt2aAVIhZEWhzBGVWtl/fbHt5oFNletoYgERNuQjus+xs=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXOcl-0003a2-0H; Mon, 04 Oct 2021 16:07:29 +0200 From: Lars Ingebrigtsen To: Robert Pluim Subject: Re: bug#50975: 28.0.60; mh-utils-tests fail with native compilation References: <9fd40a2f-c653-60b7-7f59-09c925122bf5@cornell.edu> <83o8879r7o.fsf@gnu.org> <87pmskzyag.fsf@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXftaDTkHOeamBJ Nj+GeIP///9UTBKyAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UKBA4HCuqF/bQAAAGFSURBVDjLbZQN bsMgDIXN1gMAu8Cwd4DVzgGqJfc/055NkkJaS5Uqf/jvGUKU6YNb6VaZuRHs0ygR8QSWG8DNKGeA chiAbkSJjUo+MlEHtoFsRvUokSl1sGwPopWYhMOLzFHEPORPqCVB8eytUI9wsAr9VgAEwZ/cD4Bc q9E9gGnJpYjtpmKkVVpJYmgAh/2MA7S71BW+KncqTiv3kIjgMKrGLbpyEwDzEg4Uf84yDqquD7QF sNppBHfhWlrKtZXbj+gJWH2ukqhy8ol4BNCkhMh9wg4wW8nQD8d9yDoBNwch8BWUWGQdUlmsoxVx sGsygsQawJ4gVp5TrP4VIJVcge8iQekQV0bQsHMxe6q+Azhyqu/AXtVFkwmoLyjmuwI+zSYAhdk1 H/wH8J/YaB2oXtwH6MPzO8DjDCPQqfITaPfKDNhBXI+53e+AjBvOUyo8ppjd7+mYKvuj1iA6RcC+ /KH4Q7YLwODSk12BR+h0/gTzcAcQ4xcNLT4oS2J+F2G/VF9C/gEWf6lMTPjvrwAAACV0RVh0ZGF0 ZTpjcmVhdGUAMjAyMS0xMC0wNFQxNDowNzoxMCswMDowMNki5fQAAAAldEVYdGRhdGU6bW9kaWZ5 ADIwMjEtMTAtMDRUMTQ6MDc6MTArMDA6MDCof11IAAAAAElFTkSuQmCC X-Now-Playing: Richard And Linda Thompson's _Pour Down Like Silver_: "Night Comes In" Date: Mon, 04 Oct 2021 16:07:22 +0200 In-Reply-To: <87pmskzyag.fsf@gmail.com> (Robert Pluim's message of "Mon, 04 Oct 2021 15:59:03 +0200") Message-ID: <87bl44nasl.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Pluim writes: > (Iʼm assuming the native compiler doesnʼt like the (arg3 &optional) > bit. Didnʼt we make the byte-compiler signal an error for that > recently?) No, that was (&rest). Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50975 Cc: Eli Zaretskii , 50975@debbugs.gnu.org, Andrea Corallo 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 (---) Robert Pluim writes: > (I=CA=BCm assuming the native compiler doesn=CA=BCt like the (arg3 &optio= nal) > bit. Didn=CA=BCt we make the byte-compiler signal an error for that > recently?) No, that was (&rest). --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 04 10:24:57 2021 Received: (at 50975) by debbugs.gnu.org; 4 Oct 2021 14:24:57 +0000 Received: from localhost ([127.0.0.1]:38046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXOtl-0005Vz-3C for submit@debbugs.gnu.org; Mon, 04 Oct 2021 10:24:57 -0400 Received: from mx.sdf.org ([205.166.94.24]:60865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXOtg-0005Vo-UL for 50975@debbugs.gnu.org; Mon, 04 Oct 2021 10:24:56 -0400 Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 194EOdIG003770 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 4 Oct 2021 14:24:47 GMT From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#50975: 28.0.60; mh-utils-tests fail with native compilation References: <9fd40a2f-c653-60b7-7f59-09c925122bf5@cornell.edu> <83o8879r7o.fsf@gnu.org> Date: Mon, 04 Oct 2021 14:24:39 +0000 In-Reply-To: <83o8879r7o.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 02 Oct 2021 22:11:55 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50975 Cc: 50975@debbugs.gnu.org, Ken Brown 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: -1.0 (-) Eli Zaretskii writes: >> From: Ken Brown >> Date: Sat, 2 Oct 2021 14:49:04 -0400 >>=20 >> Most of the tests in mh-utils-tests fail if I build the emacs-28 branch = on=20 >> Cygwin with native compilation: >>=20 >> $ make -C test mh-utils-tests >> make: Entering directory '/home/kbrown/src/emacs/x86_64-emacs-28-native-= lisp/test' >> make[1]: Entering directory=20 >> '/home/kbrown/src/emacs/x86_64-emacs-28-native-lisp/test' >> GEN lisp/mh-e/mh-utils-tests.log >> Running 16 tests (2021-10-02 14:13:13-0400, selector =E2=80=98(not (tag = :unstable))=E2=80=99) >> No MH variant found on the system >> call-process mock unexpected arglist (emacs --batch -l=20 >> /tmp/emacs-int-comp-subr--trampoline-66696c652d6469726563746f72792d70_fi= le_directory_p_0-rg5Ucy.el) >> call-process mock unexpected arglist (emacs --batch -l=20 >> /tmp/emacs-int-comp-subr--trampoline-66696c652d6469726563746f72792d70_fi= le_directory_p_0-f6P2ZU.el) >> Test mh-folder-completion-function-02-empty backtrace: > > Andrea, please look into this when you have time. > > Thanks. Yep will have a look, I'd bet is `file-directory-p' being redefined with a incompatible lambda list. Andrea From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 04 16:57:35 2021 Received: (at submit) by debbugs.gnu.org; 4 Oct 2021 20:57:35 +0000 Received: from localhost ([127.0.0.1]:38475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXV1i-00039e-S9 for submit@debbugs.gnu.org; Mon, 04 Oct 2021 16:57:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:53146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXV1h-00039X-KB for submit@debbugs.gnu.org; Mon, 04 Oct 2021 16:57:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXV1h-0003al-C1 for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 16:57:33 -0400 Received: from mx.sdf.org ([205.166.94.24]:54145) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXV1f-0007OC-95; Mon, 04 Oct 2021 16:57:33 -0400 Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 194KvMlw018227 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 4 Oct 2021 20:57:23 GMT From: Andrea Corallo To: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Subject: Re: bug#50975: 28.0.60; mh-utils-tests fail with native compilation References: <9fd40a2f-c653-60b7-7f59-09c925122bf5@cornell.edu> <83o8879r7o.fsf@gnu.org> Date: Mon, 04 Oct 2021 20:57:22 +0000 In-Reply-To: (Andrea Corallo via's message of "Mon, 04 Oct 2021 14:24:39 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=205.166.94.24; envelope-from=akrl@sdf.org; helo=mx.sdf.org 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Eli Zaretskii , 50975@debbugs.gnu.org, Ken Brown 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: -2.4 (--) Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: [...] > Yep will have a look, I'd bet is `file-directory-p' being redefined with > a incompatible lambda list. > > Andrea Okay I see what's the issue. `with-mh-test-env' through `mh-test-utils-setup-with-mocks' is mocking `call-process'. The substitute for this (`mh-test-utils-mock-call-process') is verifying something each time is called in the assumption that `call-process' is only triggered by the tests. Unfortunatelly to compile a trampoline Emacs is invoking `call-process' and the test fails. This is not 100% trivial to solve cause redefining a primitive needs to have `call-process' functional and is not only a matter of skipping the test in the fake `call-process' when this is called by the native compiler. I've pushed 63cb65dcce to fix that, it builds the two trampolines AOT so we have no interference with the tests. Seems to work here, please have a try. Thanks! Andrea From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 04 18:32:20 2021 Received: (at submit) by debbugs.gnu.org; 4 Oct 2021 22:32:20 +0000 Received: from localhost ([127.0.0.1]:38551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXWVP-0005Xo-Qe for submit@debbugs.gnu.org; Mon, 04 Oct 2021 18:32:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:55536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXWVO-0005Xg-S5 for submit@debbugs.gnu.org; Mon, 04 Oct 2021 18:32:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXWVO-0002uQ-LZ for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 18:32:18 -0400 Received: from mail-dm6nam08on2117.outbound.protection.outlook.com ([40.107.102.117]:38579 helo=NAM04-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXWVH-0007d5-6X; Mon, 04 Oct 2021 18:32:18 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l1iR+SyvKL6DgDpqBqf6wYMFHM2UPNuJUx+Chk2c1xBKZyQ2VDDTDeqCitgz08SUVGytRCu+w2au70KZGjCmuXc5L436LYnDkEwNHwq/RHALBbMoY2WCmfVqAKAr9siuvEIT/lKdVD2b95vy+8VOnosTXQkBep8yh2Gd9+Xjo8V4yexiv+bQlOaJpoVowRaAAJ+AkLDnDGcXwtx5mIaYHbGTHged5KJ2FTvud+Fdl92FH2Morqx/VBXUNEPOCMOgS/K+skixkCnPti1CuyhbPy63nHAUnUMeBuSXK9aLPNpV7z0yQv6mRksJ8SgnthAVI6A35C3zEEIQEpeSU/KlaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5/p+LlYg9GsxpeANesqEUmPlN6DFHdQYe/MKDar8u+A=; b=IKa/K2Jib71gOmnU23Jd9sHN/ntbgjx6SyHNplF1zOGV6g5oEHfhP1HQOpdw+gvhZ7YfwvGXQhnU2ENxWC7L322ZeGlVu7ec3BRuc3d7riB4g44wmaqYIdSKLkXUednOX0ea64wHW6SbOsZvy7KiDhgS8AzgvRLMz+6HXwHd93FRyM3jOgSkryEyXT4XQ1Z1+1QY3cuMlMs5mjpHwDBbZnEhYs1veAwkhlEGMIdd7sLua/rjbFd/0BjgRAkolbyMuzvlFORbqr3zGmT0sCeH3puAb43DbbTboDqIOdz/vH/UmXSvQCpmqcR3oB8ClsErZhNmI1Ct5vBYrxwoNg5mxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5/p+LlYg9GsxpeANesqEUmPlN6DFHdQYe/MKDar8u+A=; b=U1JwHJ+iwSgjksgcXobFtfKgoj8WzofR2jmwZ5iVMSapner/wrP/cBf5jAQSODbnFHHUs31G7HSo7A488c48NNTHF/N4cexXudDuwK9nSLxkJAYo5nheaqbQkyOE85WYc5NBFJiTnbsemXuyYWCqQ199pfGvh3wA1gHTT+7oHC8= Authentication-Results: debbugs.gnu.org; dkim=none (message not signed) header.d=none;debbugs.gnu.org; dmarc=none action=none header.from=cornell.edu; Received: from BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) by BN6PR04MB3730.namprd04.prod.outlook.com (2603:10b6:404:d6::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.20; Mon, 4 Oct 2021 22:32:07 +0000 Received: from BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::d1a8:b6b3:dfd1:b093]) by BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::d1a8:b6b3:dfd1:b093%6]) with mapi id 15.20.4566.022; Mon, 4 Oct 2021 22:32:07 +0000 Subject: Re: bug#50975: 28.0.60; mh-utils-tests fail with native compilation To: Andrea Corallo , Andrea Corallo via Bug reports for GNU "Emacs," the Swiss army knife of text editors References: <9fd40a2f-c653-60b7-7f59-09c925122bf5@cornell.edu> <83o8879r7o.fsf@gnu.org> From: Ken Brown Message-ID: <29c43952-c1ff-919b-6731-cc47d2b5189b@cornell.edu> Date: Mon, 4 Oct 2021 18:32:05 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MN2PR05CA0040.namprd05.prod.outlook.com (2603:10b6:208:236::9) To BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) MIME-Version: 1.0 Received: from [IPv6:2603:7081:7e3f:3419:10d5:b5e:5549:4ccc] (2603:7081:7e3f:3419:10d5:b5e:5549:4ccc) by MN2PR05CA0040.namprd05.prod.outlook.com (2603:10b6:208:236::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.7 via Frontend Transport; Mon, 4 Oct 2021 22:32:06 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 99658c37-bc33-4644-7242-08d98786cbfd X-MS-TrafficTypeDiagnostic: BN6PR04MB3730: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1a1t0WUrL7u1gr9WYfqCzHFk//10fY/w1IZQa+8V8t+EpJeuwQFOobRjj+HEaBggLVCnYCq3PnsWMrjqJevbAGpbYbeeSEQXZ3f4DdjYGdLy66lNPvuJhYvTiaZUsDysBefxvWWLcEtyh8thiSUgjtIOx6bZdfTCf+KNzLFVr0BafKsqK5CdMXbL5KcCkRnbPGpLqkIyTYJp60TzdZJvkJLBmgFTxHwMDi/DkttNKPEhLlw4k9Gz/L4e7TVaaepzESQHv4sXzCrgz6Oq5B7PjRJjk6Vn4YZPqyN7o1ieBxxGXhviJ1a/U2/7NmieQmuMi+7O9bPDXr6rVPKHi/sMV+BlABcP1aGMkJGbswEQTeb1NQfTz3WBXk/qPeutX97VRoEU6d9oIJ2K8RNgtOth5PjM+Vu3MUhj3TeeL2JdZo9sBMYCR2WYOotXJCnKSg8IdYj9CasdZcAwaFDxhgT//+QhAYGqLGSSDaWPQiS3M/dw03ClB04CaTCdJ7pwtDlDGrO0SraOqvE/rmruHVVlgp9v4DBm9mfwPRSSycg9DFzKmc3+5Ro90EFT6jpbqF2FnceM7iMDbJ8QPHjODb2Q0469Qy0OxTaxmAwMx0e27dVGiKZnnD3UP13O1G6rERJgwOjDOWxhtvbmLiPAV8H4reOItlOqbvZMg+D0TUTtZCymew2KX1HhNy/LqbYx1uKDcNhP+7Apmn4Gsc6JC+EOQv6zlOlQyGTCyeHz1htmvpM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(53546011)(2906002)(31696002)(86362001)(508600001)(186003)(83380400001)(558084003)(36756003)(5660300002)(6486002)(8936002)(31686004)(4326008)(110136005)(66556008)(66476007)(316002)(786003)(38100700002)(66946007)(2616005)(75432002)(8676002)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?Windows-1252?Q?6qSgkSmAkxRsbBZmFBkvBJ4bbT1UrhvO/Oa5BxgFQM/K0xnLm1TSDZMC?= =?Windows-1252?Q?Q13XJOQQC2gE4jq2WoulPNlf5C4lzHY158Ygddwp/Kku/E2paF2e0aZd?= =?Windows-1252?Q?dEUbiJysHeyCq6wzQlVes0+qYBp3GyvN13kpqzYhSsLNAa8zV7RXOCNG?= =?Windows-1252?Q?fKAcUdI9Dz4KfhXd0QDDYGzXOEEhjSkITp1X7GZaSf52fcWedkBvFntG?= =?Windows-1252?Q?jw5uSbKsjuNG63BOnPqibctcqPGTdTiGPgt4zekm2RMLFnEDBMV8/QXz?= =?Windows-1252?Q?caamFjHwjb0j4WUIA1dxJOQh2V8CG41BkuYNuIVVd7ntdHSYg2PwCQmi?= =?Windows-1252?Q?8V7BMAunnBCTRAcOGSkYAyoEIDrrSMz/vPkU9cWS9hdUgpX6/nfYcwG3?= =?Windows-1252?Q?VFSMazWYpGC1gQ9rSA2P786EABqG4O+4ul5wAXgxZbO2o/hbsn7D39dG?= =?Windows-1252?Q?WZVl0uUVET5QPZOkTefjg3N68MNmCuEl/zhRyKaAy9mi30jiBALYG2y3?= =?Windows-1252?Q?MSbc/7IsalhLLWDmK4LnI3iQ7jC/DKP8QW/ERywvqpFTqEty36go98OU?= =?Windows-1252?Q?2Uc6SJTBgRmp+fsGtq8gumLZvwM6AFG0sbWHb/TfHnlXq+hSUoR2tld/?= =?Windows-1252?Q?a0NOhV/yjY1pMNl37HafM+/h5YC1WLqhIT9bzBmZmEaiL4/hY4seDlz+?= =?Windows-1252?Q?efRtO30PNiu6y4aIRmnTCwHxz6DTwO+sztg3yS+Fx8zCmH7fjOaOwUt8?= =?Windows-1252?Q?GfCGhPol85oogF+EWj8phjSkTnzBkPsXtyXs1qxiCGY06eaPCfZpTgLR?= =?Windows-1252?Q?EAO0akcxG17wRGk8INl7WfCvqXaMfhF13K4OGF7igYciEagMzNc7EYoI?= =?Windows-1252?Q?PQnFuu7vYF/fHqIxe0140cI42wDH0EONYcPMXv2di8A/m60IGC2Iz5MB?= =?Windows-1252?Q?UwN2ZETnu+uUMuDvQ4+JAP+2zCSlIHTdqSu3rDKwljl6RKtlly1/lFbd?= =?Windows-1252?Q?taiyBtFqYm7rO0abkTaEnF4AsjwijXorIMEPskDvd8Hmt3C5BQKLpY8K?= =?Windows-1252?Q?x/De9KyRMKIRLFPMaUCRdpz3J6ber1cyU9/4RuyQytTpsm3l2M3cx1Zb?= =?Windows-1252?Q?EnHOsAWB7/RRfisRFE9NLaC7XB5bXLPns5Pmbia+5SV5Hz3LzeY+t/n4?= =?Windows-1252?Q?qKNay05YE/2gftGQDQzzeCWM4CJ46Q3p9+DpbjgdzTwvqoY9Z/3qAziI?= =?Windows-1252?Q?FOctkLi6MLmlzvQD8IFZ4+T3fEObBMffQFGz5QQhih1m3ayF2Shm+Ee3?= =?Windows-1252?Q?GUOy0EYFcCCrIHuZH9fcbvyxdQnRwo9cB730VWKYTFWnWedsC6Thd1vz?= =?Windows-1252?Q?wsdDHGz8SxLULPmmFASxjs1GfIj1vt+GDZ+L3+qSyzN/amjdyOiZnFdW?= =?Windows-1252?Q?HGWM+eH1kgiAL6j4Shgna1YEpmigHL4pbLtpIhsVrfNjS0aKEtTe9F5o?= =?Windows-1252?Q?hjCZ3Dr2?= X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 99658c37-bc33-4644-7242-08d98786cbfd X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2021 22:32:06.9266 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lR2pzDHV0pisSgEjsNJpeTcoO4XWGgnL+YsUzs042FDSvwQ1YtFkaFIOPU9jleGG9LWo9cFaj8TWLqTs5Q29Yw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB3730 Received-SPF: pass client-ip=40.107.102.117; envelope-from=kbrown@cornell.edu; helo=NAM04-DM6-obe.outbound.protection.outlook.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, MSGID_FROM_MTA_HEADER=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: submit Cc: Eli Zaretskii , 50975-done@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: -2.7 (--) On 10/4/2021 4:57 PM, Andrea Corallo wrote: > I've pushed 63cb65dcce to fix that, it builds the two trampolines AOT so > we have no interference with the tests. > > Seems to work here, please have a try. Confirmed. Thanks. Ken From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 04 20:29:09 2021 Received: (at 50975) by debbugs.gnu.org; 5 Oct 2021 00:29:09 +0000 Received: from localhost ([127.0.0.1]:38620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXYKT-0008Pe-JG for submit@debbugs.gnu.org; Mon, 04 Oct 2021 20:29:09 -0400 Received: from tigger.sg.gildea.net ([99.65.78.170]:60820 helo=pental.sg.gildea.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXYKS-0008PP-1b for 50975@debbugs.gnu.org; Mon, 04 Oct 2021 20:29:08 -0400 Received: from pental (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by pental.sg.gildea.net (Postfix) with ESMTPS id 6578F246C73; Mon, 4 Oct 2021 17:29:02 -0700 (PDT) From: Stephen Gildea To: Andrea Corallo Subject: Re: bug#50975: 28.0.60; mh-utils-tests fail with native compilation X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 29.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <540298.1633393742.1@pental> Date: Mon, 04 Oct 2021 17:29:02 -0700 Message-ID: <540302.1633393742@pental> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50975 Cc: 50975@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: -1.0 (-) Thank you, Andrea, for the native-trampolines patch to mh-utils-tests.el. In this patch, the test explicitly compiles trampolines before redefining two functions that are defined in C. Is it necessary to provide trampolines at all for these short-lived test functions? The following works for me: (mapc (lambda (x) (add-to-list 'native-comp-never-optimize-functions x)) '(call-process file-directory-p)) Before redefining the functions, the test could create a dynamic local binding for native-comp-never-optimize-functions and add to it as above. If that is a reasonable approach, can we go further? Can the native-compile code detect that this is a test and automatically suppress trying to compile a trampoline, without the test having to be aware of native-compile? < Stephen From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 05 03:54:46 2021 Received: (at 50975) by debbugs.gnu.org; 5 Oct 2021 07:54:46 +0000 Received: from localhost ([127.0.0.1]:38962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXfHi-00079z-78 for submit@debbugs.gnu.org; Tue, 05 Oct 2021 03:54:46 -0400 Received: from mx.sdf.org ([205.166.94.24]:49904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXfHf-00079q-5E for 50975@debbugs.gnu.org; Tue, 05 Oct 2021 03:54:44 -0400 Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 1957sfvH022440 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 5 Oct 2021 07:54:42 GMT From: Andrea Corallo To: Stephen Gildea Subject: Re: bug#50975: 28.0.60; mh-utils-tests fail with native compilation References: <9fd40a2f-c653-60b7-7f59-09c925122bf5@cornell.edu> <540302.1633393742@pental> Date: Tue, 05 Oct 2021 07:54:41 +0000 In-Reply-To: <540302.1633393742@pental> (Stephen Gildea's message of "Mon, 04 Oct 2021 17:29:02 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50975 Cc: 50975@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: -1.0 (-) Stephen Gildea writes: > Thank you, Andrea, for the native-trampolines patch to mh-utils-tests.el. > In this patch, the test explicitly compiles trampolines before redefining > two functions that are defined in C. > > Is it necessary to provide trampolines at all for these short-lived test > functions? The following works for me: > > (mapc (lambda (x) (add-to-list 'native-comp-never-optimize-functions x)) > '(call-process file-directory-p)) Yes disabling the trampoline generation is another option. > Before redefining the functions, the test could create a dynamic local > binding for native-comp-never-optimize-functions and add to it as above. > > If that is a reasonable approach, can we go further? Can the > native-compile code detect that this is a test and automatically > suppress trying to compile a trampoline, without the test having > to be aware of native-compile? I don't think so. The Emacs implementation has the right to use `call-process' to function and in general I think we really want to test the full implementation including trampolines as much as possible in all running tests we can. If we find it useful we could add a knob to disable all trampoline generation for special cases like this. Best Regards Andrea From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 05 08:31:31 2021 Received: (at 50975) by debbugs.gnu.org; 5 Oct 2021 12:31:32 +0000 Received: from localhost ([127.0.0.1]:39251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXjbX-0006pS-LL for submit@debbugs.gnu.org; Tue, 05 Oct 2021 08:31:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXjbV-0006p7-C8 for 50975@debbugs.gnu.org; Tue, 05 Oct 2021 08:31:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36008) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXjbN-0007Gh-Rv; Tue, 05 Oct 2021 08:31:21 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1083 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 1mXjbN-0001n5-Ey; Tue, 05 Oct 2021 08:31:21 -0400 Date: Tue, 05 Oct 2021 15:31:13 +0300 Message-Id: <83k0ir4pri.fsf@gnu.org> From: Eli Zaretskii To: Andrea Corallo In-Reply-To: (bug-gnu-emacs@gnu.org) Subject: Re: bug#50975: 28.0.60; mh-utils-tests fail with native compilation References: <9fd40a2f-c653-60b7-7f59-09c925122bf5@cornell.edu> <540302.1633393742@pental> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50975 Cc: 50975@debbugs.gnu.org, stepheng+emacs@gildea.com 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 (---) > Cc: 50975@debbugs.gnu.org > Date: Tue, 05 Oct 2021 07:54:41 +0000 > From: Andrea Corallo via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Stephen Gildea writes: > > > Thank you, Andrea, for the native-trampolines patch to mh-utils-tests.el. > > In this patch, the test explicitly compiles trampolines before redefining > > two functions that are defined in C. > > > > Is it necessary to provide trampolines at all for these short-lived test > > functions? The following works for me: > > > > (mapc (lambda (x) (add-to-list 'native-comp-never-optimize-functions x)) > > '(call-process file-directory-p)) > > Yes disabling the trampoline generation is another option. We should document these caveats and the solutions for them in the ERT manual. > > Before redefining the functions, the test could create a dynamic local > > binding for native-comp-never-optimize-functions and add to it as above. > > > > If that is a reasonable approach, can we go further? Can the > > native-compile code detect that this is a test and automatically > > suppress trying to compile a trampoline, without the test having > > to be aware of native-compile? > > I don't think so. The Emacs implementation has the right to use > `call-process' to function and in general I think we really want to test > the full implementation including trampolines as much as possible in all > running tests we can. I agree. I don't think native-compilation should second-guess what the programmer wants to do, because it's quite possible that some test will want not to have a trampoline, for valid reasons. From unknown Sat Aug 16 19:18:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 03 Nov 2021 11:24:07 +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