From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#74805: 30.0.92; Trying to build scratch/igc on Cygwin Date: Fri, 20 Dec 2024 18:48:37 -0500 Message-ID: References: <0e6c2f69-9c33-48d7-87ab-2b13de857f71@cornell.edu> <86pllx1lh8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11790"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 74805@debbugs.gnu.org, Richard Brooksby To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 21 00:49:17 2024 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 1tOmk8-0002xG-Ko for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Dec 2024 00:49:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOmjx-0002DT-3j; Fri, 20 Dec 2024 18:49:05 -0500 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 1tOmju-0002D5-TC for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2024 18:49:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOmju-000347-KF for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2024 18:49:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:In-Reply-To:From:References:Date:To:Subject; bh=abp00llYZMJ4TYsWBJHa1zwjRR6C0mDnHoJTDJzodSQ=; b=t39drQiJM7P/Fz/0Jz9TMAIlsLzRVxHyQ9+FPCInpdYYkrQVEoEw3BUdxJZivzLOYRX39Dvi8fTBMggAapr7ZN8SLyWY1yVhuuEAY+AZHYXi3TgAV3l7q/B3kwGqMNI8lDA/aC9XsGO2LkzRy+/n7EFZTanenZqWK1w96u+Ix/+enriAOCC+Hni3WX/83AikStFUiMZETOoX0qwq9bDqcQ4AQ4ocKF8kcBEIq3i29ezz82jPN+Rciq0SP7KGRs2EFSz7f8lVbNEyICro9Z7cKpFT8RtoGb0047VOuqoCXqpP+6jlxdVtajMX7tWHNbmydCzi7TKmo5HF6+43LqF2pg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tOmju-0005Po-Ev for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2024 18:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Dec 2024 23:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74805 X-GNU-PR-Package: emacs Original-Received: via spool by 74805-submit@debbugs.gnu.org id=B74805.173473853520803 (code B ref 74805); Fri, 20 Dec 2024 23:49:02 +0000 Original-Received: (at 74805) by debbugs.gnu.org; 20 Dec 2024 23:48:55 +0000 Original-Received: from localhost ([127.0.0.1]:44490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOmjm-0005PO-I7 for submit@debbugs.gnu.org; Fri, 20 Dec 2024 18:48:55 -0500 Original-Received: from mail-westusazon11023075.outbound.protection.outlook.com ([52.101.44.75]:9965 helo=SJ2PR03CU002.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOmjk-0005PA-3g for 74805@debbugs.gnu.org; Fri, 20 Dec 2024 18:48:53 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BpsNKsAiHJe1BwM+zeMfrqYfT/em63At4PAI0kbJU/M7MqBoSjmpNsnLGbQB4lBDrcm4exF7NYX2U7AsN/t3iE9Upe4ZlUAuCXDtfCbfPa+uA/PAJ7hKcdIwOlGMVJf04z9+MD98TEveDiaZ+O90r67FJ58tO8q+rDQQW0w7zdLr31nLc8FVP+zCe82c2I0qxlRBcGWDs63ZXDZBGqgU35MMNdcGve9WO6R8qYJc/I4ATC3wIwzMb9oB6hQFkIRIvv2PhccpTf9z9dmTYUQaNYCkggyMamxaTXuEi+kadpl1Cj7R4aas9AmD+SyNNh8cSC0zfP+GeuxiEn9hP/9Vjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=abp00llYZMJ4TYsWBJHa1zwjRR6C0mDnHoJTDJzodSQ=; b=P0YnRmdD79xQAjkdTZOYnKMrdIHTPAZUHsXuiy8+1SojrIkD43g+MbO/ex8e6GKHVpy8Ax6pfhXGEr90dRJA07GBsRHu4UzLuhPaE1Fn2MhxCj6Ku4BkiUxizSXCMo+5QEuVOzCJupVI0Js3i5coQELB/uXf+OPTu94agSCO66keN9GONMAKNF+d/fbL8ZOcXlQUq/GW110G7ussOEwchrhguuzaW2W7bz8VTx9ZCyYsk3l9XQjeYPXsIR0rgf471nQblE6k11pVowdFZRTIbycGeO5PXriinL1JOk+gJvK7X8kMIf2q/jpjFXZYIngYN28MFydp9uZ2gsiYM8r1tA== 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=abp00llYZMJ4TYsWBJHa1zwjRR6C0mDnHoJTDJzodSQ=; b=R2aBZW29W4QaytjaIuoIwtrGYw/6aHggS7Oa06TIjuztUJz65rhKtnFV0Na5aDVrd+ky21tvNjR5IGT0KZldNxKC5b05BCza15+6/QhXloX1RtX2ZUd++kpxE7Ze7MIhi9YY41/owGC1UcbTf2IpKjefOzP1falC/YlCns6628A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cornell.edu; Original-Received: from SN6PR04MB5151.namprd04.prod.outlook.com (2603:10b6:805:90::25) by MN2PR04MB6733.namprd04.prod.outlook.com (2603:10b6:208:1e0::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.17; Fri, 20 Dec 2024 23:48:41 +0000 Original-Received: from SN6PR04MB5151.namprd04.prod.outlook.com ([fe80::5ff0:555f:8712:42dd]) by SN6PR04MB5151.namprd04.prod.outlook.com ([fe80::5ff0:555f:8712:42dd%6]) with mapi id 15.20.8272.005; Fri, 20 Dec 2024 23:48:40 +0000 Content-Language: en-US In-Reply-To: <86pllx1lh8.fsf@gnu.org> X-ClientProxiedBy: BN0PR04CA0101.namprd04.prod.outlook.com (2603:10b6:408:ec::16) To SN6PR04MB5151.namprd04.prod.outlook.com (2603:10b6:805:90::25) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR04MB5151:EE_|MN2PR04MB6733:EE_ X-MS-Office365-Filtering-Correlation-Id: aa89acaf-5ec3-44af-0d74-08dd2150d487 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|1800799024; X-Microsoft-Antispam-Message-Info: gi7iYZCEMGxB+zw4COxxCW75/gyecRHyPrTjPGWJB1N4SMxZhkviD0vBceIdUAoSOQoYn+d55Sw4H2+rov0+Gp4KEKeArGMb5WZkQbuRvjTXjJXBt473msQIA1VycZ969SUaKpeBRsOlQ1CKsVCOQvD75TEkzZR3W7DFkqjvjTDTl9dbedtelXCRp6LmzPPQOx9c8B8esvjvNNl2nzUcRPL5Zk0w2YUgVkcNB9JERIQ/hDFTY3gcvaGCE81Mjsxmg35O6F0XQTdmdY8+YfZ7g2zXG2jeWwtXzG08Zvs3K5jgFYtJq/i8X2ewb8cU/5WY92nnuYyBTZU5uXw6C/L32cUp5N/8zbxFe7PQrXKqe0qhfdoSvmaueUvkcKw/MK/e+jK1pD6enxQt0rzj9bvAZtPqFG9olXGVrUsta0Jbq/BwQTT+DwTX78t0Ipt4pzNvLK2aALNfmqYrA2UpDoATdjmnJYhoZ5urPOO1ABKFWj61N0V2hsKellaVX8qu/zMSBpwWC+BrHas8kQi9O/KZ+sm27JhIjbeQ6UjxRxaRmR9DT43LVdXNgCGQoPknP0s63hccu8jxuUEZ95kvGYWQLePADpFTuFhelei72aErkp2G/EhlcZeZHU1zWIDN91NJ4xqUKZfs3Axc2++OTzO+dDKUPRWD3JUYmwwMiHopLqL88AiBu2RyvWui8AabPA1qYhwnvWBcO09534GfWZtQjnRec7ZCVTJG3aHYvx1G7iv49mLUD6e0YTQKivnxO RY1wLlnhl9euoR8Sis3YeqW8L0Xmyxa03q+fOO6eLtFXazALh5FE1zPUvdrIufw7yOgLk4YQqUUsG1nD7FxV4WNHufRoyxTrD3 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR04MB5151.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +o88VuQH9t6II5Owh81Prfw2aezXHVsHRIyiegBDQ5emWUFe6oDDgvQxl3Ljn+5XGiQzbYJ9zHxB706MI71uBAU11GNVIXwzS6tzAwPurlG5AKQI17Q1A4Ti88iAhoI2ll2NxYuzqayu7x3XBp5miuHE1KK32cxASGrPe5nVw1/qSjmSGqXkQV1mHdDr28imCb9vMSaJn3XNqh7Q0u3d6P+tUbIxbWaoPNPCgXFXUYux8ZLV4gCnYxRl0C0MT8ZCmM2T4EUiun1yF/+J9mC24iP37HHkUEgxJapFVNj1KZBi1wF6oMRziszmj/HTIReJysHa1qptXq1rZVeQa8fBa7viDXV60NxoWKq6z1FhQHhM4Or5BBabK5MvIGnbJfqgiIv5VO1sA9NzSAWTNkKYUz+W4EGENIopTueihQ/3yeAF5KhCeeqcAe0j97sR29wosFvflFylHL1oRZ5pds5sKXNjlpDtgcURkrfB7HW3tiFxmWokH2EqjxkcHnwH6ro2clT3YKbDcgiVJVawtod3lOSlomWSNDy0lYZEoMxBoGJsm9xNpjJeKyR8ED7jD1kh71IAbbAnqJelZNypmKH4F+/HcIBotGOqGCAytuwTuemAch4SQlyiouLsZVkiYmlAUvuIFgDeuxp0mLfd+aP8RJd+Cc1rDEtz/NCV97kAPH+GHjrea2CG1sUoBj0X6L+if6EjOWUzHeIERJzdFvfuRcWz1cncIhKQvbbif9oA2n8H/rcyGcHRv0hrfV XHNiKjp7d9k8iA+ncmvU4onIYLaUYC4mgoPFlTFCqfiN0QYkw5WUfBFcDZzv3ezh5F6aLSQAH6MZpZkr63V+nVkha0PXHQMhVY X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: aa89acaf-5ec3-44af-0d74-08dd2150d487 X-MS-Exchange-CrossTenant-AuthSource: SN6PR04MB5151.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2024 23:48:40.7593 (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: cet3EMStygRg7eLtn27GcFniqll2M2sFt+Z1PQqIMC97q/LHgVl7ifDF4SUUVaqUFqGF1xqJI4Fl7Tqc1vvDzw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6733 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:297480 Archived-At: On 12/12/2024 1:09 AM, Eli Zaretskii wrote: >> Date: Wed, 11 Dec 2024 17:50:40 -0500 >> From: Ken Brown >> >> I've made a first attempt to port mps to Cygwin. If anyone else is >> interested in seeing this or helping, you can find my work at >> >> https://github.com/kbrow1i/mps-cygwin >> >> This is a fork of the mps git repo with two commits on top. > > Thanks, good news! Could you please post the patches here, so that > they are recorded in our bug tracker? > >> With the current attempt, I can build the scratch/igc branch, but there >> are many test failures. For example, when I run the process-tests, I >> get 19 failures and 8 skipped tests. But on the master branch I get no >> failures and only 3 skipped. >> >> This probably means that my current attempt to port mps is no good, and >> I have to go back to the drawing board. > > Did you run the MPS test suite, and if you did, were there any > failures? My suggestion is to make sure the MPS test suite passes > cleanly, including in several consecutive runs (when I ported MPS to > 32-bit MinGW, I had intermittent failures which only happened once in > several runs, until I fixed that). This is an update on my attempts to port the MPS to Cygwin and build the scratch/igc branch. The GitHub repo that I cited above now consists of 4 branches: 1. The "master" branch is an MPS fork with README.Cygwin added. This file explains in detail what I'm summarizing here. 2. The "w3" branch attempts to use the Windows interface on Cygwin. For example, it uses direct calls to VirtualAlloc instead of Cygwin's mmap. This attempt fails because it's not compatible with Cygwin's fork. 3. The "mmap" branch is a straightforward port, mostly imitating the FreeBSD port. It currently (with Cygwin 3.5.5) fails because of a limitation of Cygwin's mmap. But I have a simple patch to Cygwin in the works that removes that limitation. With that patch, 37 of the 38 MPS tests pass. I still need to debug the failing test. I'm cautiously optimistic that I can get this approach to work. Either way, I expect the Cygwin patch to soon be available in a test release of Cygwin 3.6.0 so that other Cygwin users can try it. 4. The "generic" branch uses generic implementations of some of the MPS features. For example, it uses malloc instead of mmap. This passes all of the MPS tests, and Emacs seems to work well so far in limited testing. I suspect that there may be some performance problems, but I haven't seen them yet. Once I've determined whether or not the mmap approach will work, I'll post the MPS patches here either for the mmap branch or the generic branch. Ken