Hi Saul,
Due to the API change in ust-0.12, we'll have to wait upstream gdb's fix (I 
verified the latest gdb snapshot gdb-7.2.90.20110425 has the same issue. I will 
report a bug in gdb bugzilla) .
I've reported http://bugzilla.pokylinux.org/show_bug.cgi?id=1005 to record this 
issue.

Thanks,
-- Dexuan

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Cui, Dexuan
Sent: 2011年4月25日 13:15
To: 'Saul Wold'; 'Patches and discussions about the oe-core layer'
Cc: '[email protected]'
Subject: Re: [poky] gdb and lttng-ust 0.12

Hi Saul,
I prefer "continue with UST disabled in gdb" for now.

I'm investigating more to get an in-depth understanding about the issue. e.g., 
ust-0.11 doesn't break building gdb while ust-0.12 does -- however both 0.11 
and 0.12 install /usr/include/ust/.

Thanks,
-- Dexuan

-----Original Message-----
From: Cui, Dexuan 
Sent: 2011年4月25日 9:57
To: 'Saul Wold'; 'Patches and discussions about the oe-core layer'
Cc: [email protected]
Subject: RE: gdb and lttng-ust 0.12

Hi Saul,
Thanks very much for the investigation! 
I can reproduce the issue now when I build gdb after building lttng-ust 
(previously looks I built them in the reverse order, so didn't catch it.)

I haven't understood why this issue occurred after I upgraded ust from 0.11 to 
0.12 as 0.11 actually installs /usr/include/ust, too. And gdb was not upgraded 
recently.

I'm looking into this now and will update asap.

Thanks,
-- Dexuan

-----Original Message-----
From: Saul Wold [mailto:[email protected]] 
Sent: 2011年4月25日 4:17
To: Cui, Dexuan; 'Patches and discussions about the oe-core layer'
Cc: [email protected]
Subject: gdb and lttng-ust 0.12


Dexuan,

It seems that when you updated lttng-ust to 0.12, it installed an 
/usr/include/ust directory that GDB now finds.  This caused the 
gdbserver code to not build.

I investigated this and it seems to be due to gdb having a dependency on 
UST that causes GDB not to compile.  I think at this point we may want 
to continue with UST disabled in gdb.

To reproduce this, ensure that lttng-ust-0.12 is built before building 
gdb and you should see a compilation failure.

My concern here is that if fix the GDB compilation failures, what else 
is going to fail as far as debugging with UST enabled on the remote, I 
know this feature is something we want, and should probably report to 
the GDB upstream.

The fix seems to be as simple as adding "--without-ust" to the gdb 
EXTRA_OECONF line.

Comments?

-- 
     Sau!

Saul Wold
Yocto Component Wrangler @ Intel
Yocto Project / Poky Build System

Error while compiling tracepoint.c -> tracepoint-ipa.o (note it's -ipa.o 
so a different set of flags).


| ccache i586-poky-linux-gcc -march=i586 
--sysroot=/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/sysroots/qemux86
 
-c  -Wall    -I. 
-I/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver
 
-I/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/../common
 
-I/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/../regformats
 
-I/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/../../include
 
-O2 -pipe -g -feliminate-unused-debug-types 
-DCONFIG_UST_GDB_INTEGRATION -fPIC -DGDBSERVER -DIN_PROCESS_AGENT 
-fvisibility=hidden 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c
 
-o tracepoint-ipa.o
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:
 
In function 'first_marker':
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:7009:3:
 
warning: return from incompatible pointer type
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:
 
In function 'next_marker':
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:7024:23:
 
warning: comparison of distinct pointer types lacks a cast
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:7027:4:
 
warning: return from incompatible pointer type
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:
 
In function 'unprobe_marker_at':
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:7105:33:
 
error: request for member 'location' in something not a structure or union
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:7109:51:
 
error: request for member 'channel' in something not a structure or union
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:7110:23:
 
error: request for member 'name' in something not a structure or union
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:7114:17:
 
error: request for member 'channel' in something not a structure or union
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:7114:39:
 
error: request for member 'name' in something not a structure or union
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:
 
In function 'probe_marker_at':
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:7135:43:
 
warning: assignment from incompatible pointer type
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:7137:42:
 
warning: assignment from incompatible pointer type
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:
 
In function 'cmd_qtstmat':
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:7180:43:
 
warning: assignment from incompatible pointer type
| 
/vol/1/sgw/autobuilder/poky-slave/poky-full-ia/build/build/tmp/work/i586-poky-linux/gdb-7.2-r0/gdb-7.2/gdb/gdbserver/tracepoint.c:7182:42:
 
warning: assignment from incompatible pointer type
| make[4]: *** [tracepoint-ipa.o] Error 1



_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to