From patchwork Tue Jan 3 13:53:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Cl=C3=A9ment_Chigot?= X-Patchwork-Id: 38431 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4630304wrt; Tue, 3 Jan 2023 05:54:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXsMVNlwd5EI3Rn9fg+u2NHo0o1QdMJarObVUe1Q8Y3uVK40hhuOTu6MHSoLXfzCLkB9Ids3 X-Received: by 2002:a05:6402:538d:b0:487:2ce6:2b80 with SMTP id ew13-20020a056402538d00b004872ce62b80mr22467095edb.8.1672754040944; Tue, 03 Jan 2023 05:54:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672754040; cv=none; d=google.com; s=arc-20160816; b=WBlPI8U7U+5UtlGbac1RMZc9oXqNoXzde/xOLbrB6Ix7+QuoUVfWXgzVvPtp79KrNw ySQzDk2QqhamTnPBecCwIhh6JBffiS/QBHlH9zow7QZpdFZiHtqbEPkGmmn6Lfg3Bbuu vh0mb6b1uDCLXHcAwg/N4MXkvZ8TvGoorff5h/DXx7FFfcifZ8FWSSZYuLSd63mXRBK9 j4TwKwTeJgoHxVrriddtYkpNnLP/cpfivJvLgILI+87uxIn30vJtfDU313nWI7IgYFb4 FH1XJ23HAv0yJuqbvoSQOenBUggwdfArNU6JkYBzGGBtaHA6UkrGSJqOjRqVZOTlAn+z p21g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:delivered-to:dkim-signature:dkim-filter; bh=rhaee8NY5LAxYQ+4Pfu+uKI2hEXbGQfzQPWbdz6RC/Y=; b=AlWSsva1wwrQLa/DMuTGff5i1K9l+BA03YcWA/eB0GPNeNdR0DHolbJvE7lx5ykjv3 gctUNM12PMM3JuxM3CVY+8ouPW3jrFJIQ2kJ/hIl6dXoaPZOU5OvUdRLxC2A5Jh7ol08 zwahtaI/mKRPhOzjrfX2TqRIbUjU65L2fzoi6IRVuXeayrs9nPO0Cyd2/l9HbDPDVyyE OllWNMqN1G6zyJ5cbWXvjE893hsd7jpYx4s/odj+BF1hpd5Qe8Tmd/CITKf4sllUjeHm 7sk/+pcCh9wVTnDe9obG9MhZWTc6uPnQCQ1PVCwa7KhOIwK9GVBFzbUNSvoRfFfvqjc0 y5MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b="kjnujv7/"; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id fd20-20020a056402389400b00486b6bfad93si17266465edb.421.2023.01.03.05.54.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 05:54:00 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b="kjnujv7/"; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 058DA3858410 for ; Tue, 3 Jan 2023 13:54:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 058DA3858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672754040; bh=rhaee8NY5LAxYQ+4Pfu+uKI2hEXbGQfzQPWbdz6RC/Y=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=kjnujv7/HQPe/DT0e+BgRG1pou5xGxyk7lXn/awasR203fhEBJqy3L3k4agNbjpqd T5FXGmMZ8EvOlLyud2mDSJo9egJhNEUFbEUYjRwQhnoauWMcCk7cn3TNZUmq6uPjND UGoP8XAGLz/4iz5pQNtS/1UPimGNy80MpreSPVhg= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 4F9A33858D1E for ; Tue, 3 Jan 2023 13:53:51 +0000 (GMT) Received: by mail-wr1-x432.google.com with SMTP id z16so13026609wrw.1 for ; Tue, 03 Jan 2023 05:53:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rhaee8NY5LAxYQ+4Pfu+uKI2hEXbGQfzQPWbdz6RC/Y=; b=zNDdx8zcXZxcHiA1loCaXd0qjznsesfVM03+SoWWSSsUUvuo8R93ZGgcfN69WT/+K3 tb9QR1o4v7ic6nG/wvqy2q721NrtreViOfQX3SHH3eUqDOUJZbOZ5ztVTJkMkud50tyh LY4F+iA84ZznqvgyuLdJRKd7mekLPzxQEj9R/smgKtuaNTiMV4nyjyUIQDFbKS5xggeX YKpktokQfGW7fqCVtXvUCvpBIQVlKNkJcQLeRA6j9Dkk0V09MbTW2rPG9tCrbQp2quzJ 3UiWaKfASSSP9VouOtcWzI97R1sokhriZ2WHUP+TMMQOMlTGlM9yYh28iyBYVCMpTwty WhJw== X-Gm-Message-State: AFqh2kqbbtINuCMkrC3LiZD0ArY3MwMGU/jJyGubaiK99JNqEggw3PBI euYUd7JZGXIxehtvMP3iFeBQdVnvTTPlbkdc X-Received: by 2002:adf:dd48:0:b0:242:70f0:9196 with SMTP id u8-20020adfdd48000000b0024270f09196mr29894504wrm.45.1672754029287; Tue, 03 Jan 2023 05:53:49 -0800 (PST) Received: from chigot-Dell.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id m24-20020a056000181800b00296730b5c3esm7911452wrh.102.2023.01.03.05.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 05:53:48 -0800 (PST) To: binutils@sourceware.org Cc: pinskia@gmail.com, nickc@redhat.com, =?utf-8?q?Cl=C3=A9ment_Chigot?= Subject: [PATCH] configure: remove dependencies on gmp and mpfr when gdb is disabled Date: Tue, 3 Jan 2023 14:53:30 +0100 Message-Id: <20230103135330.1225218-1-chigot@adacore.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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 X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Cl=C3=A9ment_Chigot_via_Binutils?= From: =?utf-8?q?Cl=C3=A9ment_Chigot?= Reply-To: =?utf-8?q?Cl=C3=A9ment_Chigot?= Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754009741610931222?= X-GMAIL-MSGID: =?utf-8?q?1754009741610931222?= Since 991180627851801f1999d1ebbc0e569a17e47c74, the configure checks about GMP and MPFR for gdb builds have been moved to the toplevel configure. However, it doesn't take into account the --disable-gdb option. Meaning that a build without gdb will require these libraries even if not needed. ChangeLog: * configure.ac: Skip GMP and MPFR errors when --disable-gdb is provided. * configure: Regenerate. --- configure | 4 +++- configure.ac | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 417fc5a970c..0fb8279cb8f 100755 --- a/configure +++ b/configure @@ -8426,11 +8426,13 @@ you obtained GMP, MPFR and/or MPC from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages." "$LINENO" 5 else - as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+. + if test "x$enable_gdb" != xno; then + as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+. Try the --with-gmp and/or --with-mpfr options to specify their locations. If you obtained GMP and/or MPFR from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages." "$LINENO" 5 + fi fi fi fi diff --git a/configure.ac b/configure.ac index 3a1eb0357e5..0ec2fffcb56 100644 --- a/configure.ac +++ b/configure.ac @@ -1814,11 +1814,13 @@ you obtained GMP, MPFR and/or MPC from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages.]) else - AC_MSG_ERROR([Building GDB requires GMP 4.2+, and MPFR 3.1.0+. + if test "x$enable_gdb" != xno; then + AC_MSG_ERROR([Building GDB requires GMP 4.2+, and MPFR 3.1.0+. Try the --with-gmp and/or --with-mpfr options to specify their locations. If you obtained GMP and/or MPFR from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages.]) + fi fi fi fi