All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: babeltrace foreign builds broken by 384246569494
       [not found] <5621194E.40804@mentor.com>
@ 2015-10-16 19:53 ` Jérémie Galarneau
       [not found] ` <CA+jJMxsUV9ZcZRwviHWEdUFVxNKvVViC+zURSsm9MGzOBUgYiA@mail.gmail.com>
  1 sibling, 0 replies; 5+ messages in thread
From: Jérémie Galarneau @ 2015-10-16 19:53 UTC (permalink / raw)
  To: Nathan Lynch; +Cc: lttng-dev

Hi Nathan,

This should be fixed as of:

commit d620c28807ba2f9d0b97582384915f6a452a3375
Author: Jérémie Galarneau <jeremie.galarneau@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@mentor.com>
    Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>

Thanks for reporting!
Jérémie

On Fri, Oct 16, 2015 at 11:35 AM, Nathan Lynch <Nathan_Lynch@mentor.com> wrote:
> Hi,
>
> Building babeltrace's master branch in a directory separate from the source
> directory has been broken by:
>
> commit 3842465694945829d76452ff83924aa0103c6293
> Author: Michael Jeanson <mjeanson@efficios.com>
> Date:   Fri Oct 9 15:50:25 2015 -0400
>
>     Port: Include config.h globally trough DEFAULT_INCLUDES
>
>     Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
>     Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
>
> The error is:
>
> make[5]: Entering directory '/home/nathanl/src/babeltrace/build/formats/ctf/metadata'
> /bin/sh ../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I/home/nathanl/src/babeltrace/build/.. -I../../.. -I../../../include -include config.h    -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -Wall -Wformat -I/home/nathanl/src/babeltrace/build/../include -include ctf-scanner-symbols.h -g -O2 -pthread -MT libctf_parser_la-ctf-lexer.lo -MD -MP -MF .deps/libctf_parser_la-ctf-lexer.Tpo -c -o libctf_parser_la-ctf-lexer.lo `test -f 'ctf-lexer.c' || echo '/home/nathanl/src/babeltrace/build/../formats/ctf/metadata/'`ctf-lexer.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I/home/nathanl/src/babeltrace/build/.. -I../../.. -I../../../include -include config.h -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wformat -I/home/nathanl/src/babeltrace/build/../include -include ctf-scanner-symbols.h -g -O2 -pthread -MT libctf_parser_la-ctf-lexer.lo -MD -MP -MF .deps/libctf_parser_la-ctf-lexer.Tpo -c ctf-lexer.c  -fPIC -DPIC -o .libs/libctf_parser_la-ctf-lexer.o
> cc1: fatal error: ctf-scanner-symbols.h: No such file or directory
>
>
> To recreate, just do something like:
>
> $ ./bootstrap && mkdir build && (cd build && ../configure && make)



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: babeltrace foreign builds broken by 384246569494
       [not found] ` <CA+jJMxsUV9ZcZRwviHWEdUFVxNKvVViC+zURSsm9MGzOBUgYiA@mail.gmail.com>
@ 2015-10-17  5:59   ` Simon Marchi
       [not found]   ` <CAFXXi0kjYEXzCAP3UT15abTeXGSk13tueE6HO7FWDoWR3s5ghQ@mail.gmail.com>
  1 sibling, 0 replies; 5+ messages in thread
From: Simon Marchi @ 2015-10-17  5:59 UTC (permalink / raw)
  To: Jérémie Galarneau; +Cc: lttng-dev, Nathan Lynch

On 16 October 2015 at 15:53, Jérémie Galarneau
<jeremie.galarneau@efficios.com> wrote:
> Hi Nathan,
>
> This should be fixed as of:
>
> commit d620c28807ba2f9d0b97582384915f6a452a3375
> Author: Jérémie Galarneau <jeremie.galarneau@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@mentor.com>
>     Signed-off-by: Jérémie Galarneau <jeremie.galarneau@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

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: babeltrace foreign builds broken by 384246569494
       [not found]   ` <CAFXXi0kjYEXzCAP3UT15abTeXGSk13tueE6HO7FWDoWR3s5ghQ@mail.gmail.com>
@ 2015-10-17 19:30     ` Jérémie Galarneau
       [not found]     ` <CA+jJMxtum3e_pku4Qpup=27wa0nV9sNZOi=-QDmdoLEM_TvV4Q@mail.gmail.com>
  1 sibling, 0 replies; 5+ messages in thread
From: Jérémie Galarneau @ 2015-10-17 19:30 UTC (permalink / raw)
  To: Simon Marchi; +Cc: lttng-dev, Nathan Lynch

On Sat, Oct 17, 2015 at 1:59 AM, Simon Marchi <simon.marchi@polymtl.ca> wrote:
> On 16 October 2015 at 15:53, Jérémie Galarneau
> <jeremie.galarneau@efficios.com> wrote:
>> Hi Nathan,
>>
>> This should be fixed as of:
>>
>> commit d620c28807ba2f9d0b97582384915f6a452a3375
>> Author: Jérémie Galarneau <jeremie.galarneau@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@mentor.com>
>>     Signed-off-by: Jérémie Galarneau <jeremie.galarneau@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).
>

