On Tue Dec 30, 2025 at 9:46 AM CET, Adrian Freihofer via lists.openembedded.org
wrote:
> From: Adrian Freihofer <[email protected]>
>
> This extends the existing devtool IDE SDK tests to verify that gdb
> pretty-printing is working correctly.
>
> Signed-off-by: Adrian Freihofer <[email protected]>
> ---
Hi Adrian,
We discussed this over IRC, but let's keep a trace of it here.
This patch is probably responsible of the following error in the
autobuilder, during arm hosted selftests:
2025-12-30 16:17:15,120 - oe-selftest - INFO -
devtool.DevtoolIdeSdkTests.test_devtool_ide_sdk_code_cmake
(subunit.RemotedTestCase)
2025-12-30 16:17:15,121 - oe-selftest - INFO - ... FAIL
...
AssertionError: Command
'/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/aarch64-linux/gdb-cross-aarch64/16.3/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gdb
--batch -ex 'set sysroot
/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/cortexa57-poky-linux/cmake-example/1.0/image'
-ex 'python import sys;sys.path.insert(0,
'"'"'/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/cortexa57-poky-linux/cmake-example/1.0/recipe-sysroot/usr/share/gcc-15.2.0/python'"'"');from
libstdcxx.v6.printers import
register_libstdcxx_printers;register_libstdcxx_printers(None)' -ex 'set
substitute-path /usr/include
/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/cortexa57-poky-linux/cmake-example/1.0/recipe-sysroot/usr/include'
-ex 'set substitute-path /usr/src/debug/cmake-example/1.0
/tmp/devtoolqa7jq2nm81' -ex 'set substitute-path /usr/src/debug
/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/qemuarm64-poky-linux/oe-selftest-image/1.0/rootfs-dbg/usr/src/debug'
-ex 'set solib-search-path
/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/qemuarm64-poky-linux/oe-selftest-image/1.0/rootfs-dbg/lib/.debug:/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/qemuarm64-poky-linux/oe-selftest-image/1.0/rootfs-dbg/usr/lib/.debug:/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/qemuarm64-poky-linux/oe-selftest-image/1.0/rootfs-dbg/usr/lib/debug:/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/qemuarm64-poky-linux/oe-selftest-image/1.0/rootfs-dbg/lib:/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/qemuarm64-poky-linux/oe-selftest-image/1.0/rootfs-dbg/usr/lib:/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/qemuarm64-poky-linux/oe-selftest-image/1.0/rootfs/lib:/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/qemuarm64-poky-linux/oe-selftest-image/1.0/rootfs/usr/lib'
-ex 'file
/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1628878/tmp/work/cortexa57-poky-linux/cmake-example/1.0/image/usr/bin/cmake-example'
-ex 'target remote 192.168.7.4:1234' -ex 'break main' -ex 'continue' -ex
'break CppExample::print_json()' -ex 'continue' -ex 'print
CppExample::test_string.compare("cpp-example-lib Magic: 123456789")' -ex 'print
CppExample::test_string.compare("cpp-example-lib Magic: 123456789aaa")' -ex
'list cpp-example-lib.hpp:14,14' -ex 'list cpp-example.cpp:55,55' -ex 'break
cpp-example.cpp:55' -ex 'continue' -ex 'print numbers' -ex 'continue'' returned
non-zero exit status 1:
_start () at ../sysdeps/aarch64/dl-start.S:23
23 ENTRY (_start)
Breakpoint 1 at 0xaaaaaaaa1400: file
/usr/src/debug/cmake-example/1.0/cpp-example.cpp, line 15.
Breakpoint 1, main (argc=1, argv=0xfffffffffd08) at
/usr/src/debug/cmake-example/1.0/cpp-example.cpp:15
15 {
Breakpoint 2 at 0xfffff7f91d70: file
/usr/src/debug/cmake-example/1.0/cpp-example-lib.cpp, line 28.
Breakpoint 2, CppExample::print_json (this=0xfffffffffac8) at
/usr/src/debug/cmake-example/1.0/cpp-example-lib.cpp:28
28 jobj = json_object_new_object();
$1 = 0
$2 = -3
14 inline static const std::string test_string = "cpp-example-lib
Magic: 123456789";
55 std::vector<int> numbers = {1, 2, 3};
No compiled code for line 55 in file "cpp-example.cpp".
Make breakpoint pending on future shared library load? (y or [n]) [answered N;
input not from terminal]
[Inferior 1 (process 346) exited normally]
A syntax error in expression, near the end of `numbers'.
The program is not being run.
...
2025-12-30 16:26:11,523 - oe-selftest - INFO -
devtool.DevtoolIdeSdkTests.test_devtool_ide_sdk_none_qemu
(subunit.RemotedTestCase)
2025-12-30 16:26:11,524 - oe-selftest - INFO - ... FAIL
...
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/3070
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#228724):
https://lists.openembedded.org/g/openembedded-core/message/228724
Mute This Topic: https://lists.openembedded.org/mt/116995690/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-