All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Hexagon (meson.build): define min bison version
@ 2023-02-07 14:52 Matheus Tavares Bernardino
  2023-02-07 14:54 ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 11+ messages in thread
From: Matheus Tavares Bernardino @ 2023-02-07 14:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: anjo, tsimpson, bcain, quic_acaggian

Hexagon's idef-parser machinery uses some bison features that are not
available at older versions. The most preeminent example (as it can
be used as a sentinel) is "%define parse.error verbose". This was
introduced in version 3.0 of the tool, which is able to compile
qemu-hexagon just fine. However, compilation fails with the previous
minor bison release, v2.7. So let's assert the minimum version at
meson.build to give a more comprehensive error message for those trying
to compile QEMU.

[1]: https://www.gnu.org/software/bison/manual/html_node/_0025define-Summary.html#index-_0025define-parse_002eerror

Signed-off-by: Matheus Tavares Bernardino <quic_mathbern@quicinc.com>
---
 target/hexagon/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/hexagon/meson.build b/target/hexagon/meson.build
index c9d31d095c..42b03c81e6 100644
--- a/target/hexagon/meson.build
+++ b/target/hexagon/meson.build
@@ -183,7 +183,7 @@ if idef_parser_enabled and 'hexagon-linux-user' in target_dirs
     )
 
     bison = generator(
-        find_program('bison'),
+        find_program('bison', version: '>=3.0'),
         output: ['@BASENAME@.tab.c', '@BASENAME@.tab.h'],
         arguments: ['@INPUT@', '--defines=@OUTPUT1@', '--output=@OUTPUT0@']
     )
-- 
2.37.2



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-02-08  8:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-07 14:52 [PATCH] Hexagon (meson.build): define min bison version Matheus Tavares Bernardino
2023-02-07 14:54 ` Philippe Mathieu-Daudé
2023-02-07 15:08   ` Thomas Huth
2023-02-07 15:49     ` Taylor Simpson
2023-02-07 16:07       ` Alessandro Di Federico
2023-02-07 16:07         ` Alessandro Di Federico via
2023-02-07 16:11     ` Philippe Mathieu-Daudé
2023-02-07 16:12       ` Philippe Mathieu-Daudé
2023-02-08  8:53       ` Bastian Koppelmann
2023-02-07 16:56     ` Matheus Tavares Bernardino
2023-02-07 17:12       ` Daniel P. Berrangé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.