linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* landlock: fs_test: fs_test.c:4524:9: error: initializer element is not a compile-time constant
@ 2023-08-17 10:51 Naresh Kamboju
  2023-08-17 15:54 ` Nick Desaulniers
  0 siblings, 1 reply; 5+ messages in thread
From: Naresh Kamboju @ 2023-08-17 10:51 UTC (permalink / raw)
  To: clang-built-linux, open list, open list:KERNEL SELFTEST FRAMEWORK,
	linux-fsdevel, lkft-triage
  Cc: Shuah Khan, Anders Roxell, Mickaël Salaün,
	Richard Weinberger

While building selftests landlock following warnings / errors noticed on the
Linux next with clang-17.

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

Build errors:
------------
landlock/fs_test
fs_test.c:4524:9: error: initializer element is not a compile-time constant
 4524 |         .mnt = mnt_tmp,
      |                ^~~~~~~
1 error generated.

Links:
 - https://storage.tuxsuite.com/public/linaro/lkft/builds/2U69ue7AaypfY7eRU4UUygecrDx/

Steps to reproduce:
tuxmake --runtime podman --target-arch arm64 --toolchain clang-17
--kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2U69ue7AaypfY7eRU4UUygecrDx/config
LLVM=1 LLVM_IAS=1 dtbs dtbs-legacy headers kernel kselftest modules

--
Linaro LKFT
https://lkft.linaro.org

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

* Re: landlock: fs_test: fs_test.c:4524:9: error: initializer element is not a compile-time constant
  2023-08-17 10:51 landlock: fs_test: fs_test.c:4524:9: error: initializer element is not a compile-time constant Naresh Kamboju
@ 2023-08-17 15:54 ` Nick Desaulniers
  2023-08-18  5:18   ` Naresh Kamboju
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Desaulniers @ 2023-08-17 15:54 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: clang-built-linux, open list, open list:KERNEL SELFTEST FRAMEWORK,
	linux-fsdevel, lkft-triage, Shuah Khan, Anders Roxell,
	Mickaël Salaün, Richard Weinberger

On Thu, Aug 17, 2023 at 3:51 AM Naresh Kamboju
<naresh.kamboju@linaro.org> wrote:
>
> While building selftests landlock following warnings / errors noticed on the
> Linux next with clang-17.
>
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
>
> Build errors:
> ------------
> landlock/fs_test
> fs_test.c:4524:9: error: initializer element is not a compile-time constant

Hi Naresh,
Can you tell me more about your specific version of clang-17?

I believe a fix of mine to clang should address this. It landed in
clang-18, and was backported to clang-17 recently.
https://github.com/llvm/llvm-project-release-prs/commit/0b2d5b967d98375793897295d651f58f6fbd3034

I suspect your clang-17 might need a rebuild.  Thanks for the report.

>  4524 |         .mnt = mnt_tmp,
>       |                ^~~~~~~
> 1 error generated.
>
> Links:
>  - https://storage.tuxsuite.com/public/linaro/lkft/builds/2U69ue7AaypfY7eRU4UUygecrDx/
>
> Steps to reproduce:
> tuxmake --runtime podman --target-arch arm64 --toolchain clang-17
> --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2U69ue7AaypfY7eRU4UUygecrDx/config
> LLVM=1 LLVM_IAS=1 dtbs dtbs-legacy headers kernel kselftest modules
>
> --
> Linaro LKFT
> https://lkft.linaro.org
>


-- 
Thanks,
~Nick Desaulniers

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

* Re: landlock: fs_test: fs_test.c:4524:9: error: initializer element is not a compile-time constant
  2023-08-17 15:54 ` Nick Desaulniers
@ 2023-08-18  5:18   ` Naresh Kamboju
  2023-08-21 14:20     ` Naresh Kamboju
  0 siblings, 1 reply; 5+ messages in thread
From: Naresh Kamboju @ 2023-08-18  5:18 UTC (permalink / raw)
  To: Nick Desaulniers
  Cc: clang-built-linux, open list, open list:KERNEL SELFTEST FRAMEWORK,
	linux-fsdevel, lkft-triage, Shuah Khan, Anders Roxell,
	Mickaël Salaün, Richard Weinberger

On Thu, 17 Aug 2023 at 21:24, Nick Desaulniers <ndesaulniers@google.com> wrote:
>
> On Thu, Aug 17, 2023 at 3:51 AM Naresh Kamboju
> <naresh.kamboju@linaro.org> wrote:
> >
> > While building selftests landlock following warnings / errors noticed on the
> > Linux next with clang-17.
> >
> > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> >
> > Build errors:
> > ------------
> > landlock/fs_test
> > fs_test.c:4524:9: error: initializer element is not a compile-time constant
>
> Hi Naresh,
> Can you tell me more about your specific version of clang-17?

    compiler:
        name: clang,
        version: 17.0.0,
        version_full: Debian clang version 17.0.0
(++20230725053429+d0b54bb50e51-1~exp1~20230725173444.1)

>
> I believe a fix of mine to clang should address this. It landed in
> clang-18, and was backported to clang-17 recently.
> https://github.com/llvm/llvm-project-release-prs/commit/0b2d5b967d98375793897295d651f58f6fbd3034
>
> I suspect your clang-17 might need a rebuild.  Thanks for the report.

