From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UsZNOeUpA2CqYQAAWB0awg (envelope-from ) for ; Sat, 16 Jan 2021 13:01:09 -0500 Received: by simark.ca (Postfix, from userid 112) id DD76F1EF80; Sat, 16 Jan 2021 13:01:09 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=FORGED_MUA_MOZILLA, FREEMAIL_FROM,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 8C9781E945 for ; Sat, 16 Jan 2021 13:01:09 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0B6BF383F842; Sat, 16 Jan 2021 18:01:08 +0000 (GMT) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-oln040092068014.outbound.protection.outlook.com [40.92.68.14]) by sourceware.org (Postfix) with ESMTPS id 36D3C383F842 for ; Sat, 16 Jan 2021 18:01:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 36D3C383F842 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=hotmail.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bernd.edlinger@hotmail.de ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=blwL9N8R+rjrKv/YFqd2+crdIAKTssJcqXx/pJLnUxJFzJ4cOSowemR2r5DkELA5cQsbOMIIa9iGaU4rKK3/2cP7TA+OOp9H/qjEGWVoDaR87m8mDz3eFfWgaZYjW5Tc24g+fbA0eC2nYfDx4k/zfujN3aBxn36IheVXq9eF00kJz59+s2ah5VpeWyGe5N7eSZoUpNx4lxgrNwzKWIeZR6q9booEfFpRWx1m/x2yEjc7B33M01XCon+AsX3HQFauVJHmW9zcS6uhyYBedKT3xCKBKxURR++ZmspT5hrlLw3TQfBQ7nSY9mzGIeVmVuCQftBLKK3g/zYOhvJsNFjU8A== 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=BdeqSeyu7VoTQDtnfPZP5WjVTUEKFPNriXoD79FDzHQ=; b=XZJKS+LtxiT+//e+S6m0LFhfPq5YFimvLSv517StT4MxNfhzox9w/3+Hd6KrM56QZJSTBNK+jy2zkmXzEggaACVD+guhtYhc5zUnobo7SJNCRaJS5zfwAY5vyiaz65WhD3hNYnoAECv9GProPuWEr9GVSv2xNupqidCIZZIHupjD/qvnuqanFi/KAkUMZwoPlU1nHYmNbd4Em86/34lW6hQSBAZXgKEIU1qs4eBcMDICw/W4Iou4ypieFo6zWa+fQtFD/AxlrUkh0u5XrXm8etFQzll2KoxND6Q9IzDjUNKTnttBRHiotWsET9/1leU01STb555H2Cm8Hv44Yh6c8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from HE1EUR02FT029.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1d::42) by HE1EUR02HT013.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1d::80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.12; Sat, 16 Jan 2021 18:01:03 +0000 Received: from AM0PR0602MB3410.eurprd06.prod.outlook.com (2a01:111:e400:7e1d::51) by HE1EUR02FT029.mail.protection.outlook.com (2a01:111:e400:7e1d::147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.12 via Frontend Transport; Sat, 16 Jan 2021 18:01:03 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:79187E20A3F5027CC298CA5E9F55A8FD051F59D771C324D771801E35D3F11DC3; UpperCasedChecksum:49E0F1FF45BF4153B42D45EA6C73E077C78223D3BC09F593AEFF8ED2C50D9C1B; SizeAsReceived:8549; Count:48 Received: from AM0PR0602MB3410.eurprd06.prod.outlook.com ([fe80::60c8:86c2:bdaa:f0d2]) by AM0PR0602MB3410.eurprd06.prod.outlook.com ([fe80::60c8:86c2:bdaa:f0d2%3]) with mapi id 15.20.3763.013; Sat, 16 Jan 2021 18:01:03 +0000 Subject: Re: [PATCH v2] Enable GDB build with in-tree GMP and MPFR To: Joel Brobecker References: <20201215023315.GK3461@adacore.com> <4ea7575a-b727-d9b7-e510-5c8b942f77f9@polymtl.ca> <20201216073333.GA934694@adacore.com> <89e6d36b-7a4b-4eed-69bd-fa82add4dab0@polymtl.ca> <1451a5d1-97e4-3c37-030f-f2808249b100@polymtl.ca> <20210111032201.GA2052927@adacore.com> From: Bernd Edlinger Message-ID: Date: Sat, 16 Jan 2021 19:01:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 In-Reply-To: <20210111032201.GA2052927@adacore.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TMN: [c/qAjW1GWcwnJLVIYJuGLzr1tw5AgJB/] X-ClientProxiedBy: AM3PR07CA0056.eurprd07.prod.outlook.com (2603:10a6:207:4::14) To AM0PR0602MB3410.eurprd06.prod.outlook.com (2603:10a6:208:21::24) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.101] (88.68.3.2) by AM3PR07CA0056.eurprd07.prod.outlook.com (2603:10a6:207:4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.5 via Frontend Transport; Sat, 16 Jan 2021 18:01:02 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 4b8bd8f6-eb2c-4643-66c9-08d8ba48b01e X-MS-TrafficTypeDiagnostic: HE1EUR02HT013: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NfT7AJYedj1dy/9Kh9n8FBaa676CeSGbSJ5QwHRitSxDlO/uZqt8K79Zgek4EAxoYtqwkH+atUOGQVLVzaumuh3CwFPQsnnz8fuGAsNiNMiK4MEL45pgyBgSQ/zhpE99Taf3mCVzZMIbOARDQqqs+d5YhXkeoLHnFtaiTz0ld/xhukhgM++u7+5rB3nPg7UaGwUG0pp1a3oPd5yKd3sliwujMllnpztjMxX4zPnHjaMGIg8qE4jwNStmR6nfpDZMa3GUM4CpvP3oLCfGnykQE2c+aXJMCZS9c3or8NzhUZjjCEy5Vjas4jXzxxgRokXppOJuxGU/+N3gIR5JuST2X1HVtcOH7kL4utxAMOllqvDmLgLm2tppsqATWbNW4+plmaAnXnZnQurnZUaZ39xpJA== X-MS-Exchange-AntiSpam-MessageData: eLNeZM37aDs20eDAKnaBgAPMtv/dGBCjbHkMeks8hHfsyjtAbsQd7oe5K3YuvASoHfPHFaWaWmuelKM93pKSnsS2nprlzpDCQgYwOJXoKBTIjeCYHBzEmoAsuFw7GoW9bPmgJJrI36VX4KEj2/EYdw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b8bd8f6-eb2c-4643-66c9-08d8ba48b01e X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2021 18:01:03.1817 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: HE1EUR02FT029.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR02HT013 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pedro Alves , Tom Tromey , "gdb-patches@sourceware.org" Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 1/11/21 4:22 AM, Joel Brobecker wrote: >>> But I prefer having none of them, and just having a built mpfr/gmp >>> be a prerequisite step to building GDB. >> >> Hmm, I see, but it was argued previously on this list, that it is okay >> for GDB to have a mandatory dependency to GMP because GCC has the same >> dependency. > > I think it was to show that this extra dependency wasn't going to > introduce an unreasonable burden on the developers of some specific > platform. Other that that, I wasn't trying to "follow" GCC. > >> However GCC offers exactly the same convenience as it allows GMP >> to be optionally built in-tree. > > I wouldn't object to that convenience, but I'm in the same camp as > Simon on that one. I know that this convenience is easier, and > I used to take advantage of something like that for e.g. libiconv; > but I soon realized that I kept rebuilding the same thing over and over > every time I rebuilt everything from scratch. In the end, it took a tiny > bit of effort to build and install that library once, and that was it, > I used that same library build until I had to switch to a different > machine. Maybe those libraries aren't big enough to make that much of > a difference (I haven't checked), but I found in the end that I didn't > really miss the convenience. > > Another option if you are on GNU/Linux is to install the system version > together with the corresponding "devel" package. I assume it's not > something that works for you? > Sure, but from time to time, I also want to build using a cross-compiler for an entirely different target. And for that I would like the binary to be completely self-contained if possible, just like when I build gcc for a different target. I don't say it is impossible to set up a statically built cross-gmp for that, but it is not straight-forward either, and since the top-level configury handles everything automatically for cross-builds, it is rather simple in comparison. Bernd.