cross-GDC for tiny embedded Linux

Dmitry Ponyatov dponyatov at gmail.com
Sat Oct 21 23:08:56 UTC 2023


I'm trying to build a tiny Linux system with cross-compiling GDB:

https://github.com/ponyatov/player/blob/shadow/Makefile

```
BINUTILS_VER = 2.41
GCC_VER      = 13.2.0
```
```sh
cat /etc/os-release
```
```
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
```
```sh
gdb --version
```
```
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
```

I've got this error:

```
/home/ponyatov/player/ref/gcc-13.2.0/gcc/d/dmd/root/file.d: In 
function ‘read’:
/home/ponyatov/player/ref/gcc-13.2.0/gcc/d/dmd/root/file.d:81:5: 
error: exception handling disabled, use -fexceptions to enable
```

It looks like my local host `gdb` has too old version.
Or maybe is there some another problem in `dmd` frontend on the 
modern `gcc13` distro?




More information about the D.gnu mailing list