Openembedded Core Discussions
 help / color / mirror / Atom feed
* gdb and lttng-ust 0.12
@ 2011-04-24 20:16 Saul Wold
  2011-04-25  1:56 ` Cui, Dexuan
  0 siblings, 1 reply; 5+ messages in thread
From: Saul Wold @ 2011-04-24 20:16 UTC (permalink / raw)
  To: Cui, Dexuan,
	'Patches and discussions about the oe-core layer'
  Cc: poky@yoctoproject.org


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






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

* Re: gdb and lttng-ust 0.12
  2011-04-24 20:16 gdb and lttng-ust 0.12 Saul Wold
@ 2011-04-25  1:56 ` Cui, Dexuan
  2011-04-25  5:14   ` Cui, Dexuan
  0 siblings, 1 reply; 5+ messages in thread
From: Cui, Dexuan @ 2011-04-25  1:56 UTC (permalink / raw)
  To: 'Saul Wold',
	'Patches and discussions about the oe-core layer'
  Cc: poky@yoctoproject.org

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:sgw@linux.intel.com] 
Sent: 2011年4月25日 4:17
To: Cui, Dexuan; 'Patches and discussions about the oe-core layer'
Cc: poky@yoctoproject.org
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




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

* Re: gdb and lttng-ust 0.12
  2011-04-25  1:56 ` Cui, Dexuan
@ 2011-04-25  5:14   ` Cui, Dexuan
  2011-04-25  5:24     ` Saul Wold
  2011-04-25  9:06     ` Cui, Dexuan
  0 siblings, 2 replies; 5+ messages in thread
From: Cui, Dexuan @ 2011-04-25  5:14 UTC (permalink / raw)
  To: 'Saul Wold',
	'Patches and discussions about the oe-core layer'
  Cc: 'poky@yoctoproject.org'

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: poky@yoctoproject.org
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:sgw@linux.intel.com] 
Sent: 2011年4月25日 4:17
To: Cui, Dexuan; 'Patches and discussions about the oe-core layer'
Cc: poky@yoctoproject.org
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




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

* Re: gdb and lttng-ust 0.12
  2011-04-25  5:14   ` Cui, Dexuan
@ 2011-04-25  5:24     ` Saul Wold
  2011-04-25  9:06     ` Cui, Dexuan
  1 sibling, 0 replies; 5+ messages in thread
From: Saul Wold @ 2011-04-25  5:24 UTC (permalink / raw)
  To: Cui, Dexuan
  Cc: 'poky@yoctoproject.org',
	'Patches and discussions about the oe-core layer'

On 04/24/2011 10:14 PM, Cui, Dexuan wrote:
> Hi Saul,
> I prefer "continue with UST disabled in gdb" for now.
> 
Ok, I have a patch queue'ed up already with this fix, I will push it as
part of a consolidated request later tonight.

> 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/.
>
I agree, I am not sure why this is happening also, I thought that I did
installs of 0.11 and did not see the ust directory, maybe I did not
force or something.  Maybe diff the marker.h files and see if there are
differences?

Sau!


> 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: poky@yoctoproject.org
> 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:sgw@linux.intel.com]
> Sent: 2011年4月25日 4:17
> To: Cui, Dexuan; 'Patches and discussions about the oe-core layer'
> Cc: poky@yoctoproject.org
> 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?
> 



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

* Re: gdb and lttng-ust 0.12
  2011-04-25  5:14   ` Cui, Dexuan
  2011-04-25  5:24     ` Saul Wold
@ 2011-04-25  9:06     ` Cui, Dexuan
  1 sibling, 0 replies; 5+ messages in thread
From: Cui, Dexuan @ 2011-04-25  9:06 UTC (permalink / raw)
  To: 'Saul Wold',
	'Patches and discussions about the oe-core layer'
  Cc: 'poky@yoctoproject.org'

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: poky-bounces@yoctoproject.org [mailto:poky-bounces@yoctoproject.org] On Behalf Of Cui, Dexuan
Sent: 2011年4月25日 13:15
To: 'Saul Wold'; 'Patches and discussions about the oe-core layer'
Cc: 'poky@yoctoproject.org'
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: poky@yoctoproject.org
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:sgw@linux.intel.com] 
Sent: 2011年4月25日 4:17
To: Cui, Dexuan; 'Patches and discussions about the oe-core layer'
Cc: poky@yoctoproject.org
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
poky@yoctoproject.org
https://lists.yoctoproject.org/listinfo/poky

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

end of thread, other threads:[~2011-04-25  9:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-24 20:16 gdb and lttng-ust 0.12 Saul Wold
2011-04-25  1:56 ` Cui, Dexuan
2011-04-25  5:14   ` Cui, Dexuan
2011-04-25  5:24     ` Saul Wold
2011-04-25  9:06     ` Cui, Dexuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox