[Buildroot] [PATCH 1/1] package/jsoncpp: broken with musl on x86

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Oct 21 11:50:29 UTC 2015


Dear Jörg Krause,

On Tue, 20 Oct 2015 22:51:53 +0200, Jörg Krause wrote:
> This patch replaces a previous submission made by Bernd Kuhls some while ago
> [1].
> 
> The posix_memalign declaration is incompatible with musl for C++, because of
> the exception specification [2]. Note, the referenced patch is part of the a
> patch series to "Add musl support to GCC".
> 
> Instead of patching gcc in Buildroot we disable jsoncpp and any reverse
> dependendy with the musl toolchain on x86.
> 
> [1] https://patchwork.ozlabs.org/patch/505425/
> [2] https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01084.html

It is indeed not very practical to fix gcc, since external toolchains
would continue to be affected. But isn't there a way of working around
the problem inside jsoncpp itself, so that we don't have to do this
complicated reverse-dependency propagation ?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list