References: <946ea421-b654-bd7d-62ab-6131ae80dc7d@gmail.com> <9acc1de8-9a6b-32c0-a1e7-521601cd84d7@xenomai.org> From: Romain Naour Message-ID: Date: Sat, 15 Apr 2017 19:58:16 +0200 MIME-Version: 1.0 In-Reply-To: <9acc1de8-9a6b-32c0-a1e7-521601cd84d7@xenomai.org> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai] obstack support with uClibc-ng >= 1.0.21 List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum , xenomai@xenomai.org Cc: Waldemar Brodkorb , Pawel Sikora Hi Philippe, Le 15/04/2017 =E0 17:08, Philippe Gerum a =E9crit : > On 04/14/2017 03:48 PM, Romain Naour wrote: >> Hi all, >> >> Xenomai 3 doesn't build with recent uClibc-ng (since 1.0.21 release) sin= ce the >> obstack support has been removed [1]. >> >> I proposed a patch [2] disabling this feature unconditionally but I don'= t really >> understand how obstack support work with Xenomai and why it's required. >> >> Do we need to add a requirement on Glibc system as suggested in [3] ? >> >=20 > obstacks are used internally by helpers from our fuse-based registry > system (lib/copperplate/registry.c). No rocket-science in there, but not > a wheel that should be reinvented either, so the obstack support was > pulled from a gcc-based libiberty copy IIRC. Fact is that the code > assessing the opportunity to elide that code is terminally broken, as > you found out. >=20 > I pushed a commit [1] aimed at addressing the issue, by detecting > whether the underlying libc provides for native obstack support, only > building our replacement code if not, with some cleanups. This as been > tested against uClibc 1.0.22, and common glibc releases. Thanks for your quick feedback! I sent a patch to Buildroot to backport this fix and revert my workaround. >=20 > PS: I pushed some changes toward supporting musl to the stable branch as > well, but since the latter hides linux-specific ABI bits such as > SIGEV_THREAD_ID, full support requires more effort. So musl support is > still not there yet. Last year (08/2016), I disabled Xenomai (v2.6.4) package in Buildroot for m= usl based toolchain [1] after trying to fixes all issues... Since then nobody complained that Xenomai is disabled with musl, I guess we= can wait until the musl port is complete and released :) Best regards, Romain [1] https://git.busybox.net/buildroot/commit/?id=3Db845a1541f4c40e028a7351ca183= ea3c6db56246 >=20 > [1] > http://git.xenomai.org/xenomai-3.git/commit/?h=3Dstable-3.0.x&id=3D4c5935= 44d2ff39ba6631cc3fa0b91493973674d4 >=20