Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable s390 builds for clang 12 and earlier on mainline #161

Merged

Conversation

nathanchance
Copy link
Member

No description provided.

Copy link
Member

@nickdesaulniers nickdesaulniers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😞 😿

For the same reason as commit 342e440 ("generator.yml: Disable s390
builds for clang 12 and earlier on -next").

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
@nathanchance nathanchance merged commit cba700e into ClangBuiltLinux:main Jul 7, 2021
@ojeda
Copy link
Member

ojeda commented Jul 7, 2021

Sorry to hijack the PR -- so is s390 not working under LLVM 12 now? (again?)

I was planning to add this one as the next arch for Rust for Linux :-(

@nathanchance nathanchance deleted the disable-s380-mainline branch July 7, 2021 17:39
@sylvestre
Copy link

if it helps and not too complex, I could backport the fix into apt.llvm.org

@nathanchance
Copy link
Member Author

Sorry to hijack the PR -- so is s390 not working under LLVM 12 now? (again?)

I was planning to add this one as the next arch for Rust for Linux :-(

Yes, see https://git.kernel.org/linus/e2bc3e91d91ede6710801fa0737e4e4ed729b19e for the reasoning.

if it helps and not too complex, I could backport the fix into apt.llvm.org

Unfortunately, due to the commit above, that will not do anything :(

@ojeda
Copy link
Member

ojeda commented Jul 7, 2021

Thanks Nathan! Understood -- let's wait for LLVM 13 then :)

nathanchance added a commit to nathanchance/continuous-integration2 that referenced this pull request Feb 1, 2023
Commit 82d3edb50a11 ("s390/cpum_sf: add READ_ONCE() semantics to compare
and swap loops") was applied to 5.10, where it started causing build
breakage with LLVM 11 and 12:

  arch/s390/kernel/perf_cpum_sf.c:1234:3: error: inline asm error: This value type register class is not natively supported!
                  "       cdsg    %[old],%[new],%[ptr]\n"
                  ^
  warning: Compiler has made implicit assumption that TypeSize is not scalable. This may or may not lead to broken code.

The construct that is used in the inline assembly was only supported in
LLVM starting with the 13.0.0 release, even though it has been supported
in GCC for a while. This was the catalyst for commit e2bc3e91d91e
("scripts/min-tool-version.sh: Raise minimum clang version to 13.0.0 for
s390").

The min-tool-version.sh infrastructure does not exist in 5.10 and it may
be undesirable to backport it. Do what was done in ClangBuiltLinux#150 and ClangBuiltLinux#161 and
disable LLVM 11 and 12 builds on stable-5.10. This does not lose us much
coverage, as we were only testing one configuration on these branches.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants