Message ID | 20221216204845.19290-1-tsimpson@quicinc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, 16 Dec 2022 at 20:49, Taylor Simpson <tsimpson@quicinc.com> wrote: > > The following changes since commit 4208e6ae114ac8266dcacc9696a443ce5c37b04e: > > Merge tag 'pull-request-2022-12-15' of https://gitlab.com/thuth/qemu into staging (2022-12-15 21:39:56 +0000) > > are available in the Git repository at: > > https://github.com/quic/qemu tags/pull-hex-20221216-1 > > for you to fetch changes up to 585a86b1041a45c3b4074440c7f1b54944570867: > > target/hexagon: import additional tests (2022-12-16 12:30:28 -0800) > > ---------------------------------------------------------------- > > ****************************************************************** > ***** WARNING ***** > ***** This PR requires updated CI containers with flex/bison ***** > ****************************************************************** Does that mean somebody needs to do something before I can merge this? thanks -- PMM
On 12/17/22 22:21, Peter Maydell wrote: > Does that mean somebody needs to do something before I can merge this? > > thanks > -- PMM Hi Peter, no one needs to do anything about the CI, it has already been taken care of. All containers that need flex/bison have it, and the debian-hexagon-cross container has already been rebuilt manually and pushed by Alex. cheers,
On Fri, 16 Dec 2022 at 20:49, Taylor Simpson <tsimpson@quicinc.com> wrote: > > The following changes since commit 4208e6ae114ac8266dcacc9696a443ce5c37b04e: > > Merge tag 'pull-request-2022-12-15' of https://gitlab.com/thuth/qemu into staging (2022-12-15 21:39:56 +0000) > > are available in the Git repository at: > > https://github.com/quic/qemu tags/pull-hex-20221216-1 > > for you to fetch changes up to 585a86b1041a45c3b4074440c7f1b54944570867: > > target/hexagon: import additional tests (2022-12-16 12:30:28 -0800) Failed to build, s390x: https://gitlab.com/qemu-project/qemu/-/jobs/3492490152 Program scripts/decodetree.py found: YES (/usr/bin/python3 /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/scripts/decodetree.py) Program flex found: NO ../target/hexagon/meson.build:179:4: ERROR: Program 'flex' not found or not executable Can you get the CI requirements sorted out first, and then let me know when I can try re-merging this, please? thanks -- PMM
On 12/18/22 14:52, Peter Maydell wrote: > Failed to build, s390x: > > https://gitlab.com/qemu-project/qemu/-/jobs/3492490152 > > Program scripts/decodetree.py found: YES (/usr/bin/python3 > /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/scripts/decodetree.py) > Program flex found: NO > ../target/hexagon/meson.build:179:4: ERROR: Program 'flex' not found > or not executable > > Can you get the CI requirements sorted out first, and then > let me know when I can try re-merging this, please? > > thanks > -- PMM Oh, this is my bad. I didn't know we built Hexagon on s390x, I naively assumed the CI jobs ran locally matched those upstream. I'll send a patch adding flex/bison to s390x then. Thanks,
On 12/18/22 05:52, Peter Maydell wrote: > On Fri, 16 Dec 2022 at 20:49, Taylor Simpson <tsimpson@quicinc.com> wrote: >> >> The following changes since commit 4208e6ae114ac8266dcacc9696a443ce5c37b04e: >> >> Merge tag 'pull-request-2022-12-15' of https://gitlab.com/thuth/qemu into staging (2022-12-15 21:39:56 +0000) >> >> are available in the Git repository at: >> >> https://github.com/quic/qemu tags/pull-hex-20221216-1 >> >> for you to fetch changes up to 585a86b1041a45c3b4074440c7f1b54944570867: >> >> target/hexagon: import additional tests (2022-12-16 12:30:28 -0800) > > > Failed to build, s390x: > > https://gitlab.com/qemu-project/qemu/-/jobs/3492490152 > > Program scripts/decodetree.py found: YES (/usr/bin/python3 > /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/scripts/decodetree.py) > Program flex found: NO > ../target/hexagon/meson.build:179:4: ERROR: Program 'flex' not found > or not executable > > Can you get the CI requirements sorted out first, and then > let me know when I can try re-merging this, please? Our s390x host won't be affected by any of the scripts, it simply needs to be installed. Alex, can you please install flex + bison on s390x.ci.qemu.org? r~
On Sun, 18 Dec 2022 at 16:53, Richard Henderson <richard.henderson@linaro.org> wrote: > > On 12/18/22 05:52, Peter Maydell wrote: > > On Fri, 16 Dec 2022 at 20:49, Taylor Simpson <tsimpson@quicinc.com> wrote: > >> > >> The following changes since commit 4208e6ae114ac8266dcacc9696a443ce5c37b04e: > >> > >> Merge tag 'pull-request-2022-12-15' of https://gitlab.com/thuth/qemu into staging (2022-12-15 21:39:56 +0000) > >> > >> are available in the Git repository at: > >> > >> https://github.com/quic/qemu tags/pull-hex-20221216-1 > >> > >> for you to fetch changes up to 585a86b1041a45c3b4074440c7f1b54944570867: > >> > >> target/hexagon: import additional tests (2022-12-16 12:30:28 -0800) > > > > > > Failed to build, s390x: > > > > https://gitlab.com/qemu-project/qemu/-/jobs/3492490152 > > > > Program scripts/decodetree.py found: YES (/usr/bin/python3 > > /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/scripts/decodetree.py) > > Program flex found: NO > > ../target/hexagon/meson.build:179:4: ERROR: Program 'flex' not found > > or not executable > > > > Can you get the CI requirements sorted out first, and then > > let me know when I can try re-merging this, please? > > Our s390x host won't be affected by any of the scripts, > it simply needs to be installed. > > Alex, can you please install flex + bison on s390x.ci.qemu.org? Ah, if that's all we need to do, I have access for that. I'll install the packages and retry. thanks -- PMM
On Fri, 16 Dec 2022 at 20:49, Taylor Simpson <tsimpson@quicinc.com> wrote: > > The following changes since commit 4208e6ae114ac8266dcacc9696a443ce5c37b04e: > > Merge tag 'pull-request-2022-12-15' of https://gitlab.com/thuth/qemu into staging (2022-12-15 21:39:56 +0000) > > are available in the Git repository at: > > https://github.com/quic/qemu tags/pull-hex-20221216-1 > > for you to fetch changes up to 585a86b1041a45c3b4074440c7f1b54944570867: > > target/hexagon: import additional tests (2022-12-16 12:30:28 -0800) Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/8.0 for any user-visible changes. (In particular there is a section of the changelog for 'Build Dependencies' -- please add something there indicating under what circumstances flex/bison are now required.) -- PMM
On 18/12/22 18:01, Peter Maydell wrote: > On Sun, 18 Dec 2022 at 16:53, Richard Henderson > <richard.henderson@linaro.org> wrote: >> >> On 12/18/22 05:52, Peter Maydell wrote: >>> On Fri, 16 Dec 2022 at 20:49, Taylor Simpson <tsimpson@quicinc.com> wrote: >>>> >>>> The following changes since commit 4208e6ae114ac8266dcacc9696a443ce5c37b04e: >>>> >>>> Merge tag 'pull-request-2022-12-15' of https://gitlab.com/thuth/qemu into staging (2022-12-15 21:39:56 +0000) >>>> >>>> are available in the Git repository at: >>>> >>>> https://github.com/quic/qemu tags/pull-hex-20221216-1 >>>> >>>> for you to fetch changes up to 585a86b1041a45c3b4074440c7f1b54944570867: >>>> >>>> target/hexagon: import additional tests (2022-12-16 12:30:28 -0800) >>> >>> >>> Failed to build, s390x: >>> >>> https://gitlab.com/qemu-project/qemu/-/jobs/3492490152 >>> >>> Program scripts/decodetree.py found: YES (/usr/bin/python3 >>> /home/gitlab-runner/builds/-LCfcJ2T/0/qemu-project/qemu/scripts/decodetree.py) >>> Program flex found: NO >>> ../target/hexagon/meson.build:179:4: ERROR: Program 'flex' not found >>> or not executable >>> >>> Can you get the CI requirements sorted out first, and then >>> let me know when I can try re-merging this, please? >> >> Our s390x host won't be affected by any of the scripts, >> it simply needs to be installed. scripts/ci/setup/build-environment.yml need to be updated although. >> Alex, can you please install flex + bison on s390x.ci.qemu.org? > > Ah, if that's all we need to do, I have access for that. I'll > install the packages and retry. > > thanks > -- PMM
> -----Original Message----- > From: Peter Maydell <peter.maydell@linaro.org> > Sent: Monday, December 19, 2022 4:28 AM > To: Taylor Simpson <tsimpson@quicinc.com> > Cc: qemu-devel@nongnu.org; richard.henderson@linaro.org; > philmd@linaro.org; Brian Cain <bcain@quicinc.com>; Matheus Bernardino > (QUIC) <quic_mathbern@quicinc.com>; stefanha@redhat.com > Subject: Re: [PULL 00/21] Hexagon update: bug fixes, performance, idef- > parser > > On Fri, 16 Dec 2022 at 20:49, Taylor Simpson <tsimpson@quicinc.com> wrote: > > > > The following changes since commit > 4208e6ae114ac8266dcacc9696a443ce5c37b04e: > > > > Merge tag 'pull-request-2022-12-15' of https://gitlab.com/thuth/qemu > > into staging (2022-12-15 21:39:56 +0000) > > > > are available in the Git repository at: > > > > https://github.com/quic/qemu tags/pull-hex-20221216-1 > > > > for you to fetch changes up to > 585a86b1041a45c3b4074440c7f1b54944570867: > > > > target/hexagon: import additional tests (2022-12-16 12:30:28 -0800) > > > Applied, thanks. Thanks!! > > Please update the changelog at https://wiki.qemu.org/ChangeLog/8.0 > for any user-visible changes. (In particular there is a section of the changelog > for 'Build Dependencies' -- please add something there indicating under what > circumstances flex/bison are now required.) I've forgotten my password. How do I reset it? Taylor
Hi, On 16/12/22 21:48, Taylor Simpson wrote: > ---------------------------------------------------------------- > 12-21) > Instruction definition parser (idef-parser) from rev.ng > Parses the instruction semantics and generates TCG Building QEMU with Clang I'm now getting: target/hexagon/idef-parser.p/idef-parser.tab.c:2197:9: error: variable 'yynerrs' set but not used [-Werror,-Wunused-but-set-variable] int yynerrs = 0; ^ Regards, Phil.
On 20/12/22 00:19, Philippe Mathieu-Daudé wrote: > Hi, > > On 16/12/22 21:48, Taylor Simpson wrote: > >> ---------------------------------------------------------------- > >> 12-21) >> Instruction definition parser (idef-parser) from rev.ng >> Parses the instruction semantics and generates TCG > > Building QEMU with Clang I'm now getting: > > target/hexagon/idef-parser.p/idef-parser.tab.c:2197:9: error: variable > 'yynerrs' set but not used [-Werror,-Wunused-but-set-variable] > int yynerrs = 0; > ^ idef-parser.tab.c is built using: 193 idef_parser = executable( 194 'idef-parser', 195 [flex.process(idef_parser_dir / 'idef-parser.lex'), 196 bison.process(idef_parser_dir / 'idef-parser.y'), 197 idef_parser_dir / 'parser-helpers.c'], 198 include_directories: ['idef-parser', '../../include/'], 199 dependencies: [glib_dep], 200 c_args: ['-Wextra'], ^^^^^^^^ 201 native: true 202 ) (see commit c0a41ee631 "target/hexagon: import parser for idef-parser") Do we really need this level? IIUC the problem with -Wextra is using a newer compiler toolchain it can include warnings we haven't fixed. Maybe worthwhile but it can break from times to times. Using '-Wextra -Wno-unused-but-set-variable' seems a hack. I guess I'd simply remove -Wextra for simplicity, since no much value is added here. Regards, Phil.
On Mon, 19 Dec 2022 18:54:22 +0000 Taylor Simpson <tsimpson@quicinc.com> wrote: > > Applied, thanks. > > Thanks!! Thanks from our side too! :) We started this project back in 2015, I'm really happy we finally got it in!
On Tue, 20 Dec 2022 08:30:02 +0100 Philippe Mathieu-Daudé <philmd@linaro.org> wrote: > Do we really need this level? IIUC the problem with -Wextra is using a > newer compiler toolchain it can include warnings we haven't fixed. > Maybe worthwhile but it can break from times to times. I think we just wanted to be overly zealous. Flags typically used by QEMU are fine. Shall I send a patch to drop -Wextra?
On 20/12/22 13:51, Alessandro Di Federico wrote: > On Tue, 20 Dec 2022 08:30:02 +0100 > Philippe Mathieu-Daudé <philmd@linaro.org> wrote: > >> Do we really need this level? IIUC the problem with -Wextra is using a >> newer compiler toolchain it can include warnings we haven't fixed. >> Maybe worthwhile but it can break from times to times. > > I think we just wanted to be overly zealous. > Flags typically used by QEMU are fine. > > Shall I send a patch to drop -Wextra? Well I think so, but meanwhile I'm surprised nobody else reported that, not even the CI.
> -----Original Message----- > From: Philippe Mathieu-Daudé <philmd@linaro.org> > Sent: Tuesday, December 20, 2022 8:20 AM > To: Alessandro Di Federico <ale@rev.ng> > Cc: Taylor Simpson <tsimpson@quicinc.com>; qemu-devel@nongnu.org; > Paolo Montesel <babush@rev.ng>; Anton Johansson <anjo@rev.ng>; > richard.henderson@linaro.org; peter.maydell@linaro.org; Brian Cain > <bcain@quicinc.com>; Matheus Bernardino (QUIC) > <quic_mathbern@quicinc.com>; stefanha@redhat.com > Subject: Re: [PULL 00/21] Hexagon update: bug fixes, performance, idef- > parser > > On 20/12/22 13:51, Alessandro Di Federico wrote: > > On Tue, 20 Dec 2022 08:30:02 +0100 > > Philippe Mathieu-Daudé <philmd@linaro.org> wrote: > > > >> Do we really need this level? IIUC the problem with -Wextra is using > >> a newer compiler toolchain it can include warnings we haven't fixed. > >> Maybe worthwhile but it can break from times to times. > > > > I think we just wanted to be overly zealous. > > Flags typically used by QEMU are fine. > > > > Shall I send a patch to drop -Wextra? > > Well I think so, but meanwhile I'm surprised nobody else reported that, not > even the CI. What version of clang are you using? I tried 15.0.6, but just dropping the -W extra didn't fix the problem. This worked for me diff --git a/target/hexagon/meson.build b/target/hexagon/meson.build index e8f250fcac..4dbceb7765 100644 --- a/target/hexagon/meson.build +++ b/target/hexagon/meson.build @@ -197,7 +197,7 @@ if idef_parser_enabled and 'hexagon-linux-user' in target_dirs idef_parser_dir / 'parser-helpers.c'], include_directories: ['idef-parser', '../../include/'], dependencies: [glib_dep], - c_args: ['-Wextra'], + c_args: ['-Wno-unused-but-set-variable'], native: true ) Taylor