[lttng-dev] Problem compiling UST

Alexandre Montplaisir alexandre.montplaisir at polymtl.ca
Wed Dec 7 10:14:36 EST 2011


On 11-12-06 09:31 PM, Chris Cassano wrote:
> Hi, I'm compiling UST on Debian 6 and it fails with this error which I 
> cannot figure out.  I just typed "make" in the main ust directory 
> (obviously after running ./configure).  Thanks!
>
> make[4]: Entering directory 
> `/home/chris/ust/ust-0.15/tests/tracepoint/benchmark'
>   CCLD   tracepoint_benchmark
> tracepoint_benchmark.o: In function `__trace_ust_event':
> /home/chris/ust/ust-0.15/tests/tracepoint/benchmark/tracepoint_benchmark.h:27: 
> undefined reference to `unlikely'
> collect2: ld returned 1 exit status
> make[4]: *** [tracepoint_benchmark] Error 1
>
> -- 
> -Chris
>

Hi,

You seem to be building an older UST with a recent version of liburcu 
(iirc, unlikely was changed to caa_unlikely in urcu 0.6.6).
You should try the new UST 2.0 prerelease (which is called "lttng-ust" 
on git.lttng.org). If you really want/need to use UST 0.15, you will 
have to use liburcu 0.6.5 or below.

Cheers,

-- 
Alexandre Montplaisir
DORSAL lab,
École Polytechnique de Montréal




More information about the lttng-dev mailing list