gdb-7.2 can't build with lttng-ust-0.12

Cui, Dexuan dexuan.cui@intel.com
Mon Apr 25 12:44:00 GMT 2011


Hi, I found gdb 7.2 can't build with lttng-ust 0.12 due to the API change(http://www.mail-archive.com/ltt-dev@lists.casi.polymtl.ca/msg01839.html) in lttng-ust 0.12. BTW, gdb-7.2 builds fine with lttng-ust 0.11.

I also tried ftp://sourceware.org/pub/gdb/snapshots/branch/gdb-7.2.90.20110425.tar.bz2 and got the same error:

make[4]: Entering directory `/home/dcui/test/gdb-7.2.90.20110425/gdb/gdbserver'
gcc -c  -g -O2    -I. -I. -I./../common -I./../regformats -I./../../include -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Werror  -DCONFIG_UST_GDB_INTEGRATION -fPIC -DGDBSERVER -DIN_PROCESS_AGENT -fvisibility=hidden tracepoint.c -o tracepoint-ipa.o
cc1: warnings being treated as errors
tracepoint.c: In function 'first_marker':
tracepoint.c:7064: error: return from incompatible pointer type
tracepoint.c: In function 'next_marker':
tracepoint.c:7079: error: comparison of distinct pointer types lacks a cast
tracepoint.c:7082: error: return from incompatible pointer type
tracepoint.c: In function 'unprobe_marker_at':
tracepoint.c:7160: error: request for member 'location' in something not a structure or union
tracepoint.c:7164: error: request for member 'channel' in something not a structure or union
tracepoint.c:7165: error: request for member 'name' in something not a structure or union
tracepoint.c:7169: error: request for member 'channel' in something not a structure or union
tracepoint.c:7169: error: request for member 'name' in something not a structure or union
tracepoint.c: In function 'probe_marker_at':
tracepoint.c:7190: error: assignment from incompatible pointer type
tracepoint.c:7192: error: assignment from incompatible pointer type
tracepoint.c: In function 'cmd_qtstmat':
tracepoint.c:7236: error: assignment from incompatible pointer type
tracepoint.c:7238: error: assignment from incompatible pointer type
tracepoint.c: In function 'gdb_ust_thread':
tracepoint.c:7342: error: ignoring return value of 'write', declared with attribute warn_unused_result
make[4]: *** [tracepoint-ipa.o] Error 1

For now, we have to use  --without-ust to disable ust in gdb-7.2. :-(

I reported http://sourceware.org/bugzilla/show_bug.cgi?id=12699 to record the issue.

Is there a plan to support lttng-ust 0.12?

Thanks!

-- Dexuan



More information about the Gdb mailing list