Bug 8415

Summary: qemuarm linux 3.19 and gcc5.2 don't work
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Aníbal Limón <anibal.limon>
Component: kernelAssignee: Bruce Ashfield <bruce.ashfield>
Status: VERIFIED FIXED QA Contact: Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu>
Severity: normal    
Priority: Medium+ CC: akuster, benjamin.esquivel, bogdanx.a.voiculescu, bruce.ashfield, richard.purdie, ross.burton, tom.zanussi
Version: 2.0   
Target Milestone: 2.0   
Hardware: x86   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Aníbal Limón 2015-09-29 20:47:55 UTC
When compile qemuarm using linux kernel 3.19 it doesn't boot.
Comment 1 Armin Kuster 2015-10-22 15:23:06 UTC
I am going to try to reproduce this. I assume I can use the defaults and do a preferred version on the kernel.
Comment 2 Bruce Ashfield 2015-10-22 15:24:23 UTC
(In reply to comment #1)
> I am going to try to reproduce this. I assume I can use the defaults and do
> a preferred version on the kernel.

It just needs a patch that I have on both 3.14 and 4.1 .. I appear
to have missed 3.19, since I was planning to remove it completely.

I can still take care of it, I just didn't know if there were active
3.19 users, on ARM.
Comment 3 Aníbal Limón 2015-10-22 15:32:35 UTC
(In reply to comment #1)
> I am going to try to reproduce this. I assume I can use the defaults and do
> a preferred version on the kernel.

Yes only set the preferred version to 3.19.
Comment 4 Armin Kuster 2015-10-22 15:38:33 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > I am going to try to reproduce this. I assume I can use the defaults and do
> > a preferred version on the kernel.
> 
> It just needs a patch that I have on both 3.14 and 4.1 .. I appear
> to have missed 3.19, since I was planning to remove it completely.
> 
> I can still take care of it, I just didn't know if there were active
> 3.19 users, on ARM.

We are not using 3.19 if you are looking for data.
Comment 5 Bruce Ashfield 2015-10-22 15:42:05 UTC
There's a patch to printk that I can apply and get 3.19 working.
I've just been swamped with other high priority issues, and given
the lack of users, I haven't done it yet.

When 2.0 froze, I punted the thought of doing it in the next 
release.

But if there's demand, I'll carve out the patch and apply it to 3.19 
as well.

Stay tuned, I can add it to a 2.0 consolidated pull I'm creating.
Comment 6 Bruce Ashfield 2015-10-22 20:14:59 UTC
I just pushed this to the branch qemuarm uses:

commit 857048f10bfe7089ca6007e72431f1c098b07115
Author: Jianchuan Wang <jianchuan.wang@windriver.com>
Date:   Wed Aug 26 13:54:57 2015 +0800

    Omit to optimize vsprintf.c/kasprintf.c
    
    Add "-O0" for vsprintf.c/kasprintf.c
    
    Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>

:100644 100644 3c3b30b9e020... d8bf9e260f82... M        lib/Makefile

For the 3.19 kernel.

If someone can set the SRCREV for qemuarm to that, and test, it
would be greatly appreciated.

I can then send a formal SRCREV bump to the list.
Comment 7 Aníbal Limón 2015-10-22 20:24:33 UTC
(In reply to comment #6)
> I just pushed this to the branch qemuarm uses:
> 
> commit 857048f10bfe7089ca6007e72431f1c098b07115
> Author: Jianchuan Wang <jianchuan.wang@windriver.com>
> Date:   Wed Aug 26 13:54:57 2015 +0800
> 
>     Omit to optimize vsprintf.c/kasprintf.c
>     
>     Add "-O0" for vsprintf.c/kasprintf.c
>     
>     Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
>     Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
> 
> :100644 100644 3c3b30b9e020... d8bf9e260f82... M        lib/Makefile
> 
> For the 3.19 kernel.
> 
> If someone can set the SRCREV for qemuarm to that, and test, it
> would be greatly appreciated.
> 
> I can then send a formal SRCREV bump to the list.

I can test it and also upgrade the recipe.
Comment 8 Aníbal Limón 2015-10-22 21:50:03 UTC
(In reply to comment #6)
> I just pushed this to the branch qemuarm uses:
> 
> commit 857048f10bfe7089ca6007e72431f1c098b07115
> Author: Jianchuan Wang <jianchuan.wang@windriver.com>
> Date:   Wed Aug 26 13:54:57 2015 +0800
> 
>     Omit to optimize vsprintf.c/kasprintf.c
>     
>     Add "-O0" for vsprintf.c/kasprintf.c
>     
>     Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
>     Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
> 
> :100644 100644 3c3b30b9e020... d8bf9e260f82... M        lib/Makefile
> 
> For the 3.19 kernel.
> 
> If someone can set the SRCREV for qemuarm to that, and test, it
> would be greatly appreciated.
> 
> I can then send a formal SRCREV bump to the list.

I tested it and works, now you can send the patch to the list.
Comment 9 Bruce Ashfield 2015-10-23 20:11:45 UTC
SRCREVs updated. Will send the patch as part of a consolidated pull request shortly.
Comment 10 Stephen K Jolley 2015-10-26 23:53:20 UTC
It appears the NEEDINFO has been supplied
Comment 11 Ross Burton 2015-10-27 14:04:27 UTC
Fixed in oe-core fa9852d5d7383e6d03c756b8ad615668857b0b86.
Comment 12 Bogdan Alexandru Voiculescu 2015-10-28 10:15:29 UTC
Verified on master: 8a0d8eee432924433c3e70198aaeab3161476c5f
I build a qemuarm image with Gcc5.2 and linux kernel 3.19; image boot with no issues.