Bug #849
closedError compiling lttng-tools
100%
Description
(Note that the error most likely stems from userspace-rcu, but as it surfaces here, I'm filing it against lttng-tools.)
Steps to reproduce:
- Configure userspace-rcu with the --disable-compiler-tls flag
- Compile lttng-tools against it
The process will eventually fail, in the compilation of src/common/error.c file:
error.c: In function 'log_add_time':
error.c:52:62: error: 'error_log_time' undeclared (first use in this function)
ret = snprintf(URCU_TLS(error_log_time).str, sizeof(error_log_time.str),
^
error.c:52:62: note: each undeclared identifier is reported only once for each function it appears in
The reason appears to be that for the above urcu configuration, the
DEFINE_URCU_TLS(struct log_time, error_log_time);
line (error.c:30) won't actually define a variable of name 'error_log_time', and thus error.c:52 will fail.
Updated by Jérémie Galarneau about 10 years ago
- Status changed from New to Confirmed
Updated by Christian Babeux about 10 years ago
- Status changed from Confirmed to Resolved
- % Done changed from 0 to 100
Applied in changeset tools|commit:327115d8d042b3b1eb906d332c4c02a537ecdb27.