qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests/docker: Install flex in debian-tricore-cross
@ 2023-01-12 15:56 Philippe Mathieu-Daudé
  2023-01-12 16:14 ` Alex Bennée
  2023-01-12 21:05 ` Bastian Koppelmann
  0 siblings, 2 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-01-12 15:56 UTC (permalink / raw)
  To: qemu-devel
  Cc: Beraldo Leal, Thomas Huth, Anton Johansson, Bastian Koppelmann,
	Wainer dos Santos Moschetta, Philippe Mathieu-Daudé,
	Alex Bennée, Peter Maydell

When flex is not available, binutils sources default to the
'missing' script, but the current script available is not in
the format expected by the 'configure' script:

  $ ./configure
  ...
  /usr/src/binutils/missing: Unknown `--run' option
  Try `/usr/src/binutils/missing --help' for more information
  configure: WARNING: `missing' script is too old or missing
  ...
  checking for bison... bison -y
  checking for flex... no
  checking for lex... no
  checking for flex... /usr/src/binutils/missing flex

  $ make
  ...
  updating ldgram.h
  gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./../bfd -I./../include -I./../intl -I../intl  -w -DLOCALEDIR="\"/usr/local/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -w -c `test -f 'ldgram.c' || echo './'`ldgram.c
  `test -f ldlex.l || echo './'`ldlex.l
  /bin/sh: 1: ldlex.l: not found
  make[3]: *** [Makefile:662: ldlex.c] Error 127
  make[3]: Leaving directory '/usr/src/binutils/ld'
  make[2]: *** [Makefile:799: all-recursive] Error 1

By pass the 'missing' script use by directly installing 'flex'
in the container.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
https://gitlab.com/philmd/qemu/-/jobs/3594948730
Duration: 4 minutes 38 seconds
---
 tests/docker/dockerfiles/debian-tricore-cross.docker | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/docker/dockerfiles/debian-tricore-cross.docker
index b573b9ded2..203e096ea3 100644
--- a/tests/docker/dockerfiles/debian-tricore-cross.docker
+++ b/tests/docker/dockerfiles/debian-tricore-cross.docker
@@ -20,6 +20,7 @@ RUN apt update && \
        bzip2 \
        ca-certificates \
        ccache \
+       flex \
        g++ \
        gcc \
        git \
-- 
2.38.1



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

* Re: [PATCH] tests/docker: Install flex in debian-tricore-cross
  2023-01-12 15:56 [PATCH] tests/docker: Install flex in debian-tricore-cross Philippe Mathieu-Daudé
@ 2023-01-12 16:14 ` Alex Bennée
  2023-01-12 21:05 ` Bastian Koppelmann
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Bennée @ 2023-01-12 16:14 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: qemu-devel, Beraldo Leal, Thomas Huth, Anton Johansson,
	Bastian Koppelmann, Wainer dos Santos Moschetta, Peter Maydell


Philippe Mathieu-Daudé <philmd@linaro.org> writes:

> When flex is not available, binutils sources default to the
> 'missing' script, but the current script available is not in
> the format expected by the 'configure' script:

Queued to testing/next, thanks.

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


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

* Re: [PATCH] tests/docker: Install flex in debian-tricore-cross
  2023-01-12 15:56 [PATCH] tests/docker: Install flex in debian-tricore-cross Philippe Mathieu-Daudé
  2023-01-12 16:14 ` Alex Bennée
@ 2023-01-12 21:05 ` Bastian Koppelmann
  1 sibling, 0 replies; 3+ messages in thread
From: Bastian Koppelmann @ 2023-01-12 21:05 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: qemu-devel, Beraldo Leal, Thomas Huth, Anton Johansson,
	Wainer dos Santos Moschetta, Alex Bennée, Peter Maydell

On Thu, Jan 12, 2023 at 04:56:43PM +0100, Philippe Mathieu-Daudé wrote:
> When flex is not available, binutils sources default to the
> 'missing' script, but the current script available is not in
> the format expected by the 'configure' script:
> 
>   $ ./configure
>   ...
>   /usr/src/binutils/missing: Unknown `--run' option
>   Try `/usr/src/binutils/missing --help' for more information
>   configure: WARNING: `missing' script is too old or missing
>   ...
>   checking for bison... bison -y
>   checking for flex... no
>   checking for lex... no
>   checking for flex... /usr/src/binutils/missing flex
> 
>   $ make
>   ...
>   updating ldgram.h
>   gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./../bfd -I./../include -I./../intl -I../intl  -w -DLOCALEDIR="\"/usr/local/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -w -c `test -f 'ldgram.c' || echo './'`ldgram.c
>   `test -f ldlex.l || echo './'`ldlex.l
>   /bin/sh: 1: ldlex.l: not found
>   make[3]: *** [Makefile:662: ldlex.c] Error 127
>   make[3]: Leaving directory '/usr/src/binutils/ld'
>   make[2]: *** [Makefile:799: all-recursive] Error 1
> 
> By pass the 'missing' script use by directly installing 'flex'
> in the container.
> 
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> https://gitlab.com/philmd/qemu/-/jobs/3594948730
> Duration: 4 minutes 38 seconds
> ---

Thanks for picking it up Phil. 

Reviewed-by: Bastian-Koppelmann <kbastian@mail.uni-paderborn.de>

Cheers,
Bastian


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

end of thread, other threads:[~2023-01-12 21:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-12 15:56 [PATCH] tests/docker: Install flex in debian-tricore-cross Philippe Mathieu-Daudé
2023-01-12 16:14 ` Alex Bennée
2023-01-12 21:05 ` Bastian Koppelmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).