From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12olkn2039.outbound.protection.outlook.com [40.92.21.39]) by sourceware.org (Postfix) with ESMTPS id C10EA385782D for ; Sun, 27 Jun 2021 02:38:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C10EA385782D ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gOcJo69HkjCgTtpXupK4GHOsocezk0+mexUnimMOFl50iBXdusuLtwYaufnlutBtKA6h15e7/Jx2AOSiUpNDE+ho9l+dRjFcbcYF2iismBxUSZI/tsF8DWTRHE/rLJAaVB9/0zf1OJqWRCFTawWfvSWv4wlmrfAstX/t7WaSuIb4jCeMxpNehYjYPftS36sokPCNXFMF3LE6+qUx1ViInyL+sDJwq+Vw12AHSlNc8qWKfsHTmn39EKWKCXKLyc5zaNgwN5kjhr7ewl2K3D7LkKtpsQ7FRkqSvWo1ujpPWN3mo7IZyA/mu7Opcrae5KUSzfNhs+HIWFKBgjch6R1Xjg== 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-SenderADCheck; bh=s5vxiqe//KHAOmsspGO0nyH0+qMHn+NJYao1yEW5NTA=; b=Hdz3f6e7IcOpI2K0Vdq5aax+5tMB0PO41BdEdli4/ZRp1spqI+tfXQxwXjNBWnwsw65i/+IsVj9o99LwJ+Lh1I/B7USGc1GI2L2WYi/x4MhgTUxisLEFe9HAHVs8qOTus4z21IQn+8Qd56f+E9D1X80EKdtz8w0KCZmhI0hKfREOzAsu1w40fgoj1xvKBWuPrrJpjTrtGLrfz5/iSyIrKttsQHYM8MfIoknhbMqsbDEVtOcUbnZExK20fcAt/jspo1ho1E6lXh/Oh9/cNjMlJOqSAxQxVy/SPHWF9hXaTVr7EZzWT4dcfAci+GmtBgfQG346aO8DTx5hiXIi3klksw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from SN6PR13MB4269.namprd13.prod.outlook.com (2603:10b6:805:e0::13) by SA1PR13MB4813.namprd13.prod.outlook.com (2603:10b6:806:1a5::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.8; Sun, 27 Jun 2021 02:38:59 +0000 Received: from SN6PR13MB4269.namprd13.prod.outlook.com ([fe80::559b:6bdd:b5a5:2645]) by SN6PR13MB4269.namprd13.prod.outlook.com ([fe80::559b:6bdd:b5a5:2645%7]) with mapi id 15.20.4287.016; Sun, 27 Jun 2021 02:38:59 +0000 Subject: Re: libtool with mingw hangs building openocd in func_convert_core_msys_to_w32 To: cygwin@cygwin.com References: <355a97ed-2076-6756-8a5f-227e44537136@outlook.com> From: Dietmar May Message-ID: Date: Sat, 26 Jun 2021 22:38:56 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: Content-Language: en-US X-TMN: [ifGfcjnfbo7d2p6nzFCzVHPNlbG4fbJ6] X-ClientProxiedBy: CH0PR13CA0029.namprd13.prod.outlook.com (2603:10b6:610:b1::34) To SN6PR13MB4269.namprd13.prod.outlook.com (2603:10b6:805:e0::13) X-Microsoft-Original-Message-ID: <6fb10efe-a634-7a18-89e3-efd640547f3d@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.20.200] (166.182.85.124) by CH0PR13CA0029.namprd13.prod.outlook.com (2603:10b6:610:b1::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.8 via Frontend Transport; Sun, 27 Jun 2021 02:38:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2452b07a-339e-4b94-4d1f-08d93914b71c X-MS-TrafficTypeDiagnostic: SA1PR13MB4813: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4CzAuuGlI5lSSJ4U7q5gvnvW5s3XS1ZA0IjpVwMD34jnw9qjsfA0VRaDJxOuzZ5n2yfZIRpA1/Z44FgKoAi4B7MrzjZopDhwapuX3CBx3GY7tC4Je9EPULTh9Go3aG/G4K0vCQOz6cDbXJPhPdE5CKEOuk3YlrRf8ySuZXt/sUaGKRY7UkL4BWjxIV8TpoLG4w0MTKhlo87aRXVElGutz7Vp8XthWPUpDaMLDTVxQzuhc7Aty7mcoppIwyYpPBDBAD8D1b+BOzWW9fCL6/cIr7SpYeauN0ye7St0pupqNKfLeg5suIJasD2Y8vj6+fCNmF4AX0uTrtFkHPG4I9U+Yu6llyzxOxPn2NxkRmN0ERyr83XSJgFp9Pq+a4lH5JVAPZPjBAPwV6psxNm9EVqNXw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: F+VlF+J91ZC6tBy3n93KNgADK6g975XHPYKn3ZtLePZfpM5T8F7IbUy6h7ENwl1Fq6c2ANWoyz6urRE2mCPabaIN9rbFIqPDy1Xo7bQR60GIVehCdMQE4p9lPRb+YgIT36qvCti/VK6KKgye/KzvQQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2452b07a-339e-4b94-4d1f-08d93914b71c X-MS-Exchange-CrossTenant-AuthSource: SN6PR13MB4269.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2021 02:38:59.0166 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR13MB4813 X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_MUA_MOZILLA, FREEMAIL_FROM, HTML_MESSAGE, KAM_NUMSUBJECT, MSGID_FROM_MTA_HEADER, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2021 02:39:01 -0000 Jonathan Yong is correct - removing --build allows make to complete without error using the unmodified ltmain.sh There's still the issue of generating a call to cmd.exe with an invalid switch (//c), which will cause it to hang indefinitely if ever invoked. The risk of breaking anything by fixing this seems like nil. ------------------------------------------------------------------------ On 6/26/2021 3:17 PM, Brian Inglis wrote: > On 2021-06-25 14:46, Dietmar May via Cygwin wrote: >> The build completes successfully by replacing the "cmd /c | sed" >> construct with simply: >> >> func_convert_core_msys_to_w32_result=$1 >> >> so no path translation takes place. >> >> The function then becomes: >> >> func_convert_core_msys_to_w32 () >> { >>    $debug_cmd >> >> func_convert_core_msys_to_w32_result=$1 >> >> } > >>> SUMMARY >>> >>> func_convert_core_msys_to_w32 in >>> >>> /usr/share/libtool/build-aux/ltmain.sh >>> >>> has an extraneous '/' in the call to >>> >>> ( cmd //c echo "$1" ) >>> >>> causing make to hang indefinitely >>> >>> when configured with >>> >>> --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 > > Which you don't need to change if you configure properly, as JonY > replied on the list to your earlier post: > > On 2021-06-25 09:27, Jonathan Yong via Cygwin wrote: >  > >  > Don't set --build, you are building on Cygwin, not MSYS. >