Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Eli Zaretskii <eliz@gnu.org>, Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: GDB 9.0.90 available for testing
Date: Mon, 16 Dec 2019 17:38:00 -0000	[thread overview]
Message-ID: <754fddbb-8d19-2d71-7a9b-cab519be5e81@simark.ca> (raw)
In-Reply-To: <83tv604239.fsf@gnu.org>

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


  reply	other threads:[~2019-12-16 17:38 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-11 21:47 Joel Brobecker
2019-12-11 21:56 ` Joel Brobecker
2019-12-16 17:23 ` Eli Zaretskii
2019-12-16 17:38   ` Simon Marchi [this message]
2019-12-16 17:50     ` Eli Zaretskii
2019-12-23  7:54       ` Joel Brobecker
2019-12-16 18:52   ` Christian Biesinger via gdb-patches
2019-12-16 19:18     ` Eli Zaretskii
2019-12-16 19:36       ` Pedro Alves
2019-12-16 19:57         ` Eli Zaretskii
2019-12-16 20:37           ` Christian Biesinger via gdb-patches
2019-12-16 20:38           ` Pedro Alves
2019-12-17 17:25             ` Eli Zaretskii
2019-12-18 20:19   ` Christian Biesinger via gdb-patches
2019-12-19 15:00     ` Eli Zaretskii
2019-12-19 19:17       ` Christian Biesinger via gdb-patches
2019-12-19 19:38         ` Eli Zaretskii
2019-12-23  7:43           ` Joel Brobecker
2019-12-23 17:32             ` Eli Zaretskii
2019-12-24  3:53               ` Joel Brobecker
2019-12-24 15:30                 ` Eli Zaretskii
2020-01-17 20:56                   ` Christian Biesinger via gdb-patches
2020-01-17 21:09                     ` Eli Zaretskii
2019-12-23  8:01   ` Joel Brobecker
2019-12-23 13:56     ` Eli Zaretskii
2019-12-24  3:49       ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=754fddbb-8d19-2d71-7a9b-cab519be5e81@simark.ca \
    --to=simark@simark.ca \
    --cc=brobecker@adacore.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox