From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id D4B503857375; Thu, 23 Jun 2022 09:07:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D4B503857375 Received: by mail-wm1-x32a.google.com with SMTP id l126-20020a1c2584000000b0039c1a10507fso1070810wml.1; Thu, 23 Jun 2022 02:07:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jY9UoKIfDXjFnJUkJLNNn7/QOgqaqKw2n98GHWuE1Ew=; b=JkUYHhdp5Rm+Ld9+Ek3DOJxhGqlZSohLSGW4oKQQE/bQwe3K958pSVMp1wF4Pv7elm 52voi0a1smwkt+glUMrqA8da0taPH5OcIsOKpoHrBYqPmyYImwzOiJ4fmg+70p/d1a2D 0CJxa7rIvETmQjlF+NdnlglawgAT4fQOt8kE/WE2vMCoa6poZtgsLKXg9mi4rDQGg8Vm iUD3bAIiZK8WDj+eMvTl1Y4fqzMAhrDbvEQS/oZEWo+Tnt48Jv2OceVwtXBhFKTEShhn Qj7ygxlS3tzkW5vbni2BVxBVbROXPHG5p4evJBPX65BRWWxizEp15zWh991a3DvatRcE Ynvw== X-Gm-Message-State: AJIora+0/Dd6t2s1oh99ox5eKG6MzZo1LBveO4zTL4N2MrFnwi7yia7T s26xu3OKLb8d1js0EPnaHOtxxz1mdE1aaDaRaqs= X-Google-Smtp-Source: AGRyM1uuK12I1TLKTUFffNTJ4dCt/8ruBYy/MCZrhBKeJ/sxxiWSuEs0xRM6f8qu+8HdtKTxpNKHWGJwt43FVfo3AzM= X-Received: by 2002:a05:600c:6020:b0:39c:96ec:5014 with SMTP id az32-20020a05600c602000b0039c96ec5014mr2879322wmb.57.1655975220204; Thu, 23 Jun 2022 02:07:00 -0700 (PDT) MIME-Version: 1.0 References: <5e77936e-a80b-9df4-cc29-aa36cb301df6@embedded-brains.de> In-Reply-To: <5e77936e-a80b-9df4-cc29-aa36cb301df6@embedded-brains.de> From: Jonathan Wakely Date: Thu, 23 Jun 2022 10:06:48 +0100 Message-ID: Subject: Re: [PATCH] libstdc++: testsuite: use -lbsd for net_ts on RTEMS To: Sebastian Huber Cc: Alexandre Oliva , gcc-patches , "libstdc++" X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2022 09:07:07 -0000 On Thu, 23 Jun 2022, 10:02 Sebastian Huber, < sebastian.huber@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.