Project

General

Profile

Actions

Bug #1424

open

The path src/plugins/ctf/common/src/metadata/tsdl is not created by the babeltrace build system

Added by Bin Lan 15 days ago. Updated 13 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
03/17/2025
Due date:
% Done:

0%

Estimated time:

Description

When generating parser.cpp by executing /bin/bash ../../git/config/ylwrap, parser.cpp is generated into the source code path src/plugins/ctf/common/src/metadata/tsdl when building in host.
When building it with Yocto poky, parser.cpp is generated into ${B}/src/plugins/ctf/common/src/metadata/tsdl which is not create by babeltrace build system. This causes compilation to fail. ${B} is not the path of babeltrace source code directory.

Actions #1

Updated by Kienan Stewart 14 days ago

  • Status changed from New to Feedback
  • Assignee set to Bin Lan

Hi Bin Lan,

src/plugins/ctf/common/src/metadata/tsdl exists in the source tree, it's not generated. It looks to me like this is happening in the yocto recipe because S is defined to a different value here https://git.yoctoproject.org/poky/tree/meta/recipes-kernel/lttng/babeltrace2_2.1.0.bb#n19

Normally, $B is $S - see https://docs.yoctoproject.org/ref-manual/variables.html#term-B

I think you could solve the issue by setting B = "${S}" in the recipe, instead of appending the mkdir inside of configure.

The current supported build types are:

  • in-tree (std)
  • out-of-tree (e.g. mkdir build-dir, cd build-dir, /path/to/babeltrace2/configure ...)
  • in-tree with the dist tarball
  • out-of-tree with the dist tarball dist

If you're encountering issues with the yocto build system and believe they are upstream issues, please first validate that you can reproduce the issues with one of the supported builds and provide a detailed bug report with steps to reproduce.

thanks,
kienan

Actions #2

Updated by Bin Lan 13 days ago

Thank you for your quick response.

Actions

Also available in: Atom PDF