My very dear Simon,

That is a very just and astute observation. I'll make sure this part
of the change is duly reverted and a comment added to explain the
purpose of this explicit include directive.

> 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.
>

As for the rest of the changes, I propose this patch on top of master
[1]. It's the only way I can get the out of tree build to work.

Shall the aforementioned fix not be to your utmost satisfaction, I'll
gladly accept an alternative solution as I may have failed to address
the problem in the most efficient way.

All the very best,
Sir Galarneau

[1] https://gist.githubusercontent.com/jgalar/6a8e8404e507db37fc2c/raw/1e66f1fbf1155f5867862bee2e9574c5d303a8f6/gistfile1.txt

> Best Regards,
>
> Simon Marchi



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: babeltrace foreign builds broken by 384246569494
       [not found]     ` <CA+jJMxtum3e_pku4Qpup=27wa0nV9sNZOi=-QDmdoLEM_TvV4Q@mail.gmail.com>
@ 2015-10-17 22:35       ` Simon Marchi
  0 siblings, 0 replies; 5+ messages in thread
From: Simon Marchi @ 2015-10-17 22:35 UTC (permalink / raw)
  To: Jérémie Galarneau; +Cc: lttng-dev, Nathan Lynch

On 17 October 2015 at 15:30, Jérémie Galarneau
<jeremie.galarneau@efficios.com> wrote:
> As for the rest of the changes, I propose this patch on top of master
> [1]. It's the only way I can get the out of tree build to work.
>
> Shall the aforementioned fix not be to your utmost satisfaction, I'll
> gladly accept an alternative solution as I may have failed to address
> the problem in the most efficient way.

The fix you suggest is very much what I had in mind.

Yours truly,

Simon Marchi

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* babeltrace foreign builds broken by 384246569494
@ 2015-10-16 15:35 Nathan Lynch
  0 siblings, 0 replies; 5+ messages in thread
From: Nathan Lynch @ 2015-10-16 15:35 UTC (permalink / raw)
  To: lttng-dev

Hi,

Building babeltrace's master branch in a directory separate from the source
directory has been broken by:

commit 3842465694945829d76452ff83924aa0103c6293
Author: Michael Jeanson <mjeanson@efficios.com>
Date:   Fri Oct 9 15:50:25 2015 -0400

    Port: Include config.h globally trough DEFAULT_INCLUDES
    
    Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
    Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>

The error is:

make[5]: Entering directory '/home/nathanl/src/babeltrace/build/formats/ctf/metadata'
/bin/sh ../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I/home/nathanl/src/babeltrace/build/.. -I../../.. -I../../../include -include config.h    -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -Wall -Wformat -I/home/nathanl/src/babeltrace/build/../include -include ctf-scanner-symbols.h -g -O2 -pthread -MT libctf_parser_la-ctf-lexer.lo -MD -MP -MF .deps/libctf_parser_la-ctf-lexer.Tpo -c -o libctf_parser_la-ctf-lexer.lo `test -f 'ctf-lexer.c' || echo '/home/nathanl/src/babeltrace/build/../formats/ctf/metadata/'`ctf-lexer.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I/home/nathanl/src/babeltrace/build/.. -I../../.. -I../../../include -include config.h -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wformat -I/home/nathanl/src/babeltrace/build/../include -include ctf-scanner-symbols.h -g -O2 -pthread -MT libctf_parser_la-ctf-lexer.lo -MD -MP -MF .deps/libctf_parser_la-ctf-lexer.Tpo -c ctf-lexer.c  -fPIC -DPIC -o .libs/libctf_parser_la-ctf-lexer.o
cc1: fatal error: ctf-scanner-symbols.h: No such file or directory


To recreate, just do something like:

$ ./bootstrap && mkdir build && (cd build && ../configure && make)

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-17 22:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <5621194E.40804@mentor.com>
2015-10-16 19:53 ` babeltrace foreign builds broken by 384246569494 Jérémie Galarneau
     [not found] ` <CA+jJMxsUV9ZcZRwviHWEdUFVxNKvVViC+zURSsm9MGzOBUgYiA@mail.gmail.com>
2015-10-17  5:59   ` Simon Marchi
     [not found]   ` <CAFXXi0kjYEXzCAP3UT15abTeXGSk13tueE6HO7FWDoWR3s5ghQ@mail.gmail.com>
2015-10-17 19:30     ` Jérémie Galarneau
     [not found]     ` <CA+jJMxtum3e_pku4Qpup=27wa0nV9sNZOi=-QDmdoLEM_TvV4Q@mail.gmail.com>
2015-10-17 22:35       ` Simon Marchi
2015-10-16 15:35 Nathan Lynch

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.