From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 34500 invoked by alias); 16 Dec 2019 17:38:49 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 34487 invoked by uid 89); 16 Dec 2019 17:38:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:896 X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Dec 2019 17:38:47 +0000 Received: from [172.16.0.95] (192-222-181-218.qc.cable.ebox.net [192.222.181.218]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 8B5971E512; Mon, 16 Dec 2019 12:38:44 -0500 (EST) Subject: Re: GDB 9.0.90 available for testing To: Eli Zaretskii , Joel Brobecker Cc: gdb-patches@sourceware.org References: <20191211214745.E1CF0838D4@joel.gnat.com> <83tv604239.fsf@gnu.org> From: Simon Marchi Message-ID: <754fddbb-8d19-2d71-7a9b-cab519be5e81@simark.ca> Date: Mon, 16 Dec 2019 17:38:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <83tv604239.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-12/txt/msg00707.txt.bz2 On 2019-12-16 12:22 p.m., Eli Zaretskii wrote: > 3. When configure runs in gdb/, it displays a warning thusly: > > checking for pthread-config... no > /d/usr/eli/utils/gdb-9.0.90/gdb/configure: line 14342: test: =: unary operator expected > > It is triggered by this line: > > if test $gdb_cv_cxx_std_thread = yes; then > > but I have no idea what's wrong with this. Any hints? This is most likely due to the variable gdb_cv_cxx_std_thread being empty. See, we get the same error message if we do this with bash: bash$ test = yes bash: test: =: unary operator expected We either need to (1) make sure gdb_cv_cxx_std_thread is set to something, regardless of the code path taken (2) wrap $db_cv_cxx_std_thread in quotes Even if we do (1), it's good practice to do (2), in case the variable has spaces in it. That code is in gdbsupport/common.m4. Simon