From: Simon Marchi <simon.marchi@ericsson.com>
To: Ulrich Weigand <uweigand@de.ibm.com>,
Simon Marchi <simon.marchi@polymtl.ca>
Cc: <jreiser@bitwagon.com>, <gdb-patches@sourceware.org>
Subject: Re: Build failure with flex 2.5.4 (Re: [PATCH] fix race when building ada-lex.c)
Date: Thu, 03 May 2018 21:35:00 -0000 [thread overview]
Message-ID: <d329b813-4ee5-2a6d-c8db-6ebff1e44ac0@ericsson.com> (raw)
In-Reply-To: <20180503150840.B86CFD8050A@oc3748833570.ibm.com>
On 2018-05-03 11:08 AM, Ulrich Weigand wrote:
> Simon Marchi wrote:
>
>> Huh, I also wondered whether --stdout was a widely available option. I
>> found it was added by this commit in flex:
>>
>> https://github.com/westes/flex/commit/16fe6f3
>>
>> and since it is 16-17 years old, I didn't raise a flag. But we can
>> certainly use -t. Can you confirm it works as intended on that system?
>
> Yes, -t works as intended.
Thanks, I pushed this change.
From 4ea17de8f1985273215b515d48fbd59b2ced3cd1 Mon Sep 17 00:00:00 2001
From: Simon Marchi <simon.marchi@ericsson.com>
Date: Thu, 3 May 2018 17:29:14 -0400
Subject: [PATCH] Use flex's -t option instead of --stdout
As reported in
https://sourceware.org/ml/gdb-patches/2018-05/msg00042.html
some old versions of flex (2.5.4) don't support the --stdout switch.
Use -t, which is an alias.
gdb/ChangeLog:
* Makefile.in (%.c: %.l): Use -t instead of --stdout.
---
gdb/ChangeLog | 4 ++++
gdb/Makefile.in | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1825c2c..1a44240 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
+
+ * Makefile.in (%.c: %.l): Use -t instead of --stdout.
+
2018-05-03 Pedro Alves <palves@redhat.com>
* s390-linux-nat.c
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index be76928..87d74a7 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -2500,7 +2500,7 @@ po/$(PACKAGE).pot: force
mv $@.new $@
%.c: %.l
if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \
- $(FLEX) --stdout $< \
+ $(FLEX) -t $< \
| sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
--
2.7.4
next prev parent reply other threads:[~2018-05-03 21:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-28 21:13 [PATCH] fix race when building ada-lex.c John Reiser
2018-04-29 15:58 ` Simon Marchi
2018-05-03 14:40 ` Build failure with flex 2.5.4 (Re: [PATCH] fix race when building ada-lex.c) Ulrich Weigand
2018-05-03 14:48 ` Simon Marchi
2018-05-03 15:08 ` Ulrich Weigand
2018-05-03 21:35 ` Simon Marchi [this message]
2018-05-04 9:07 ` Ulrich Weigand
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=d329b813-4ee5-2a6d-c8db-6ebff1e44ac0@ericsson.com \
--to=simon.marchi@ericsson.com \
--cc=gdb-patches@sourceware.org \
--cc=jreiser@bitwagon.com \
--cc=simon.marchi@polymtl.ca \
--cc=uweigand@de.ibm.com \
/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