// 此模板仅供参考,如果不适用可以修改,使用了2509的bmc_sdk 初始化环境后重新在manifest下bmcgo 能出包,但是account还是报错pwd
问题描述
使用bmcgo build --stage=stable构建报错pwd
libiam/1.100.14@openubmc/stable: WARN: Trying to remove corrupted source folder
libiam/1.100.14@openubmc/stable: WARN: This can take a while for big packages
libiam/1.100.14@openubmc/stable: Calling source() in /root/.conan2/p/libiaf4ddd6593498f/s
ERROR:
KeyError: ‘pwd’
ERROR: 执行命令 conan create --name account --version 94.0.1 . -pr:h profile.luajit.ini -pr:b profile.dt.ini -s:a build_type=Debug --user openubmc --channel stable -o /:enable_luajit=True --build=account/* --build=missing -u -f json --out-file=/tmp/tmpryq8_q5t.graph.json -tf= 错误, 日志: /root/.bmcgo_log/bingo.log
ERROR: Command ‘[‘conan’, ‘create’, ‘–name’, ‘account’, ‘–version’, ‘94.0.1’, ‘.’, ‘-pr:h’, ‘profile.luajit.ini’, ‘-pr:b’, ‘profile.dt.ini’, ‘-s:a’, ‘build_type=Debug’, ‘–user’, ‘openubmc’, ‘–channel’, ‘stable’, ‘-o’, ‘/:enable_luajit=True’, ‘–build=account/*’, ‘–build=missing’, ‘-u’, ‘-f’, ‘json’, ‘–out-file=/tmp/tmpryq8_q5t.graph.json’, ‘-tf=’]’ returned non-zero exit status 1.
ERROR: 请查看日志信息
skynet/1.8.0.b001_006@openubmc/stable: Already installed! (10 of 21)
json/b003_00004@openubmc/stable: Already installed! (11 of 21)
liblogger/1.90.6@openubmc/stable: Already installed! (12 of 21)
openldap/2.6.6-htrunk1_003@openubmc/stable: Already installed! (13 of 21)
signature_verify_cbb_library/25.1.0.b003_001@openubmc/stable: Already installed! (14 of 21)
vpp/v300r025c20spc002b200_001@openubmc/stable: Already installed! (15 of 21)
kmc/25.0.5+b001_002@openubmc/stable: Already installed! (16 of 21)
libsomp/2.0.5@openubmc/stable: Already installed! (17 of 21)
libsoc_adapter/1.100.25@openubmc/stable: Already installed! (18 of 21)
libmc4lua/1.100.71@openubmc/stable: Already installed! (19 of 21)
libiam/1.100.14@openubmc/stable: WARN: Trying to remove corrupted source folder
libiam/1.100.14@openubmc/stable: WARN: This can take a while for big packages
libiam/1.100.14@openubmc/stable: Calling source() in /root/.conan2/p/libiaf4ddd6593498f/s
ERROR:
KeyError: ‘pwd’
[2026-01-27 15:39:10,501 ERROR] build.py:347 执行命令 conan create --name account --version 94.0.1 . -pr:h profile.ini -pr:b profile.dt.ini -s:a build_type=Debug --user openubmc --channel stable -o /:enable_luajit=True --build=account/* --build=missing -u -f json --out-file=/tmp/tmpr1ybmfup.graph.json -tf= 错误, 日志: /root/.bmcgo_log/bingo.log
[2026-01-27 15:39:10,506 ERROR] cli.py:312 Traceback (most recent call last):
File “/usr/local/lib/python3.12/dist-packages/bmcgo/cli/cli.py”, line 291, in run
return method(command_args)
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/dist-packages/bmcgo/cli/cli.py”, line 184, in build
build.run()
File “/usr/local/lib/python3.12/dist-packages/bmcgo/component/build.py”, line 359, in run
self.run_conan_v2()
File “/usr/local/lib/python3.12/dist-packages/bmcgo/component/build.py”, line 347, in run_conan_v2
tool.run_command(cmd, show_log=True)
File “/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py”, line 700, in run_command
raise e
File “/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py”, line 682, in run_command
ret = subprocess.run(command, check=check, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/subprocess.py”, line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘conan’, ‘create’, ‘–name’, ‘account’, ‘–version’, ‘94.0.1’, ‘.’, ‘-pr:h’, ‘profile.ini’, ‘-pr:b’, ‘profile.dt.ini’, ‘-s:a’, ‘build_type=Debug’, ‘–user’, ‘openubmc’, ‘–channel’, ‘stable’, ‘-o’, ‘/:enable_luajit=True’, ‘–build=account/*’, ‘–build=missing’, ‘-u’, ‘-f’, ‘json’, ‘–out-file=/tmp/tmpr1ybmfup.graph.json’, ‘-tf=’]’ returned non-zero exit status 1.
[2026-01-27 15:39:10,508 ERROR] cli.py:314 Command ‘[‘conan’, ‘create’, ‘–name’, ‘account’, ‘–version’, ‘94.0.1’, ‘.’, ‘-pr:h’, ‘profile.ini’, ‘-pr:b’, ‘profile.dt.ini’, ‘-s:a’, ‘build_type=Debug’, ‘–user’, ‘openubmc’, ‘–channel’, ‘stable’, ‘-o’, ‘/:enable_luajit=True’, ‘–build=account/*’, ‘–build=missing’, ‘-u’, ‘-f’, ‘json’, ‘–out-file=/tmp/tmpr1ybmfup.graph.json’, ‘-tf=’]’ returned non-zero exit status 1.
[2026-01-27 15:39:10,509 ERROR] cli.py:315 请查看日志信息
[在这里详细描述您遇到的问题]
环境信息
-
操作系统:Ubuntu 24.04
-
软件版本:OpenUBMC2509
root@03b7d7c3dae7:/workspace/account# bmcgo -v
whoami
root
bmcgo 版本为: 0.7.14
bingo 版本为: 0.6.75
bmc-studio 版本为: 1.2.0
root@03b7d7c3dae7:/workspace/account# conan -v
Conan version 2.21.0
- 硬件配置:[如 CPU、内存等]
重现步骤
-
[第一步]
-
[第二步]
-
[第三步]
期望结果
[您希望实现什么]
实际结果
[实际发生了什么,包含错误信息]
尝试过的解决方案
[列出您已经尝试过的解决方案及结果]
