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#50666: 28.0.50; Fix native compilation on Cygwin Date: Wed, 22 Sep 2021 17:35:28 -0400 Message-ID: <4ae8067f-55b2-d243-66f3-f76493095a39@cornell.edu> References: <9f20194e-b1ba-9417-4f18-caa1d80b5568@cornell.edu> <01a89ba6-2786-df04-0181-069b50a70331@cornell.edu> <835yux5dn1.fsf@gnu.org> <87bl4pf3s1.fsf@Otto.invalid> <83tuih3uvr.fsf@gnu.org> <877dfcg5tu.fsf@Otto.invalid> <83pmt44vn1.fsf@gnu.org> <83mto84r9l.fsf@gnu.org> <83fsu04mai.fsf@gnu.org> <1a5e01a2-2247-2f68-82f6-2075577e02b6@cornell.edu> <837dfc4hi1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7269"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 Cc: Stromeko@nexgo.de, 50666@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 22 23:36:37 2021 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 1mT9uu-0001hP-IJ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Sep 2021 23:36:36 +0200 Original-Received: from localhost ([::1]:46534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mT9ut-0006tZ-GO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Sep 2021 17:36:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mT9uM-0006XP-Sm for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2021 17:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40409) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mT9uM-0001gr-Kb for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2021 17:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mT9uM-0000dX-IL for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2021 17:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Sep 2021 21:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50666 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 50666-submit@debbugs.gnu.org id=B50666.16323465492416 (code B ref 50666); Wed, 22 Sep 2021 21:36:02 +0000 Original-Received: (at 50666) by debbugs.gnu.org; 22 Sep 2021 21:35:49 +0000 Original-Received: from localhost ([127.0.0.1]:51954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mT9u8-0000cu-Fu for submit@debbugs.gnu.org; Wed, 22 Sep 2021 17:35:48 -0400 Original-Received: from mail-mw2nam10on2115.outbound.protection.outlook.com ([40.107.94.115]:36704 helo=NAM10-MW2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mT9tx-0000cT-6I for 50666@debbugs.gnu.org; Wed, 22 Sep 2021 17:35:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fGz003oTs2ALzzhqQXlxdQ2rJYKktEmHChr7Sg/GUVYDO/pTgH9BBvYvleHdEa7OQ1r+p7MJ5Jvh/An19fcWcKO2HPEO/l0jI4Vq5EHD9ASSHPY9Ci2UPvMd2E/cD3jBv9y66fhqc7Nvm91VPnbNQkM+yWLGw+2o6ike1hnSqfLt/l4gbYdnAXBllAFtOZfsYCN3A9zrmS1uUNkv/VMm8caKB5roZaXI4L7/vxfjpKg9FF5P21sJaYEAZRCHSwUD9NvyLIWBOpXjp3cwRYkvKMie1j4jhSKoieCzZND4w2M7rQq6V5auPOWMCXI8tFRd3w1FqcIalFe9Ngp9W1TBTA== 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; bh=IkZKi9jWZ1ioPhakfwDmy6MCM/Zjdy2trg9gQOa1VYg=; b=ZMgJiMPyh97JQdUrtqj64Vtk7+m6dFFpDYfFd1Qz4QODrEMfr570qXVDs20oZaLmZM4SID0uwabh5M2G7I7O+8eb07Hr+N8PZu0J+Ebvfa/wop9cs8+e9DiChEUYagRTajz/Q4HBciDGTKmWGoybdMh3Stzu3uk2V2lbJKBQMeLvVYifAy9Hl47Fe5OlJqgGbMLKKxC7VGa/ZzGdI5GDkwZ8EKnSYNMsHxnxZ6n6fo/JgabaVDgfe2oWD2qfF3R7qtyTugQce4ElX3Xec7aJjHI86KuC66LH4n+3rj8ssiRAIwvQiwyhJwxI4panqDRPP71F9w5avmhEFkFSGestJw== 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=IkZKi9jWZ1ioPhakfwDmy6MCM/Zjdy2trg9gQOa1VYg=; b=IomV8Vs6MYQ17grZRRmIDKG6nmKveL+H7s3cMcED+xU1WVxycufurnyNCx68e1VeB/9IUaVJx7wiNHi9Agxs5LkejvPVwzMfSXzdLetCgtZnvFphh4rj+LDSQ68xcCBBSuc4ugrwnO5ZDfZXVxpfLXzy+r+FzX2AGQLucs9+kwo= Authentication-Results: debbugs.gnu.org; dkim=none (message not signed) header.d=none;debbugs.gnu.org; dmarc=none action=none header.from=cornell.edu; Original-Received: from BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) by BN6PR04MB0531.namprd04.prod.outlook.com (2603:10b6:404:97::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Wed, 22 Sep 2021 21:35:30 +0000 Original-Received: from BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::5113:e84a:b38a:7a66]) by BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::5113:e84a:b38a:7a66%6]) with mapi id 15.20.4523.019; Wed, 22 Sep 2021 21:35:30 +0000 In-Reply-To: <837dfc4hi1.fsf@gnu.org> Content-Language: en-US X-ClientProxiedBy: CH2PR11CA0003.namprd11.prod.outlook.com (2603:10b6:610:54::13) To BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) Original-Received: from [IPv6:2603:7081:7e3f:3419:8038:2245:c6fc:6fdc] (2603:7081:7e3f:3419:8038:2245:c6fc:6fdc) by CH2PR11CA0003.namprd11.prod.outlook.com (2603:10b6:610:54::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Wed, 22 Sep 2021 21:35:29 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f29ec547-32e9-4730-9f06-08d97e10e669 X-MS-TrafficTypeDiagnostic: BN6PR04MB0531: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4tZ7X4pu5jVcAqSJc7ZJrjt8Dat+Qmi7xUdOaoOlizDfW6JPkzDMkKLCvQi0zc82PAAqm7qqLOu9Cee7/7aHT3koHuuCPK0da2Yt9cU/r68NJdOkbyJ/1WD1QZ+VdJKzeQE+kyN7xM58uANRLJEHfhXgcGyBTLjsYw3oZVGtbjeE6IOZeNxi/hKJQBypl0rTmXhvDH8cNkcPKk5gN1VslbT/W/6N3iSYwjj8XOsILvj5fBM9i955CAB2KUP2TbwXUrLreUquSj10k+n5JKOVRq1WRVRgUxeEXqMv381uZ8OcjgKZpT329Dk72R6wzfOdPflU1XthXGT94uNvABvFXLLu7rkhTO0dTruzQfVHsuYY4iJ5UjOrXblzmRxYbYp4lkZqsMFeWSYJi6Bmu2Z8g0Ns/xdTuly+MfXELdHlzt0JIeDNg9pIpzc1qKua+xBYPNmpsYec/JIQnF4NA2PQTAiaNujYNp+t26qYpTH6+awd8bFwodrcTj540kFLL18iqO9kejmHbqT2oCx+rCFgwnpi57kASOxAHQnRxaLCfXu27GeRgfqG97EcUu5316SYzs65UjaSQRPo3Sbd9Z0lhODarddprKt+jHRsbZ5qK59tWe+tdvNSXi5GFTYFgIbwHLwe+ssB7gx8hatPgRYPLBs8v799hxt/mvw7j6uD1giMlOV4onCmUgHPWYrC11b7DmachssySivoiaAtaYWGDwqS7NK3HYfpUooo1Odq6m0CAdaB4I8z58BLSSdPN AkM 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)(84040400005)(86362001)(4326008)(8936002)(316002)(75432002)(8676002)(66946007)(53546011)(66556008)(2906002)(186003)(508600001)(36756003)(6916009)(31686004)(6486002)(5660300002)(66476007)(38100700002)(31696002)(2616005)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: brsnKILnjw+0Gqnbk4Aou7FivGJRpjFsAxZU1LeGv9ooWfeVLQFmNzTEmGlrB0jTjk8o0TlkpFI3FX5ITyYSY9RKs0jrFJBeo4eYAheQh6eGn75EBurwKnF9iwG9jK1KJGIPFjdcqOvsjIqK4l69I+mJABlJ6BZMgj+Mtte4I+hSzAUE+qLskWPHo26T++S/il0nYksfbxIYfPABxbzOkmgy9j0137vvDQiF59v4EZLA3FAbF0BRH9l02bOVmPKf4WGsHvXmtnY+ubIiNBTLYulCvrg7m8qfftuAnhpfj6gRKKw/zOmuRI18jFvEEJCmCx7jqS9cs80qdIG0dPh/t2rzl3xAJimRbBC9knwEwOXYMjGJOKw++gCy5JmbA1hkcZT6IWTGO5H0nOFYdbSFaHcOO2h7+h/HXHoD9QyNdmE4mrTIvzJQayJQztvD811AA4KYiAGCwaQJMjcfRzxRTDRFRnfKV9dLU8Wj/fKdAql4D4AsNBrPZb7hbxRRc6wI36tSFmAVkZ59DjIK2rhMARoweCZQzspgBqgSil3XtTaiGI09bW5WX8xMtcHIiSCpYKG95nCupqbfSlKXZlvc+0uXxCiqwT44NqGiAhvmQFNeHwSXEI82XvtrY0ho5fs5Wh0mzZk33XMmCy7g1r4QKrzEIS+jwSvsYvDUe5UusP5RSpJYp95fSU5hg0nrEO+8E03QeE/oY90tHlwCXIlQCt9k4YDg+YjuPKnETox/lTl7a3r6Qz4h0Aen2x 3bTYA3Ej2A5HcQhuwClrMvBJEOVUOlwVFcVw/5JcfpIct75q5nCh39G56bcBOoE8Ww8KBzW7RuC2VGPY/uhGPw8l54avOHrO/I X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: f29ec547-32e9-4730-9f06-08d97e10e669 X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2021 21:35:30.0983 (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: IS1AFlvfV3aE+HWOZGxYaclBfZ6/Tn6oVPK3SoaOswbLEBLs2WVWV0OT2KLmfLtcR0nslrVpZyJvUd9H340dew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0531 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" Xref: news.gmane.io gmane.emacs.bugs:215140 Archived-At: On 9/19/2021 1:12 PM, Eli Zaretskii wrote: >> Cc: Stromeko@nexgo.de, 50666@debbugs.gnu.org >> From: Ken Brown >> Date: Sun, 19 Sep 2021 12:17:51 -0400 >> >>>> In the meantime, is it OK if I install my patch to enable building with native >>>> compilation? That would simplify experimentation. >>> >>> Yes, it's okay to install that, but it's a band-aid at best, and we'd >>> like to have the complete solution in Emacs before we release v28.1. >>> Is that feasible? >> >> Yes, I think so. > > Great, let's hopw you will succeed. We've made a good start on the Cygwin side, but I have a question about how to integrate it into Emacs. Let's say we have a script that I'll call "rebase" for the purpose of this discussion, which rebases all the eln files in ~/.emacs.d/eln-cache. The user would then start Emacs via a script that first calls rebase and then starts Emacs. Within Emacs, I would then want to do something like (if (eq system-type 'cygwin) (call-process "rebase" nil '(:file "") nil "" ...)) after every compilation but before the compiled file is loaded. I'm not familiar enough with native compilation to know where this should go. Or maybe it has to be done in more than one place, depending on whether the compilation is synchronous or not. Can you help? Thanks. Ken P.S. The rebase script will fail to rebase eln files that are already loaded, but that's harmless in the scenario above.