diff --git a/meta-oe/recipes-devtools/pstack/pstack.inc b/meta-oe/recipes-devtools/pstack/pstack.inc
index 1c85b12061..ef5ba03e59 100644
--- a/meta-oe/recipes-devtools/pstack/pstack.inc
+++ b/meta-oe/recipes-devtools/pstack/pstack.inc
@@ -39,3 +39,6 @@ PACKAGES += "${PN}-dev"
 FILES:${PN}-dev += "${base_libdir}/*.so"
 
 TOOLCHAIN = "gcc"
+
+COMPATIBLE_HOST:riscv64 = "null"
+COMPATIBLE_HOST:riscv32 = "null"
