[PATCH] D112421: [clang][ARM] PACBTI-M frontend support
Erich Keane via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 1 08:56:19 PST 2021
erichkeane added a comment.
I just found that build failure in our downstream, and did a little investigation. Running the clang-invocations directly resulted in :
[ekeane1 at scsel-clx-24 llvm]$ /localdisk2/ekeane1/workspaces/xmain-web/builds/xmainefi2linux_debug/llvm/bin/clang -target arm-arm-none-eabi -mbranch-protection=pac-ret+b-key -c /localdisk2/ekeane1/workspaces/xmain-web/llvm/clang/test/Frontend/arm-invalid-branch-protection.c -o /dev/null 2>&1
clang-14: warning: invalid branch protection option 'b-key' in '-mbranch-protection=pac-ret+b-key' [-Wbranch-protection]
error: unable to create target: 'No available targets are compatible with triple "armv4t-arm-none-eabi"'
1 error generated.
[ekeane1 at scsel-clx-24 llvm]$ /localdisk2/ekeane1/workspaces/xmain-web/builds/xmainefi2linux_debug/llvm/bin/clang -target arm-arm-none-eabi -mbranch-protection=pac-ret+b-key+leaf -c /localdisk2/ekeane1/workspaces/xmain-web/llvm/clang/test/Frontend/arm-invalid-branch-protection.c -o /dev/null 2>&1
clang-14: warning: invalid branch protection option 'b-key' in '-mbranch-protection=pac-ret+b-key+leaf' [-Wbranch-protection]
error: unable to create target: 'No available targets are compatible with triple "armv4t-arm-none-eabi"'
1 error generated.
[ekeane1 at scsel-clx-24 llvm]$ /localdisk2/ekeane1/workspaces/xmain-web/builds/xmainefi2linux_debug/llvm/bin/clang -target arm-arm-none-eabi -mbranch-protection=bti+pac-ret+b-key -c /localdisk2/ekeane1/workspaces/xmain-web/llvm/clang/test/Frontend/arm-invalid-branch-protection.c -o /dev/null 2>&1
clang-14: warning: invalid branch protection option 'b-key' in '-mbranch-protection=bti+pac-ret+b-key' [-Wbranch-protection]
error: unable to create target: 'No available targets are compatible with triple "armv4t-arm-none-eabi"'
1 error generated.
[ekeane1 at scsel-clx-24 llvm]$ /localdisk2/ekeane1/workspaces/xmain-web/builds/xmainefi2linux_debug/llvm/bin/clang -target arm-arm-none-eabi -mbranch-protection=bti+pac-ret+b-key+leaf -c /localdisk2/ekeane1/workspaces/xmain-web/llvm/clang/test/Frontend/arm-invalid-branch-protection.c -o /dev/null 2>&1
clang-14: warning: invalid branch protection option 'b-key' in '-mbranch-protection=bti+pac-ret+b-key+leaf' [-Wbranch-protection]
error: unable to create target: 'No available targets are compatible with triple "armv4t-arm-none-eabi"'
I suspect the problem with the bots is that the test needs to have the 'requires' clause added to the top, like you did with the CodeGen tests.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112421/new/
https://reviews.llvm.org/D112421
More information about the llvm-commits
mailing list