Bug #1424
openThe path src/plugins/ctf/common/src/metadata/tsdl is not created by the babeltrace build system
0%
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.
Updated by Kienan Stewart 13 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