* Re: lttng-tools compilation error v2.5.0 rc1
[not found] <53AD6327.3080501@xsilon.com>
@ 2014-07-02 9:48 ` Martin Townsend
[not found] ` <53B3D56D.8040009@xsilon.com>
2014-07-09 20:48 ` David Goulet
2 siblings, 0 replies; 4+ messages in thread
From: Martin Townsend @ 2014-07-02 9:48 UTC (permalink / raw)
To: lttng-dev
Any update on this?
Best Regards,
Martin.
On 27/06/14 13:27, Martin Townsend wrote:
> Hi,
>
> I updated to version 2.5.0 rc1 today and found that I couldn't build
> lttng-tools for my Microblaze based system.
>
> | error.c: In function 'log_add_time':
> | error.c:52:17: error: 'error_log_time' undeclared (first use in this
> function)
> | ret = snprintf(error_log_time.str, sizeof(error_log_time.str),
> | ^
> | error.c:52:17: note: each undeclared identifier is reported only
> once for each function it appears in
> | make[3]: *** [error.lo] Error 1
> | make[3]: *** Waiting for unfinished jobs....
>
> After grepping URCU_TLS in the source I could see it was used
> elsewhere with accessor macros so I used the following patch which
> fixes the compiler error.
>
> I'm not familiar with the code so I was wondering if this is the
> correct fix?
>
> Best Regards,
> Martin
>
> From 8a2789962fb22e92f8e9b46747c4d56cdaae04ca Mon Sep 17 00:00:00 2001
> From: Martin Townsend <martin.townsend@xsilon.com>
> Date: Fri, 27 Jun 2014 11:41:03 +0100
> Subject: [PATCH] fixed compile error mising URCU_TLS
>
> ---
> src/common/error.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/common/error.c b/src/common/error.c
> index 418fc47..92852f9 100644
> --- a/src/common/error.c
> +++ b/src/common/error.c
> @@ -49,14 +49,14 @@ const char *log_add_time(void)
> }
>
> /* Format time in the TLS variable. */
> - ret = snprintf(error_log_time.str, sizeof(error_log_time.str),
> + ret = snprintf(URCU_TLS(error_log_time).str,
> sizeof(URCU_TLS(error_log_time).str),
> "%02d:%02d:%02d.%06ld",
> tm.tm_hour, tm.tm_min, tm.tm_sec, tp.tv_nsec);
> if (ret < 0) {
> goto error;
> }
>
> - return error_log_time.str;
> + return URCU_TLS(error_log_time).str;
>
> error:
> /* Return an empty string on error so logging is not affected. */
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: lttng-tools compilation error v2.5.0 rc1
[not found] ` <53B3D56D.8040009@xsilon.com>
@ 2014-07-02 14:35 ` Mathieu Desnoyers
0 siblings, 0 replies; 4+ messages in thread
From: Mathieu Desnoyers @ 2014-07-02 14:35 UTC (permalink / raw)
To: Martin Townsend; +Cc: lttng-dev
Hi Martin,
David is on vacation this week. Don't worry, he will look into
this before 2.5 final.
Thanks!
Mathieu
----- Original Message -----
> From: "Martin Townsend" <martin.townsend@xsilon.com>
> To: lttng-dev@lists.lttng.org
> Sent: Wednesday, July 2, 2014 5:48:29 AM
> Subject: Re: [lttng-dev] lttng-tools compilation error v2.5.0 rc1
>
> Any update on this?
>
> Best Regards,
> Martin.
>
> On 27/06/14 13:27, Martin Townsend wrote:
> > Hi,
> >
> > I updated to version 2.5.0 rc1 today and found that I couldn't build
> > lttng-tools for my Microblaze based system.
> >
> > | error.c: In function 'log_add_time':
> > | error.c:52:17: error: 'error_log_time' undeclared (first use in this
> > function)
> > | ret = snprintf(error_log_time.str, sizeof(error_log_time.str),
> > | ^
> > | error.c:52:17: note: each undeclared identifier is reported only
> > once for each function it appears in
> > | make[3]: *** [error.lo] Error 1
> > | make[3]: *** Waiting for unfinished jobs....
> >
> > After grepping URCU_TLS in the source I could see it was used
> > elsewhere with accessor macros so I used the following patch which
> > fixes the compiler error.
> >
> > I'm not familiar with the code so I was wondering if this is the
> > correct fix?
> >
> > Best Regards,
> > Martin
> >
> > From 8a2789962fb22e92f8e9b46747c4d56cdaae04ca Mon Sep 17 00:00:00 2001
> > From: Martin Townsend <martin.townsend@xsilon.com>
> > Date: Fri, 27 Jun 2014 11:41:03 +0100
> > Subject: [PATCH] fixed compile error mising URCU_TLS
> >
> > ---
> > src/common/error.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/src/common/error.c b/src/common/error.c
> > index 418fc47..92852f9 100644
> > --- a/src/common/error.c
> > +++ b/src/common/error.c
> > @@ -49,14 +49,14 @@ const char *log_add_time(void)
> > }
> >
> > /* Format time in the TLS variable. */
> > - ret = snprintf(error_log_time.str, sizeof(error_log_time.str),
> > + ret = snprintf(URCU_TLS(error_log_time).str,
> > sizeof(URCU_TLS(error_log_time).str),
> > "%02d:%02d:%02d.%06ld",
> > tm.tm_hour, tm.tm_min, tm.tm_sec, tp.tv_nsec);
> > if (ret < 0) {
> > goto error;
> > }
> >
> > - return error_log_time.str;
> > + return URCU_TLS(error_log_time).str;
> >
> > error:
> > /* Return an empty string on error so logging is not affected. */
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: lttng-tools compilation error v2.5.0 rc1
[not found] <53AD6327.3080501@xsilon.com>
2014-07-02 9:48 ` lttng-tools compilation error v2.5.0 rc1 Martin Townsend
[not found] ` <53B3D56D.8040009@xsilon.com>
@ 2014-07-09 20:48 ` David Goulet
2 siblings, 0 replies; 4+ messages in thread
From: David Goulet @ 2014-07-09 20:48 UTC (permalink / raw)
To: Martin Townsend; +Cc: lttng-dev
[-- Attachment #1.1: Type: text/plain, Size: 2235 bytes --]
Merged!
Sorry for the delay, AFK from work :).
Cheers!
David
On 27 Jun (13:27:19), Martin Townsend wrote:
> Hi,
>
> I updated to version 2.5.0 rc1 today and found that I couldn't build
> lttng-tools for my Microblaze based system.
>
> | error.c: In function 'log_add_time':
> | error.c:52:17: error: 'error_log_time' undeclared (first use in this
> function)
> | ret = snprintf(error_log_time.str, sizeof(error_log_time.str),
> | ^
> | error.c:52:17: note: each undeclared identifier is reported only once for
> each function it appears in
> | make[3]: *** [error.lo] Error 1
> | make[3]: *** Waiting for unfinished jobs....
>
> After grepping URCU_TLS in the source I could see it was used elsewhere with
> accessor macros so I used the following patch which fixes the compiler
> error.
>
> I'm not familiar with the code so I was wondering if this is the correct
> fix?
>
> Best Regards,
> Martin
>
> From 8a2789962fb22e92f8e9b46747c4d56cdaae04ca Mon Sep 17 00:00:00 2001
> From: Martin Townsend <martin.townsend@xsilon.com>
> Date: Fri, 27 Jun 2014 11:41:03 +0100
> Subject: [PATCH] fixed compile error mising URCU_TLS
>
> ---
> src/common/error.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/common/error.c b/src/common/error.c
> index 418fc47..92852f9 100644
> --- a/src/common/error.c
> +++ b/src/common/error.c
> @@ -49,14 +49,14 @@ const char *log_add_time(void)
> }
>
> /* Format time in the TLS variable. */
> - ret = snprintf(error_log_time.str, sizeof(error_log_time.str),
> + ret = snprintf(URCU_TLS(error_log_time).str,
> sizeof(URCU_TLS(error_log_time).str),
> "%02d:%02d:%02d.%06ld",
> tm.tm_hour, tm.tm_min, tm.tm_sec, tp.tv_nsec);
> if (ret < 0) {
> goto error;
> }
>
> - return error_log_time.str;
> + return URCU_TLS(error_log_time).str;
>
> error:
> /* Return an empty string on error so logging is not affected. */
> --
> 1.9.1
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 603 bytes --]
[-- Attachment #2: Type: text/plain, Size: 155 bytes --]
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* lttng-tools compilation error v2.5.0 rc1
@ 2014-06-27 12:27 Martin Townsend
0 siblings, 0 replies; 4+ messages in thread
From: Martin Townsend @ 2014-06-27 12:27 UTC (permalink / raw)
To: lttng-dev
Hi,
I updated to version 2.5.0 rc1 today and found that I couldn't build
lttng-tools for my Microblaze based system.
| error.c: In function 'log_add_time':
| error.c:52:17: error: 'error_log_time' undeclared (first use in this
function)
| ret = snprintf(error_log_time.str, sizeof(error_log_time.str),
| ^
| error.c:52:17: note: each undeclared identifier is reported only once
for each function it appears in
| make[3]: *** [error.lo] Error 1
| make[3]: *** Waiting for unfinished jobs....
After grepping URCU_TLS in the source I could see it was used elsewhere
with accessor macros so I used the following patch which fixes the
compiler error.
I'm not familiar with the code so I was wondering if this is the correct
fix?
Best Regards,
Martin
From 8a2789962fb22e92f8e9b46747c4d56cdaae04ca Mon Sep 17 00:00:00 2001
From: Martin Townsend <martin.townsend@xsilon.com>
Date: Fri, 27 Jun 2014 11:41:03 +0100
Subject: [PATCH] fixed compile error mising URCU_TLS
---
src/common/error.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/error.c b/src/common/error.c
index 418fc47..92852f9 100644
--- a/src/common/error.c
+++ b/src/common/error.c
@@ -49,14 +49,14 @@ const char *log_add_time(void)
}
/* Format time in the TLS variable. */
- ret = snprintf(error_log_time.str, sizeof(error_log_time.str),
+ ret = snprintf(URCU_TLS(error_log_time).str,
sizeof(URCU_TLS(error_log_time).str),
"%02d:%02d:%02d.%06ld",
tm.tm_hour, tm.tm_min, tm.tm_sec, tp.tv_nsec);
if (ret < 0) {
goto error;
}
- return error_log_time.str;
+ return URCU_TLS(error_log_time).str;
error:
/* Return an empty string on error so logging is not affected. */
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-09 20:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <53AD6327.3080501@xsilon.com>
2014-07-02 9:48 ` lttng-tools compilation error v2.5.0 rc1 Martin Townsend
[not found] ` <53B3D56D.8040009@xsilon.com>
2014-07-02 14:35 ` Mathieu Desnoyers
2014-07-09 20:48 ` David Goulet
2014-06-27 12:27 Martin Townsend
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.