Ahmad Bamba via Gcc-help kirjoitti 11.8.2024 klo 11.00:
I'm hoping to target bare-metal targets here (in this case, arm-eabi).
Since there's no operating system, there's no libc and there's not libc++,
which I expected.
Actually there is a "libc" and when there is this, building also
libstdc++ should succeed.
People usually use the "newlib" which is aimed for embedded systems :
https://en.wikipedia.org/wiki/Newlib
https://sourceware.org/newlib/
Just download the current release, unpack it into your chosen source
directory and symlink
the 'libgloss' (glue functions for HW) and 'newlib' subdirs into the
main GCC source directory.
And add the '--with-newlib' option into your GCC configure command.