On Thu, 23 Jun 2022, 10:02 Sebastian Huber, < sebastian.hu...@embedded-brains.de> wrote:
> On 22/06/2022 07:24, Alexandre Oliva via Gcc-patches wrote: > > + } elseif { [istarget *-*-rtems*] } { > > + # Adding -Wl,--gc-sections would enable a few more tests to > > + # link, but all of them fail at runtime anyway, because the > > + # io_context ctor calls pipe(), which always fails, and thus > > + # the ctor throws a system error. > > + return "$flags -lbsd" > > Using -Wl,--gc-sections is mandatory if you want to link against > libbsd.a. In general, it is recommended for RTEMS applications. > > For pipe() support in RTEMS, you currently need the > > #define CONFIGURE_IMFS_ENABLE_MKFIFO > > application configuration option. > It would also be fine to just xfail the networking tests for rtems. Our implementation of the Networking TS is incomplete, buggy, and unlikely to evolve much until the C++ committee makes progress on standardized networking. Anybody who wants to use the Networking TS model has to use Boost.Asio for real work, our partial implementation isn't good enough. So making it work and pass tests on rtems isn't important.