[yocto] Kernel 3.14.28 (imx duallite) will compile under 1.7, but not under 2.0-2.1

Christian Ege k4230r6 at gmail.com
Wed May 11 02:36:25 PDT 2016


Hi,

> Maybe it has something to do with a different make version in the newer
> versions of Yocto? Maybe this link is relevant?
> https://github.com/zanezam/boeffla-kernel-cm-bacon/commit/ef4fea130eeb70eff4f3a549fd3f6e9b11437550
>
This is most probably because of the newer GCC version used in the
different versions of yocto.
I guess the kernel you are using does not contain those patches:
https://github.com/graugans/meta-udoo/blob/jethro/recipes-kernel/linux/linux-seco-3.14.28/0001-ARM-8158-1-LLVMLinux-use-static-inline-in-ARM-ftrace.patch
https://github.com/graugans/meta-udoo/blob/jethro/recipes-kernel/linux/linux-seco-3.14.28/0002-ARM-LLVMLinux-Change-extern-inline-to-static-inline-.patch

Regrads,
Christian

> On Tue, May 10, 2016 at 10:22 PM Paul Knopf <pknopf at medxchange.com> wrote:
>>
>> I am trying to update my BSP to work with the latest releases of Yocto,
>> however, I can't even compile the kernel with the same
>> defconfig/commit/repo.
>>
>> It works on 1.7, but not under 2.0. Here are the do_compile run and log
>> for each version of yocto.
>> https://gist.github.com/anonymous/3222e0a10ba1bca1f7a7316879d1704d
>>
>> -------
>> make[3]: *** [arch/arm/mm/built-in.o] Error 1
>> make[2]: *** [arch/arm/mm] Error 2
>>   AS      arch/arm/kernel/sigreturn_codes.o
>>   CC      arch/arm/kernel/stacktrace.o
>>
>> /home/pknopf/Git/recipes/build/tmp/work-shared/seco-uq7-dl-256mbx4/kernel-source/arch/arm/kernel/return_address.c:63:2:
>> warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
>>  #warning "TODO: return_address should use unwind tables"
>>   ^
>>
>> /home/pknopf/Git/recipes/build/tmp/work-shared/seco-uq7-dl-256mbx4/kernel-source/arch/arm/kernel/return_address.c:66:7:
>> error: redefinition of 'return_address'
>>  void *return_address(unsigned int level)
>>        ^
>> In file included from
>> /home/pknopf/Git/recipes/build/tmp/work-shared/seco-uq7-dl-256mbx4/kernel-source/include/linux/ftrace.h:20:0,
>>                  from
>> /home/pknopf/Git/recipes/build/tmp/work-shared/seco-uq7-dl-256mbx4/kernel-source/arch/arm/kernel/return_address.c:12:
>>
>> /home/pknopf/Git/recipes/build/tmp/work-shared/seco-uq7-dl-256mbx4/kernel-source/arch/arm/include/asm/ftrace.h:48:21:
>> note: previous definition of 'return_address' was here
>>  extern inline void *return_address(unsigned int level)
>>                      ^
>> make[3]: *** [arch/arm/kernel/return_address.o] Error 1
>> make[3]: *** Waiting for unfinished jobs....
>> make[2]: *** [arch/arm/kernel] Error 2
>> make[1]: *** [sub-make] Error 2
>> -------
>>
>> Any idea why update Yocto would cause this build error?
>> --
>>
>> Thanks,
>> Paul Knopf
>> Software Engineer
>> Med X Change, Inc
>> pknopf at medxchange.com
>
> --
>
> Thanks,
> Paul Knopf
> Software Engineer
> Med X Change, Inc
> pknopf at medxchange.com
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



-- 
http://ch.ege.io/



More information about the yocto mailing list