[lttng-dev] babeltrace foreign builds broken by 384246569494

Simon Marchi simon.marchi at polymtl.ca
Sat Oct 17 01:59:06 EDT 2015


On 16 October 2015 at 15:53, Jérémie Galarneau
<jeremie.galarneau at efficios.com> wrote:
> Hi Nathan,
>
> This should be fixed as of:
>
> commit d620c28807ba2f9d0b97582384915f6a452a3375
> Author: Jérémie Galarneau <jeremie.galarneau at efficios.com>
> Date:   Fri Oct 16 15:31:28 2015 -0400
>
>     Fix: missing includes break the out-of-tree build
>
>     Addresses out-of-tree build breakage introduced by
>     commit 3842465694945829d76452ff83924aa0103c6293
>
>     Reported-by: Nathan Lynch <Nathan_Lynch at mentor.com>
>     Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
>
> Thanks for reporting!
> Jérémie

Hi Sir Galarneau,

I have been investigating a build failure of the babeltrace code on
Launchpad, and the following change caught my attention:

-libctf_parser_la_CFLAGS = $(AM_CFLAGS) -include ctf-scanner-symbols.h
+libctf_parser_la_CFLAGS = $(AM_CFLAGS)

Is it possible that it was wrongfully included in the aforementioned
changeset? It is part of the formats/ctf/metadata/Makefile.am file
artifact. Removing it causes the bt_yy_* symbols to go back to yy_* (I
don't think that was the intention).

Also, I'll take this opportunity to discuss another part of the
changeset: At a few places, it is possible to use

  -I$(srcdir) instead of -I$(top_srcdir)/formats/ctf/metadata

and

  -I$(builddir) instead of -I$(top_builddir)/formats/ctf/metadata

This allows one to have less hardcoded path in their build description
file. If top_srcdir and top_builddir were willfully chosen, then
please ignore this comment.

Best Regards,

Simon Marchi



More information about the lttng-dev mailing list