cross-GDC for tiny embedded Linux

Dmitry Ponyatov dponyatov at gmail.com
Sun Oct 22 21:52:18 UTC 2023


> Here the next problem of building `gcc-12.3.0` with 
> `uClibc-ng-1.0.44` (i386 target):

fixed by moving to `musl` usage -- not a surprise that `uClibc` 
becomes obsoleted libc comparing their compilation time, 
configuration complexity, and incompatibility with modern 
toolchains

But the next linking error, what is going to be?

```
/home/ponyatov/player/host/lib/gcc/i686-linux-musl/12.3.0/../../../../i686-linux-musl/bin/ld: /home/ponyatov/player/host/lib/gcc/i686-linux-musl/12.3.0/../../../../i686-linux-musl/lib/libgphobos.a(os.o): in function `_D4core8internal2gc2os10os_mem_mapFNbNikbZPv':
/home/ponyatov/player/ref/gcc-12.3.0/libphobos/libdruntime/core/internal/gc/os.d:145:(.text._D4core8internal2gc2os10os_mem_mapFNbNikbZPv+0x22): undefined reference to `mmap64'
/home/ponyatov/player/host/lib/gcc/i686-linux-musl/12.3.0/../../../../i686-linux-musl/bin/ld: /home/ponyatov/player/host/lib/gcc/i686-linux-musl/12.3.0/../../../../i686-linux-musl/lib/libgphobos.a(fiber.o):/home/ponyatov/player/ref/gcc-12.3.0/libphobos/libdruntime/core/thread/fiber.d:1050: more undefined references to `mmap64' follow
collect2: error: ld returned 1 exit status
```


More information about the D.gnu mailing list