[Buildroot] [PATCH] package/wampcc: fix build failure on RISC-V/musl

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Aug 11 12:58:07 UTC 2019


On Wed,  7 Aug 2019 16:22:18 +0200
Thomas Petazzoni <thomas.petazzoni at bootlin.com> wrote:

> wampcc includes some code from msgpack-c, which itself includes some
> code from Boost for the endianness detection. This code did not
> properly handle the case of the RISC-V architecture supported by
> non-glibc toolchains, causing the endianness to be unknown (and a
> build failure) when building wampcc for RISC-V with the musl C
> library.
> 
> This commit fixes that, by bringing a change that was upstreamed to
> Boost as of commit
> https://github.com/boostorg/predef/commit/4bc7cc02eda854e4c8ac73caecfee37717083a6b.
> 
> Fixes:
> 
>   http://autobuild.buildroot.net/results/01df5a6f38fb32563831d171d03dfb9ad89f5830/
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> ---
>  .../0001-Add-RISC-V-endian-detection.patch    | 46 +++++++++++++++++++
>  1 file changed, 46 insertions(+)
>  create mode 100644 package/wampcc/0001-Add-RISC-V-endian-detection.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list