Recently we have updated the toolchain clang-17 version.
While building selftests sgx following warnings / errors noticed on the Linux next with clang-17.
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
sgx/main.o clang: error: -z noexecstack: 'linker' input unused [-Werror,-Wunused-command-line-argument]
Links: - https://storage.tuxsuite.com/public/linaro/lkft/builds/2UHhSg0TPLhjp9Uq9EFce...
Steps to reproduce: - https://storage.tuxsuite.com/public/linaro/lkft/builds/2UHhSg0TPLhjp9Uq9EFce...
tuxmake --runtime podman --target-arch x86_64 --toolchain clang-17 --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2UHhSg0TPLhjp9Uq9EFce... LLVM=1 LLVM_IAS=1 debugkernel cpupower headers kernel kselftest modules
-- Linaro LKFT https://lkft.linaro.org
On Mon, Aug 21, 2023 at 6:52 AM Naresh Kamboju naresh.kamboju@linaro.org wrote:
Recently we have updated the toolchain clang-17 version.
While building selftests sgx following warnings / errors noticed on the Linux next with clang-17.
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
sgx/main.o clang: error: -z noexecstack: 'linker' input unused [-Werror,-Wunused-command-line-argument]
Hi Naresh, Thanks for the report.
I think in general for the kselftests, these aren't really regressions; we've simply not spent the time to sit down and get them all building.
That said, we should.
Since this isn't a recent regression, would you mind instead of emailing the list instead file an individual issue at our issue tracker per diagnostic identified?
https://github.com/ClangBuiltLinux/linux/issues
We are very active in tracking the progress on issues there. I would love for you and the LKFT team to participate with us there.
https://github.com/ClangBuiltLinux/linux/issues/1698 is the meta issue tracking the kselftest targets.
When we have a target building that regresses, then we should notify the list, but until then I think it may be less noisy to get issues on file.
Links:
Steps to reproduce:
tuxmake --runtime podman --target-arch x86_64 --toolchain clang-17 --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2UHhSg0TPLhjp9Uq9EFce... LLVM=1 LLVM_IAS=1 debugkernel cpupower headers kernel kselftest modules
Any chance you can extract the invocation of `make` from the above for the bug reports? I'm guessing
`make LLVM=1 debugkernel cpupower headers kernel kselftest`? (LLVM_IAS=1 should be obsolete on mainline)
-- Linaro LKFT https://lkft.linaro.org
linux-kselftest-mirror@lists.linaro.org