From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id 637C23858C53; Tue, 3 Jan 2023 11:52:40 +0000 (GMT) Received: by mail-pg1-x533.google.com with SMTP id 141so1631965pgc.0; Tue, 03 Jan 2023 03:52:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ap4OCAGljv8hCacRtlZCy5uGlT0enpRdvwg/lxDX1+w=; b=P+KDq+DzpRcjdfjgObFq7YnL6ZA+EKhM0UGknWzIDzunEZd5kxbF9crBkhnqTMvD3t NUugfbJ0LLVgnoXfQgHMFaLCSj5YZOON0AapamSQmjItaR7kSlE9TVQM0gM297NtSKbb c0TIPbZ5wxTJTFTiDuX+4ulIZ1qETaQLDBXiZPD4aHE+IfGqwIlZ+d1izCFKZEHsp+7C /QwPSnw8TQW273DEKHftlR0APkYvbMaVy+RRn79RFxa+HYnfJEEz3xP6skzj5cOCrSw7 lY8+p4+5QT00I7uzp8T0KVQzNmeWL6x0s/r3/Rx0dsArpqblk2pr3EypSV402l0i+KQ6 e9bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ap4OCAGljv8hCacRtlZCy5uGlT0enpRdvwg/lxDX1+w=; b=MVD3nZeLwaZcA3pGEhW9kuGpov5yBCMyWxboCdT52P07gseiQmZMG3u+Ir9HrtmZEE oW9dxPlAEWMJj7gyR2IKu2p8wWb83hsz7kDiJ6cRSpJYeWEV63SwgiCh3FOsvoKQph+S MgyUF+buJooSvXuDE594sqX6M8VtwoRgE/MUBQ9UCaLJ5LoTvuEMGe+Wk9JXBtg9fN2U sb6OHzq7AsF2vEIDovUVOgylplDwDlzyEmBCP07FAxof8m5XidFHA39NU1a8bTxaOe5q pTy/j6nZPbCxEuW5eRr6dMU4Na5t4Y1WxLFQofPZK4mquoZriESOu+MLMS1oaMH9JW0F XXOA== X-Gm-Message-State: AFqh2kpYnWtXfZP/zcqHa5V58kwoGF2gbDgepNUfgiG87kUiY+WPJH54 Fj7ilBa2ykel44H+7/dJJ1n7FMa71MbuhLHOB2BhIJTn X-Google-Smtp-Source: AMrXdXuXvjCQJ+c8x7y5CHTePflPSfGKttQmk2OZ2uqAcBU2eaxQ58RMbqDASlWkUnMAhdBkqkOSEciGWCwt7406hDM= X-Received: by 2002:a63:db11:0:b0:478:d4ce:5d3f with SMTP id e17-20020a63db11000000b00478d4ce5d3fmr2774727pgg.277.1672746759532; Tue, 03 Jan 2023 03:52:39 -0800 (PST) MIME-Version: 1.0 References: <1668107159-16961-1-git-send-email-apinski@marvell.com> <877cyllx53.fsf@tromey.com> <87v8m4iyt1.fsf@tromey.com> In-Reply-To: From: Andrew Pinski Date: Tue, 3 Jan 2023 03:52:27 -0800 Message-ID: Subject: Re: [PATCHv2] Use toplevel configure for GMP and MPFR for gdb To: =?UTF-8?Q?Cl=C3=A9ment_Chigot?= Cc: binutils@sourceware.org, apinski@marvell.com, Jeff Law , Tom Tromey , gdb-patches@sourceware.org, Nick Clifton Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, Jan 3, 2023 at 2:52 AM Cl=C3=A9ment Chigot wro= te: > > Hi guys, > > Since this patch, binutils without mpfr and gmp is unable to build > when gdb is disabled (with configure option --disable-gdb). The issue only happens if you are building from git repo. the release versions of binutils does NOT include the gdb directory so it does not matter. Thanks, Andrew Pinski > But > AFAICT, these libraries are not required if gdb isn't there. > Moreover, the following error looks wrong to me when gdb is explicitly > requested not to be built. > | configure: error: Building GDB requires GMP 4.2+, and MPFR 3.1.0+. > | Try the --with-gmp and/or --with-mpfr options to specify > > Thus, I'm wondering if there are any plans to also use gmp and mpfr in > binutils without gdb (adding Nick for that) ? In this case, we would > want to change the error message. > Or is this patch only meant for gdb and should be adjusted for --disable-= gdb ? > > Thanks, > Cl=C3=A9ment