From ee9f479d86e45b541891860c7c4de37dbc250b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E6=B2=A7?= <1050706328@qq.com> Date: Mon, 16 Sep 2024 06:30:42 +0000 Subject: [PATCH] =?UTF-8?q?aarch=E4=B8=8B-fstack-clash-protection=E5=BC=95?= =?UTF-8?q?=E8=B5=B7=E7=9A=84-Wunused-command-line-argument=E9=94=99?= =?UTF-8?q?=E8=AF=AF.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 云沧 <1050706328@qq.com> --- ...mand-line-argument\351\224\231\350\257\257.md" | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 "LLVM Parallel Universe Project/\351\227\256\351\242\230\345\256\232\344\275\215\346\200\273\347\273\223/aarch\344\270\213-fstack-clash-protection\345\274\225\350\265\267\347\232\204-Wunused-command-line-argument\351\224\231\350\257\257.md" diff --git "a/LLVM Parallel Universe Project/\351\227\256\351\242\230\345\256\232\344\275\215\346\200\273\347\273\223/aarch\344\270\213-fstack-clash-protection\345\274\225\350\265\267\347\232\204-Wunused-command-line-argument\351\224\231\350\257\257.md" "b/LLVM Parallel Universe Project/\351\227\256\351\242\230\345\256\232\344\275\215\346\200\273\347\273\223/aarch\344\270\213-fstack-clash-protection\345\274\225\350\265\267\347\232\204-Wunused-command-line-argument\351\224\231\350\257\257.md" new file mode 100644 index 0000000..fe6cde6 --- /dev/null +++ "b/LLVM Parallel Universe Project/\351\227\256\351\242\230\345\256\232\344\275\215\346\200\273\347\273\223/aarch\344\270\213-fstack-clash-protection\345\274\225\350\265\267\347\232\204-Wunused-command-line-argument\351\224\231\350\257\257.md" @@ -0,0 +1,15 @@ +# 1、问题现象 + +`[ 95s] clang: error: argument unused during compilation: '-fstack-clash-protection' [-Werror,-Wunused-command-line-argument]` + +# 2、问题根因分析 + +[macOS arm64 support · Issue #183 · GrapheneOS/hardened_malloc (github.com)](https://github.com/GrapheneOS/hardened_malloc/issues/183) + +参考这个Issue可知,`The issue with -fstack-clash-protection is that it's not implemented on arm64 yet.`,即aarch64下`-fstack-clash-protection`特性还未在clang中实现。因此会出现报错。 + +# 3、问题修改建议 + +不必修改。 + +openEuler社区会默认将这个error降级为warning,实际情况中不影响构建。 \ No newline at end of file -- Gitee