From bae478b64a6bc9eca66b65bcfa318fc21e7f34bb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 21 Jan 2023 11:40:40 +0000 Subject: gentoo auto-resync : 21:01:2023 - 11:40:40 --- dev-util/hip/files/hip-5.1.3-fno-stack-protector.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 dev-util/hip/files/hip-5.1.3-fno-stack-protector.patch (limited to 'dev-util/hip/files') diff --git a/dev-util/hip/files/hip-5.1.3-fno-stack-protector.patch b/dev-util/hip/files/hip-5.1.3-fno-stack-protector.patch new file mode 100644 index 000000000000..c5957edba734 --- /dev/null +++ b/dev-util/hip/files/hip-5.1.3-fno-stack-protector.patch @@ -0,0 +1,16 @@ +Since 1e9b3a08b9243daae1bebd6bac3da939d924df1f /etc/clang/gentoo-hardened.cfg +has -fstack-protector-strong which may cause build issues for HIP programs (bug +#890377) Disable this by adding -fno-stack-protector into c/cxx flags in hipcc. +=================================================================== +--- HIP-rocm-5.3.3.orig/bin/hipcc.pl ++++ HIP-rocm-5.3.3/bin/hipcc.pl +@@ -687,6 +687,9 @@ if ($rdc and !$compileOnly and $HIP_PLAT + # pass-through CPP mode. + + if ($HIP_PLATFORM eq "amd") { ++ # Append -fno-stack-protector due to stack protection for HIP is not supported ++ $HIPCXXFLAGS .= " -fno-stack-protector"; ++ $HIPCFLAGS .= " -fno-stack-protector"; + # Set default optimization level to -O3 for hip-clang. + if ($optArg eq "") { + $HIPCXXFLAGS .= " -O3"; -- cgit v1.2.3