All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel 3.14.28 (imx duallite) will compile under 1.7, but not under 2.0-2.1
@ 2016-05-11  2:22 Paul Knopf
  2016-05-11  2:40 ` Paul Knopf
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Knopf @ 2016-05-11  2:22 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1843 bytes --]

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@medxchange.com

[-- Attachment #2: Type: text/html, Size: 2401 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Kernel 3.14.28 (imx duallite) will compile under 1.7, but not under 2.0-2.1
  2016-05-11  2:22 Kernel 3.14.28 (imx duallite) will compile under 1.7, but not under 2.0-2.1 Paul Knopf
@ 2016-05-11  2:40 ` Paul Knopf
  2016-05-11  9:36   ` Christian Ege
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Knopf @ 2016-05-11  2:40 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2318 bytes --]

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

On Tue, May 10, 2016 at 10:22 PM Paul Knopf <pknopf@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@medxchange.com
>
-- 

Thanks,
Paul Knopf
Software Engineer
Med X Change, Inc
pknopf@medxchange.com

[-- Attachment #2: Type: text/html, Size: 3304 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Kernel 3.14.28 (imx duallite) will compile under 1.7, but not under 2.0-2.1
  2016-05-11  2:40 ` Paul Knopf
@ 2016-05-11  9:36   ` Christian Ege
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Ege @ 2016-05-11  9:36 UTC (permalink / raw)
  To: yocto

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@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@medxchange.com
>
> --
>
> Thanks,
> Paul Knopf
> Software Engineer
> Med X Change, Inc
> pknopf@medxchange.com
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-05-11  9:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-11  2:22 Kernel 3.14.28 (imx duallite) will compile under 1.7, but not under 2.0-2.1 Paul Knopf
2016-05-11  2:40 ` Paul Knopf
2016-05-11  9:36   ` Christian Ege

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.