From: adrian.freihofer@gmail.com
To: mathieu.dubois-briand@bootlin.com, adrian.freihofer@siemens.com,
openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 9/9] oe-selftest: devtool ide-sdk: add clang/LLDB test
Date: Fri, 20 Mar 2026 10:11:07 +0100 [thread overview]
Message-ID: <7ce9c599973474ff4ce0b87c3aa43b4a0b6bec71.camel@gmail.com> (raw)
In-Reply-To: <DH7F8OQYC7QP.23LPE0REKT1BC@bootlin.com>
On Fri, 2026-03-20 at 08:12 +0100, Mathieu Dubois-Briand via
lists.openembedded.org wrote:
> On Wed Mar 18, 2026 at 11:36 PM CET, Adrian Freihofer via
> lists.openembedded.org wrote:
> > From: Adrian Freihofer <adrian.freihofer@siemens.com>
> >
> > Add test_devtool_ide_sdk_code_cmake_clang to verify the full
> > devtool
> > ide-sdk workflow for a cmake recipe built with clang. Unlike the
> > gcc
> > variant the clang recipe uses lldb-server for remote debugging and
> > CodeLLDB (vadimcn.vscode-lldb) as the VS Code debug adapter.
> >
> > The test covers:
> > - devtool modify + devtool ide-sdk with ide=code
> > - cmake preset compilation and CTest execution (same as the gcc
> > test)
> > - extensions.json recommends vadimcn.vscode-lldb
> > - launch.json uses "type": "lldb" (CodeLLDB) instead of "type":
> > "cppdbg"
> > - End-to-end lldb --batch remote debugging session via lldb-server
> > platform mode running on qemu
> >
> > Supporting changes:
> > - _write_bb_config: accept optional extra_packages parameter so the
> > clang test can add lldb-server to IMAGE_INSTALL
> > - _verify_launch_json_lldb: new helper that validates the CodeLLDB
> > launch.json structure (type, initCommands, program, cwd,
> > preLaunchTask)
> > - _lldb_server_debugging_once: new helper that reads the
> > preLaunchTask
> > SSH command from tasks.json, starts lldb-server on the target,
> > and
> > runs lldb --batch to verify a breakpoint at main is hit
> > - _verify_service_running: use pgrep with exact regex (^name$) for
> > exact
> > process name matching; without that, pgrep would also match
> > cmake-example-clang (truncated to 'cmake-example-c' in
> > /proc/pid/comm) when checking for cmake-example, returning two
> > PIDs
> > and failing the isdigit() assertion
> >
> > Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
> > ---
>
> Hi Adrian,
>
> Thanks for your patch.
>
> It looks like the added test_devtool_ide_sdk_code_cmake_clang test is
> failing on the autobuilder:
>
> 2026-03-19 19:34:48,650 - oe-selftest - INFO -
> devtool.DevtoolIdeSdkTests.test_devtool_ide_sdk_code_cmake_clang
> (subunit.RemotedTestCase)
> 2026-03-19 19:34:48,651 - oe-selftest - INFO - ... FAIL
> ...
> 2026-03-19 19:34:48,651 - oe-selftest - INFO - 11: 3/39 214/681
> (495.87s) (0 failed)
> (devtool.DevtoolIdeSdkTests.test_devtool_ide_sdk_code_cmake_clang)
> 2026-03-19 19:34:48,651 - oe-selftest - INFO -
> testtools.testresult.real._StringException: Traceback (most recent
> call last):
> File "/srv/pokybuild/yocto-worker/oe-selftest-
> armhost/build/layers/openembedded-
> core/meta/lib/oeqa/selftest/cases/devtool.py", line 3862, in
> test_devtool_ide_sdk_code_cmake_clang
> runCmd(install_deploy_cmd, output_log=self._cmd_logger)
> File "/srv/pokybuild/yocto-worker/oe-selftest-
> armhost/build/layers/openembedded-
> core/meta/lib/oeqa/utils/commands.py", line 214, in runCmd
> raise AssertionError("Command '%s' returned non-zero exit status
> %d:\n%s" % (command, result.status, exc_output))
> AssertionError: Command '/srv/pokybuild/yocto-worker/oe-selftest-
> armhost/build/build-st-273901/workspace/ide-sdk/cmake-example-
> clang/scripts/install_and_deploy_cmake-example-clang-cortexa57'
> returned non-zero exit status 1:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/3579
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3474
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3360
>
> Can you have a look at the issue?
>
Thank you for the feedback.
Looks like the summary is: Pseudo crashes on ARM hosts (but not on x86-
64 hosts).
Is it possible to get this file
/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-
273901/tmp/work/cortexa57-poky-linux/cmake-example-
clang/1.0/pseudo//pseudo.log ?
Relevant section from the logs is:
Summary: There was 1 WARNING message.
abort()ing pseudo client by server request. See
https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on
this.
Check logfile: /srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/work/cortexa57-poky-linux/cmake-
example-clang/1.0/pseudo//pseudo.log
Aborted (core dumped)
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Traceback (most recent call last):
File "/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-
273901/workspace/ide-sdk/cmake-example-
clang/scripts/deploy_target_cmake-example-clang-cortexa57", line 19, in
<module>
deploy_no_d("/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/work/cortexa57-poky-linux/cmake-
example-clang/1.0/image", "/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/work/cortexa57-poky-linux/cmake-
example-clang/1.0", "/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/sysroots-uninative/aarch64-
linux/usr/bin:/tmp/devtoolqalpx2fc25/core-
copy/scripts:/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/work/cortexa57-poky-linux/cmake-
example-clang/1.0/recipe-sysroot-native/usr/bin/aarch64-poky-
linux:/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-
273901/tmp/work/cortexa57-poky-linux/cmake-example-clang/1.0/recipe-
sysroot/usr/bin/crossscripts:/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/work/cortexa57-poky-linux/cmake-
example-clang/1.0/recipe-sysroot-native/usr/sbin:/srv/pokybuild/yocto-
worker/oe-selftest-armhost/build/build-st-273901/tmp/work/cortexa57-
poky-linux/cmake-example-clang/1.0/recipe-sysroot-
native/usr/bin:/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/work/cortexa57-poky-linux/cmake-
example-clang/1.0/recipe-sysroot-native/sbin:/srv/pokybuild/yocto-
worker/oe-selftest-armhost/build/build-st-273901/tmp/work/cortexa57-
poky-linux/cmake-example-clang/1.0/recipe-sysroot-
native/bin:/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/layers/bitbake/bin:/srv/pokybuild/yocto-worker/oe-
selftest-armhost/build/build-st-273901/tmp/hosttools", "aarch64-poky-
linux-llvm-strip", "/usr/lib", "/lib", 16, "/srv/pokybuild/yocto-
worker/oe-selftest-armhost/build/build-st-273901/tmp/sysroots-
components/aarch64/pseudo-native/usr/bin/pseudo",
"PSEUDO_PREFIX=/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/sysroots-components/aarch64/pseudo-
native/usr PSEUDO_LOCALSTATEDIR=/srv/pokybuild/yocto-worker/oe-
selftest-armhost/build/build-st-273901/tmp/work/cortexa57-poky-
linux/cmake-example-clang/1.0/pseudo/
PSEUDO_PASSWD=/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/work/cortexa57-poky-linux/cmake-
example-clang/1.0/recipe-sysroot:/srv/pokybuild/yocto-worker/oe-
selftest-armhost/build/build-st-273901/tmp/sysroots-
components/aarch64/pseudo-native PSEUDO_NOSYMLINKEXP=1
PSEUDO_INCLUDE_PATHS=/proc,/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/work/cortexa57-poky-linux/cmake-
example-clang/1.0/image,/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/work/cortexa57-poky-linux/cmake-
example-clang/1.0/package,/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/work/cortexa57-poky-linux/cmake-
example-clang/1.0/rootfs,/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/work/cortexa57-poky-linux/cmake-
example-clang/1.0/sstate-build-package/,/srv/pokybuild/yocto-worker/oe-
selftest-armhost/build/build-st-273901/tmp/work/cortexa57-poky-
linux/cmake-example-clang/1.0/sstate-install-
package/,/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-
st-273901/tmp/work/cortexa57-poky-linux/cmake-example-
clang/1.0/pkgdata,/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/build-st-273901/tmp/work/cortexa57-poky-linux/cmake-
example-clang/1.0/minidebuginfo,/srv/pokybuild/yocto-worker/oe-
selftest-armhost/build/build-st-273901/tmp/work/cortexa57-poky-
linux/cmake-example-clang/1.0/devtool-deploy-target-stripped
PSEUDO_DISABLED=0", filtered_args)
File "/srv/pokybuild/yocto-worker/oe-selftest-
armhost/build/layers/openembedded-core/scripts/lib/devtool/deploy.py",
line 274, in deploy_no_d
raise DevtoolError('Deploy failed - rerun with -s to get a complete
'
devtool.DevtoolError: Deploy failed - rerun with -s to get a complete
error message
Thanks,
Adrian
> Thanks,
> Mathieu
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#233580):
> https://lists.openembedded.org/g/openembedded-core/message/233580
> Mute This Topic: https://lists.openembedded.org/mt/118391915/4454582
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe:
> https://lists.openembedded.org/g/openembedded-core/unsub [
> adrian.freihofer@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2026-03-20 9:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-18 22:36 [PATCH 0/9] devtool: ide-sdk clang/LLDB support and minor fixes AdrianF
2026-03-18 22:36 ` [PATCH 1/9] oe-selftest: devtool: use stat for reading user/group names in ide-sdk tests AdrianF
2026-03-18 22:36 ` [PATCH 2/9] oe-selftest: devtool: GDB breakpoint after std::vector is constructed AdrianF
2026-03-18 22:36 ` [PATCH 3/9] oe-selftest: devtool: use assertRegex to match test output for meson AdrianF
2026-03-18 22:36 ` [PATCH 4/9] oe-selftest/cpp-example: fix conf file ownership with static UIDs/GIDs AdrianF
2026-03-18 22:36 ` [PATCH 5/9] devtool: ide-sdk: use TOOLCHAIN not TCOVERRIDE AdrianF
2026-03-18 22:36 ` [PATCH 6/9] devtool: ide-sdk debugger back-end abstraction AdrianF
2026-03-18 22:36 ` [PATCH 7/9] devtool: ide-sdk add LLDB support for clang toolchain AdrianF
2026-03-18 22:36 ` [PATCH 8/9] meta-selftest: refactor cpp examples into .inc files and add clang variants AdrianF
2026-03-18 22:36 ` [PATCH 9/9] oe-selftest: devtool ide-sdk: add clang/LLDB test AdrianF
2026-03-20 7:12 ` [OE-core] " Mathieu Dubois-Briand
2026-03-20 9:11 ` adrian.freihofer [this message]
2026-03-20 10:18 ` Mathieu Dubois-Briand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7ce9c599973474ff4ce0b87c3aa43b4a0b6bec71.camel@gmail.com \
--to=adrian.freihofer@gmail.com \
--cc=adrian.freihofer@siemens.com \
--cc=mathieu.dubois-briand@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox