Skip to content

Commit 4b3952f

Browse files
nmeumkaniini
authored andcommitted
main/gcc: disable gdc on 32-bit architectures
On 32-bit arches, gdc fails to compile any software with an arithmetic error. This is a known upstream bug, there is a patch but it is not yet merged and requires some tinkering to apply cleanly for GCC 12.X. See: * dlang/druntime#3383 * https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/36469#note_248077
1 parent 8acb21b commit 4b3952f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main/gcc/APKBUILD

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,15 @@ else
9595
_builddir="$srcdir/build"
9696
fi
9797

98+
case "$CARCH" in
9899
# GDC hasn't been ported to PowerPC
99100
# See libphobos/configure.tgt in GCC sources for supported targets
100101
# riscv fails with: error: static assert "unimplemented"
101-
case "$CARCH" in
102102
ppc64le|riscv64) LANG_D=false ;;
103+
# GDC does currently not work on 32-bit musl architectures.
104+
# This is a known upstream issue.
105+
# See: https://github.com/dlang/druntime/pull/3383
106+
armhf|armv7|x86) LANG_D=false ;;
103107
esac
104108

105109
# libitm has TEXTRELs in ARM build, so disable for now

0 commit comments

Comments
 (0)