Package: gcc-arm-none-eabi Version: 15:8-2019-q3-1+b1 Followup-For: Bug #961091 X-Debbugs-Cc: witold.bary...@gmail.com
gdc is now merged in gcc main tree in 9.x and 10.x, so it should be even easier now than before. It is present in Arm toolchain bundle from https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-src.tar.bz2 To compile it at configure you will need: --enable-languages=c,c++,d,lto --disable-libphobos Other options can remain as they are in current rules file https://salsa.debian.org/debian/gcc-arm-none-eabi/-/blob/master/debian/rules I didn't test --enable-tls, but I don't think there should be any issue with that. Adding `gdc` to Build-Depends is also required, as it is not included by default in `build-essential`. Here is example of compiling gdc for arm-none-eabi for Cortex-M machines for example. https://github.com/JinShil/arm-none-eabi-gdc/blob/master/arm-none-eabi-gdc.sh but it is pretty old, and since then there is no need to apply out of tree patches for gdc. --enable-lto \ --enable-gold \ --enable-plugins would also be useful, for reducing binary sizes in some cases. I am not sure if these are enabled by default, but I assume yes. Extra references (a bit dated): http://wiki.dlang.org/GDC/Cross_Compiler/Generic http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler Thanks!