diff --git a/cross/gcc-aarch64/APKBUILD b/cross/gcc-aarch64/APKBUILD index a269c9fb5..aa441ce23 100644 --- a/cross/gcc-aarch64/APKBUILD +++ b/cross/gcc-aarch64/APKBUILD @@ -31,7 +31,7 @@ pkgver=10.3.1_git20210424 [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-aarch64 -pkgrel=0 +pkgrel=1 pkgdesc="Stage2 cross-compiler for aarch64" url="https://gcc.gnu.org" arch="x86_64" @@ -116,12 +116,16 @@ fi # GDC hasn't been ported to PowerPC # See libphobos/configure.tgt in GCC sources for supported targets -[ "$CARCH" = ppc64le ] && LANG_D=false +# riscv fails with: error: static assert "unimplemented" +case "$CARCH" in +ppc64le|riscv64) LANG_D=false ;; +esac # libitm has TEXTRELs in ARM build, so disable for now case "$CTARGET_ARCH" in arm*) _libitm=false ;; mips*) _libitm=false ;; +riscv64) _libitm=false ;; esac # Internal libffi fails to build on MIPS at the moment, need to @@ -148,6 +152,11 @@ if $_libgomp; then subpackages="$subpackages libgomp::$CTARGET_ARCH" fi +case "$CARCH" in +riscv64) +LANG_ADA=false;; +esac + _languages=c if $LANG_CXX; then _languages="$_languages,c++" diff --git a/cross/gcc-armhf/APKBUILD b/cross/gcc-armhf/APKBUILD index 3a00e8e00..dc28bd888 100644 --- a/cross/gcc-armhf/APKBUILD +++ b/cross/gcc-armhf/APKBUILD @@ -31,7 +31,7 @@ pkgver=10.3.1_git20210424 [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-armhf -pkgrel=0 +pkgrel=1 pkgdesc="Stage2 cross-compiler for armhf" url="https://gcc.gnu.org" arch="x86_64" @@ -116,12 +116,16 @@ fi # GDC hasn't been ported to PowerPC # See libphobos/configure.tgt in GCC sources for supported targets -[ "$CARCH" = ppc64le ] && LANG_D=false +# riscv fails with: error: static assert "unimplemented" +case "$CARCH" in +ppc64le|riscv64) LANG_D=false ;; +esac # libitm has TEXTRELs in ARM build, so disable for now case "$CTARGET_ARCH" in arm*) _libitm=false ;; mips*) _libitm=false ;; +riscv64) _libitm=false ;; esac # Internal libffi fails to build on MIPS at the moment, need to @@ -148,6 +152,11 @@ if $_libgomp; then subpackages="$subpackages libgomp::$CTARGET_ARCH" fi +case "$CARCH" in +riscv64) +LANG_ADA=false;; +esac + _languages=c if $LANG_CXX; then _languages="$_languages,c++" diff --git a/cross/gcc-armv7/APKBUILD b/cross/gcc-armv7/APKBUILD index ef40a35e1..16ce442b5 100644 --- a/cross/gcc-armv7/APKBUILD +++ b/cross/gcc-armv7/APKBUILD @@ -31,7 +31,7 @@ pkgver=10.3.1_git20210424 [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-armv7 -pkgrel=0 +pkgrel=1 pkgdesc="Stage2 cross-compiler for armv7" url="https://gcc.gnu.org" arch="x86_64" @@ -116,12 +116,16 @@ fi # GDC hasn't been ported to PowerPC # See libphobos/configure.tgt in GCC sources for supported targets -[ "$CARCH" = ppc64le ] && LANG_D=false +# riscv fails with: error: static assert "unimplemented" +case "$CARCH" in +ppc64le|riscv64) LANG_D=false ;; +esac # libitm has TEXTRELs in ARM build, so disable for now case "$CTARGET_ARCH" in arm*) _libitm=false ;; mips*) _libitm=false ;; +riscv64) _libitm=false ;; esac # Internal libffi fails to build on MIPS at the moment, need to @@ -148,6 +152,11 @@ if $_libgomp; then subpackages="$subpackages libgomp::$CTARGET_ARCH" fi +case "$CARCH" in +riscv64) +LANG_ADA=false;; +esac + _languages=c if $LANG_CXX; then _languages="$_languages,c++"