diff --git a/community/gtk4.0/APKBUILD b/community/gtk4.0/APKBUILD
index 040b1d2057ba162b94c0b0ccbf5957b85bee6abe..fae18df548709108d817e8815117151ef77bbb37 100644
--- a/community/gtk4.0/APKBUILD
+++ b/community/gtk4.0/APKBUILD
@@ -6,7 +6,7 @@ pkgrel=0
 pkgdesc="The GTK Toolkit (v4)"
 url="https://www.gtk.org/"
 install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
-arch="all"
+arch="all !x86 !armhf !armv7" # Needs >4GB when compiling
 options="!check"  # Test suite is known to fail upstream
 license="LGPL-2.1-or-later"
 subpackages="$pkgname-demo $pkgname-dev $pkgname-doc $pkgname-lang $pkgname-dbg"