[OE-core] [PATCH] linux-libc-headers: workaround do_install failure while host gcc version < 4.5

Hongxu Jia hongxu.jia at windriver.com
Fri Dec 14 09:11:14 UTC 2018


Talked with Zhe, there is already fix on the thread, so please ignore 
this one
[PATCH v4] linux-libc-headers: Fix build failure by using fixed 
temporary file instead of pip

//Hongxu

On 2018/12/14 下午4:54, Hongxu Jia wrote:
> Since kernel commit [e501ce9 x86: Force asm-goto], running
> `make menuconfig (bitbake linux-yocto -cmenuconfig)' requires
> host gcc support asm-goto which gcc version >= 4.5
>
> It broke linux-libc-headers do_install even though there is no
> relation with `make menuconfig'
>
> Set CC_HAVE_ASM_GOTO="1" to workaround the checking
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e501ce957a786ecd076ea0cfb10b114e6e4d0f40
> https://unix.stackexchange.com/questions/456767/make-menuconfig-error-while-trying-to-build-kernel
>
> Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
> ---
>   meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
> index be215af..766322e 100644
> --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
> +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
> @@ -51,7 +51,7 @@ UPSTREAM_CHECK_URI = "https://www.kernel.org/"
>   
>   S = "${WORKDIR}/linux-${PV}"
>   
> -EXTRA_OEMAKE = " HOSTCC="${BUILD_CC}" HOSTCPP="${BUILD_CPP}""
> +EXTRA_OEMAKE = " HOSTCC="${BUILD_CC}" HOSTCPP="${BUILD_CPP}" CC_HAVE_ASM_GOTO="1""
>   
>   do_configure[noexec] = "1"
>   




More information about the Openembedded-core mailing list