Bug 10501

Summary: host-localedef fails to compile on Ubuntu 17.10
Product: buildroot Reporter: Marcus Hoffmann <m.hoffmann>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Marcus Hoffmann 2017-11-18 21:30:39 UTC
When trying to build the following defconfig I get a compile failure in host-localedef.

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_NEON=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_GENERATE_LOCALE="en_US"

In file included from ./include/locale.h:1:0,
                 from /usr/include/libintl.h:103,
                 from ./include/libintl.h:2,
                 from glibc/locale/programs/charmap.c:25:
glibc/locale/locale.h:146:11: fatal error: xlocale.h: No such file or directory
 # include <xlocale.h>

(and some more of the same error)

This is on Ubuntu 17.10 with host gcc 7.2.0.
Comment 1 Peter Seiderer 2017-11-20 19:01:38 UTC
Same here on (buildroot-git, openSUSE Tumbleweed), for suggested
patch see:

https://patchwork.ozlabs.org/patch/839716/

Regards,
Peter
Comment 2 Thomas Petazzoni 2017-11-22 20:46:37 UTC
Fixed by https://git.buildroot.org/buildroot/commit/?id=d5cc76c5314f58fa18001e9abce196c1ac4a28d1. Thanks Marcus for reporting the problem in the first place, and thanks Peter for providing a fix!