Skip to contentSkip to conversation

obstack support with uClibc-ng >= 1.0.21

Xenomai Romain Naour 2 participants 3 messages Apr 14, 2017 – Apr 15, 2017

lore
Share & tools
lore
#0 lore raw

Hi all,

Xenomai 3 doesn't build with recent uClibc-ng (since 1.0.21 release) since 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] ?

Best regards,
Romain

[1]
https://cgit.openadk.org/cgi/cgit/uclibc-ng.git/commit/?id=0bd6bfb2b643ea2b4b1440dfd917ba752f0c0d15
[2] http://patchwork.ozlabs.org/patch/745792/
[3] http://lists.busybox.net/pipermail/buildroot/2017-April/189244.html

#1 lore raw
Quoted 10 lines · Romain Naour

Hi all,

Xenomai 3 doesn't build with recent uClibc-ng (since 1.0.21 release) since 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] ?

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.

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.

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.

[1]
http://git.xenomai.org/xenomai-3.git/commit/?h=stable-3.0.x&id=4c593544d2ff39ba6631cc3fa0b91493973674d4

Signature · 1 line
Philippe.
#2 lore raw

Hi Philippe,

Quoted 19 lines · Philippe Gerum
Quoted 10 lines · Romain Naour

Hi all,

Xenomai 3 doesn't build with recent uClibc-ng (since 1.0.21 release) since 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] ?

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.

Quoted 4 lines

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.

Quoted 5 lines

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 musl 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=b845a1541f4c40e028a7351ca183ea3c6db56246

Quoted 4 lines

[1]
http://git.xenomai.org/xenomai-3.git/commit/?h=stable-3.0.x&id=4c593544d2ff39ba6631cc3fa0b91493973674d4