summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYiyang Wu <xgreenlandforwyy@gmail.com>2022-06-21 18:51:05 +0800
committerBenda Xu <heroxbd@gentoo.org>2022-06-22 20:59:29 +0800
commit12344ff2860eca5dffa212e1b95aac414f1992dc (patch)
tree145288b95d21d078b8334baa457642575e7aa2b5 /dev-util/hip
parentsys-kernel/vanilla-sources: add 5.18.6, drop 5.18.5 (diff)
downloadgentoo-12344ff2860eca5dffa212e1b95aac414f1992dc.tar.gz
gentoo-12344ff2860eca5dffa212e1b95aac414f1992dc.tar.bz2
gentoo-12344ff2860eca5dffa212e1b95aac414f1992dc.zip
dev-util/hip: Fix -isystem pollution after d5835abb
After d5835abbe66be09b9851fcc79a158d1a083ad8fc which corrects the HIP_PATH, HIP_INCLUDE_PATH now points to /usr/include and hipcc.pl added -isystem $HIP_INCLUDE_PATH which caused complilation failure. Fix it by removing lines in hipcc.pl Bug: https://bugs.gentoo.org/853184 Reference: https://github.com/justxi/rocm/issues/8#issuecomment-1159800433 Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-util/hip')
-rw-r--r--dev-util/hip/hip-5.0.2-r2.ebuild (renamed from dev-util/hip/hip-5.0.2-r1.ebuild)1
1 files changed, 1 insertions, 0 deletions
diff --git a/dev-util/hip/hip-5.0.2-r1.ebuild b/dev-util/hip/hip-5.0.2-r2.ebuild
index 771cda985e8..037c442ec73 100644
--- a/dev-util/hip/hip-5.0.2-r1.ebuild
+++ b/dev-util/hip/hip-5.0.2-r2.ebuild
@@ -67,6 +67,7 @@ src_prepare() {
# Setting HSA_PATH to "/usr" results in setting "-isystem /usr/include"
# which makes "stdlib.h" not found when using "#include_next" in header files;
sed -e "/FLAGS .= \" -isystem \$HSA_PATH/d" \
+ -e "/HIP.*FLAGS.*isystem.*HIP_INCLUDE_PATH/d" \
-e "s:\$ENV{'DEVICE_LIB_PATH'}:'/usr/lib/amdgcn/bitcode':" \
-e "/rpath/s,--rpath=[^ ]*,," \
-i bin/hipcc.pl || die