Bug 9181

Summary: Compiling linux kernel fails if BR2_LINUX_KERNEL_TOOL_CPUPOWER is selected
Product: buildroot Reporter: Joergen Pihlflyckt <Jorgen.Pihlflyckt>
Component: OtherAssignee: Yann E. MORIN <yann.morin.1998>
Status: RESOLVED FIXED    
Severity: normal CC: buildroot, yann.morin.1998
Priority: P5    
Version: 2016.05   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Joergen Pihlflyckt 2016-08-18 11:57:56 UTC
Compiling fails just after the linux kernel has been built, if "cpupower" is selected under "Linux Kernel Tools" with the following error:

  CC       utils/helpers/sysfs.o
In file included from utils/helpers/amd.c:9:0:
./utils/helpers/helpers.h:13:21: fatal error: libintl.h: No such file or directory
 #include <libintl.h>
                     ^
compilation terminated.

Enabling WCHAR support under toolchain settings, and then selecting "gettext" under "Target Packages" and "Development Tools" allows the compilation to get a little further, but it still stops with the following error:

  CC       cpupower
./utils/idle_monitor/amd_fam14h_idle.o: In function `amd_fam14h_stop':
amd_fam14h_idle.c:(.text+0x3c3): undefined reference to `libintl_gettext'
./utils/idle_monitor/cpupower-monitor.o: In function `print_wrong_arg_exit':
cpupower-monitor.c:(.text+0x9): undefined reference to `libintl_gettext'
./utils/idle_monitor/cpupower-monitor.o: In function `print_results':

and so on. This has also been tested with buildroot-2015.11.1 using the default configuration. The kernel configuration selected was i386 (defconfig)
Comment 1 Yann E. MORIN 2016-08-18 23:41:31 UTC
Joergen,

I sent a patch to the list:
    https://patchwork.ozlabs.org/patch/660594/

Care to test it and report, please?

Regards,
Yann E. MORIN.
Comment 2 Joergen Pihlflyckt 2016-08-19 06:21:51 UTC
Yes!

I tested the patch on 2016.05, and it works. Thank you very much. Looks like we can close this bug very quickly ;-)

Is it possible to get this into the upcoming 2016.08 release?
-----
Regards. Jorgen.Pihlflyckt@ajeco.fi
Comment 3 Thomas Petazzoni 2016-08-19 09:27:06 UTC
Fixed in commit f55adea434876cf1ee2604abe367ed1b6c555faf.