Bug 856

Summary: [qemumips] No UST headers in sato-sdk image: upstream UST doesn't support MIPS
Product: [Yocto Project Subprojects] ADT Reporter: Jessica <jessica.zhang>
Component: kernel analysisAssignee: Dexuan Cui <dexuan.cui>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Medium CC: lianhao.lu, sgw, yp.sdk.watcher, yp.watcher
Version: 1.0   
Target Milestone: 1.1   
Hardware: x86   
OS: mips   
Whiteboard: Upstream is adding the support (27/Apr/2011)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jessica 2011-03-11 14:45:45 UTC
when testing arm sato-sdk image built from the lastest bernard tree (last commit is: d16085b67b05e6c10f9e29381313e2b3370ca8ff )try to compile ust test program and got:

Fatal error: ust/marker.h: No such file or directory

And when checking the ust directory is missing from /usr/include which exists in x86 sato-sdk image.
Comment 1 Dexuan Cui 2011-03-13 22:38:58 UTC
In poky, lttng-ust is not supported on ARM and MIPS now because upstream lttng-ust also doesn't support that. 
So this is a WONTFIX bug.
Comment 2 Dexuan Cui 2011-03-13 22:45:27 UTC
(In reply to comment #1)
> In poky, lttng-ust is not supported on ARM and MIPS now because upstream
> lttng-ust also doesn't support that. 
This is because lttng-ust depends on liburcu, that doesn't support ARM and MIPS.

> So this is a WONTFIX bug.

I had a look at lttng mailing list just now and looks now liburcu can support ARMv5te of Poky -- the current version of liburcu in poky is 0.5.2 and 0.5.3 was released 10 day ago.

In next round of packaging upgrading(maybe in several weeks?), I'll try to upgrade liburu and lttng-ust.
Comment 3 Saul Wold 2011-03-14 15:44:12 UTC
Added 1.1 target milestone
Comment 4 Dexuan Cui 2011-04-25 22:35:16 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > In poky, lttng-ust is not supported on ARM and MIPS now because upstream
> > lttng-ust also doesn't support that. 
> This is because lttng-ust depends on liburcu, that doesn't support ARM and
> MIPS.
> > So this is a WONTFIX bug.
> I had a look at lttng mailing list just now and looks now liburcu can support
> ARMv5te of Poky -- the current version of liburcu in poky is 0.5.2 and 0.5.3
> was released 10 day ago.
> In next round of packaging upgrading(maybe in several weeks?), I'll try to
> upgrade liburu and lttng-ust.

I upgraded ust to 0.12 that can build on ARM now:
http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=b4a88a5e1c0ada5db760e52010e66f13de63adf4

Also updated task-poky-tools.bb, task-sdk-gmae.inc to enable lttng-ust for ARM:
http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?
id=320a641df18024265c3d2b3b08251a231f9fd6a0

So the only left issue is: upstream lttng-ust can't build on MIPS -- I don't think upstream ust will have the support of MIPS in the near future, so I think we can mark the bug as WON'T FIX.
Comment 5 Dexuan Cui 2011-04-26 18:37:13 UTC
> (In reply to comment #2)
> > (In reply to comment #1)
> > > In poky, lttng-ust is not supported on ARM and MIPS now because upstream
> > > lttng-ust also doesn't support that. 
> > This is because lttng-ust depends on liburcu, that doesn't support ARM and
> > MIPS.
> > > So this is a WONTFIX bug.
> > I had a look at lttng mailing list just now and looks now liburcu can support
> > ARMv5te of Poky -- the current version of liburcu in poky is 0.5.2 and 0.5.3
> > was released 10 day ago.
> > In next round of packaging upgrading(maybe in several weeks?), I'll try to
> > upgrade liburu and lttng-ust.
> I upgraded ust to 0.12 that can build on ARM now:
> http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=b4a88a5e1c0ada5db760e52010e66f13de63adf4
> Also updated task-poky-tools.bb, task-sdk-gmae.inc to enable lttng-ust for ARM:
> http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?
> id=320a641df18024265c3d2b3b08251a231f9fd6a0
> So the only left issue is: upstream lttng-ust can't build on MIPS -- I don't
> think upstream ust will have the support of MIPS in the near future, so I think
> we can mark the bug as WON'T FIX.
Today in lttng mailing list I saw some patches that were trying to add the support for MIPS.
So let me reopen the bug and mark it with low priority.
Comment 6 Dexuan Cui 2011-05-03 06:16:46 UTC
(In reply to comment #4)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > In poky, lttng-ust is not supported on ARM and MIPS now because upstream
> > > lttng-ust also doesn't support that. 
> > This is because lttng-ust depends on liburcu, that doesn't support ARM and
> > MIPS.
> > > So this is a WONTFIX bug.
> > I had a look at lttng mailing list just now and looks now liburcu can support
> > ARMv5te of Poky -- the current version of liburcu in poky is 0.5.2 and 0.5.3
> > was released 10 day ago.
> > In next round of packaging upgrading(maybe in several weeks?), I'll try to
> > upgrade liburu and lttng-ust.
> I upgraded ust to 0.12 that can build on ARM now:
> http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=b4a88a5e1c0ada5db760e52010e66f13de63adf4
> Also updated task-poky-tools.bb, task-sdk-gmae.inc to enable lttng-ust for ARM:
> http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?
> id=320a641df18024265c3d2b3b08251a231f9fd6a0
Hmm, I happened to find the line in task-core-tools.bb
RDEPENDS_task-core-tools-profile_append_qemuarm = " lttng-ust"
was droped when the patch was accepted by poky master, not sure why...

I'll resend this piece of code.