I will rebuild / re-test and confirm soon.

- Naresh

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

* Re: landlock: fs_test: fs_test.c:4524:9: error: initializer element is not a compile-time constant
  2023-08-18  5:18   ` Naresh Kamboju
@ 2023-08-21 14:20     ` Naresh Kamboju
  2023-08-21 18:10       ` Nick Desaulniers
  0 siblings, 1 reply; 5+ messages in thread
From: Naresh Kamboju @ 2023-08-21 14:20 UTC (permalink / raw)
  To: Nick Desaulniers
  Cc: clang-built-linux, open list, open list:KERNEL SELFTEST FRAMEWORK,
	linux-fsdevel, lkft-triage, Shuah Khan, Anders Roxell,
	Mickaël Salaün, Richard Weinberger

On Fri, 18 Aug 2023 at 10:48, Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
>
> On Thu, 17 Aug 2023 at 21:24, Nick Desaulniers <ndesaulniers@google.com> wrote:
> >
> > On Thu, Aug 17, 2023 at 3:51 AM Naresh Kamboju
> > <naresh.kamboju@linaro.org> wrote:
> > >
> > > While building selftests landlock following warnings / errors noticed on the
> > > Linux next with clang-17.
> > >
> > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> > >
> > > Build errors:
> > > ------------
> > > landlock/fs_test
> > > fs_test.c:4524:9: error: initializer element is not a compile-time constant
> >
> > Hi Naresh,
> > Can you tell me more about your specific version of clang-17?
>
>     compiler:
>         name: clang,
>         version: 17.0.0,
>         version_full: Debian clang version 17.0.0
> (++20230725053429+d0b54bb50e51-1~exp1~20230725173444.1)
>
> >
> > I believe a fix of mine to clang should address this. It landed in
> > clang-18, and was backported to clang-17 recently.
> > https://github.com/llvm/llvm-project-release-prs/commit/0b2d5b967d98375793897295d651f58f6fbd3034
> >
> > I suspect your clang-17 might need a rebuild.  Thanks for the report.
>
> I will rebuild / re-test and confirm soon.

LKFT team re-built containers and I have re-tested the builds
and reported build issues has been fixed.

Thank you !

Best regards
Naresh Kamboju

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

* Re: landlock: fs_test: fs_test.c:4524:9: error: initializer element is not a compile-time constant
  2023-08-21 14:20     ` Naresh Kamboju
@ 2023-08-21 18:10       ` Nick Desaulniers
  0 siblings, 0 replies; 5+ messages in thread
From: Nick Desaulniers @ 2023-08-21 18:10 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: clang-built-linux, open list, open list:KERNEL SELFTEST FRAMEWORK,
	linux-fsdevel, lkft-triage, Shuah Khan, Anders Roxell,
	Mickaël Salaün, Richard Weinberger

On Mon, Aug 21, 2023 at 7:20 AM Naresh Kamboju
<naresh.kamboju@linaro.org> wrote:
>
> On Fri, 18 Aug 2023 at 10:48, Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
> >
> > On Thu, 17 Aug 2023 at 21:24, Nick Desaulniers <ndesaulniers@google.com> wrote:
> > >
> > > On Thu, Aug 17, 2023 at 3:51 AM Naresh Kamboju
> > > <naresh.kamboju@linaro.org> wrote:
> > > >
> > > > While building selftests landlock following warnings / errors noticed on the
> > > > Linux next with clang-17.
> > > >
> > > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> > > >
> > > > Build errors:
> > > > ------------
> > > > landlock/fs_test
> > > > fs_test.c:4524:9: error: initializer element is not a compile-time constant
> > >
> > > Hi Naresh,
> > > Can you tell me more about your specific version of clang-17?
> >
> >     compiler:
> >         name: clang,
> >         version: 17.0.0,
> >         version_full: Debian clang version 17.0.0
> > (++20230725053429+d0b54bb50e51-1~exp1~20230725173444.1)

Ok, decoding that we have 2023-07-25...

> >
> > >
> > > I believe a fix of mine to clang should address this. It landed in
> > > clang-18, and was backported to clang-17 recently.
> > > https://github.com/llvm/llvm-project-release-prs/commit/0b2d5b967d98375793897295d651f58f6fbd3034

And the backport (that sha above) landed 2023-08-03 so that checks
out.  So yes, the initial report was missing the fix that landed more
recently.

> > >
> > > I suspect your clang-17 might need a rebuild.  Thanks for the report.
> >
> > I will rebuild / re-test and confirm soon.
>
> LKFT team re-built containers and I have re-tested the builds
> and reported build issues has been fixed.
>
> Thank you !

Awesome, thanks for the report and retesting to confirm.

>
> Best regards
> Naresh Kamboju



-- 
Thanks,
~Nick Desaulniers

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

end of thread, other threads:[~2023-08-21 18:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-17 10:51 landlock: fs_test: fs_test.c:4524:9: error: initializer element is not a compile-time constant Naresh Kamboju
2023-08-17 15:54 ` Nick Desaulniers
2023-08-18  5:18   ` Naresh Kamboju
2023-08-21 14:20     ` Naresh Kamboju
2023-08-21 18:10       ` Nick Desaulniers

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).