问题描述
openubmc2603编译报错,
复制 /home/workspace/BMC_2603/manifest/build/rootfs 到 conan 安装目录
rm -rf /home/workspace/BMC_2603/manifest/temp/build_openUBMC_debug_dev/conan_install/rootfs
cp -rf /home/workspace/BMC_2603/manifest/build/rootfs /home/workspace/BMC_2603/manifest/temp/build_openUBMC_debug_dev/conan_install/rootfs
rm -rf /home/workspace/BMC_2603/manifest/temp/build_openUBMC_debug_dev/conan_install/openubmc
cp -rf /home/workspace/BMC_2603/manifest/temp/board_openUBMC/rootfs /home/workspace/BMC_2603/manifest/temp/build_openUBMC_debug_dev/conan_install/openubmc
不能从 yaml 文件中获取到键值 tosupporte/default/fixed_version, 没有相关配置
版本 json 配置: {‘Version’: ‘26.03.00.01’, ‘BuildNum’: ‘01’, ‘ReleaseDate’: ‘16:39:07 Apr 3 2026’, ‘BMCSDKVersion’: ‘5.13.00.01’, ‘openUBMCVersion’: ‘26.03’}
WARN: 未配置 show_version 字段
conan graph build-order . -pr=profile.luajit.ini -pr:b profile.dt.ini -s:h build_type=Debug -o :module_symvers=3db48e6e6944d2aa4ab9b5fcab7d11423b6cc38e24732863017a60578a004fa5 -o firmware_mgmt/:community_enable=True -o vpd/:board_name=openUBMC -o webui/:energy_enabled=True -o webui/:webvnc_enabled=True -o account/:manufacture=True -o help/:board_name=openUBMC -o remote_console/:webvnc_supported=True -o nsm/:webvnc_supported=True -o bmc_time/:manufacture=True -o /:enable_luajit=True -o fructrl/:manufacture=True -o chassis/:manufacture=True --order-by=recipe -f json --out-file=/home/workspace/BMC_2603/manifest/temp/build_openUBMC_debug_dev/graph.order --user=openubmc --channel=stable --build=missing --lockfile-out=/home/workspace/BMC_2603/manifest/temp/build_openUBMC_debug_dev/openubmc.lockBuild snmp start, logfile: /home/workspace/BMC_2603/manifest/temp/log/conan_Build_snmp.log
Build snmp not ok.
start build openUBMC: conan create . -pr=profile.luajit.ini -pr:b profile.dt.ini -s:h build_type=Debug -o :module_symvers=3db48e6e6944d2aa4ab9b5fcab7d11423b6cc38e24732863017a60578a004fa5 -o firmware_mgmt/:community_enable=True -o vpd/:board_name=openUBMC -o webui/:energy_enabled=True -o webui/:webvnc_enabled=True -o account/:manufacture=True -o help/:board_name=openUBMC -o remote_console/:webvnc_supported=True -o nsm/:webvnc_supported=True -o bmc_time/:manufacture=True -o /:enable_luajit=True -o fructrl/:manufacture=True -o chassis/:manufacture=True --user=openubmc --channel=stable --build=missing
conan create . -pr=profile.luajit.ini -pr:b profile.dt.ini -s:h build_type=Debug -o :module_symvers=3db48e6e6944d2aa4ab9b5fcab7d11423b6cc38e24732863017a60578a004fa5 -o firmware_mgmt/:community_enable=True -o vpd/:board_name=openUBMC -o webui/:energy_enabled=True -o webui/:webvnc_enabled=True -o account/:manufacture=True -o help/:board_name=openUBMC -o remote_console/:webvnc_supported=True -o nsm/:webvnc_supported=True -o bmc_time/:manufacture=True -o /:enable_luajit=True -o fructrl/:manufacture=True -o chassis/:manufacture=True --user=openubmc --channel=stable --build=missing
ERROR: 执行命令 conan create . -pr=profile.luajit.ini -pr:b profile.dt.ini -s:h build_type=Debug -o :module_symvers=3db48e6e6944d2aa4ab9b5fcab7d11423b6cc38e24732863017a60578a004fa5 -o firmware_mgmt/:community_enable=True -o vpd/:board_name=openUBMC -o webui/:energy_enabled=True -o webui/:webvnc_enabled=True -o account/:manufacture=True -o help/:board_name=openUBMC -o remote_console/:webvnc_supported=True -o nsm/:webvnc_supported=True -o bmc_time/:manufacture=True -o /:enable_luajit=True -o fructrl/:manufacture=True -o chassis/:manufacture=True --user=openubmc --channel=stable --build=missing 错误, 日志: /home/workspace/BMC_2603/manifest/temp/log/task.log
ERROR: 任务 work.build.conan 执行失败, Command ‘[’/usr/local/bin/conan’, ‘create’, ‘.’, ‘-pr=profile.luajit.ini’, ‘-pr:b’, ‘profile.dt.ini’, ‘-s:h’, ‘build_type=Debug’, ‘-o’, ‘:module_symvers=3db48e6e6944d2aa4ab9b5fcab7d11423b6cc38e24732863017a60578a004fa5’, ‘-o’, 'firmware_mgmt/:community_enable=True’, ‘-o’, ‘vpd/:board_name=openUBMC’, ‘-o’, 'webui/:energy_enabled=True’, ‘-o’, ‘webui/:webvnc_enabled=True’, ‘-o’, 'account/:manufacture=True’, ‘-o’, ‘help/:board_name=openUBMC’, ‘-o’, 'remote_console/:webvnc_supported=True’, ‘-o’, ‘nsm/:webvnc_supported=True’, ‘-o’, 'bmc_time/:manufacture=True’, ‘-o’, ‘/:enable_luajit=True’, ‘-o’, ‘fructrl/:manufacture=True’, ‘-o’, 'chassis/:manufacture=True’, ‘–user=openubmc’, ‘–channel=stable’, ‘–build=missing’]’ returned non-zero exit status 1.
ERROR: 任务 work.build.conan 执行失败
ERROR: 任务 personal 执行失败
ERROR: 请查看日志信息
conan install --requires=‘bingo_cases/[>=1.0.0]@openubmc/stable’ -u --deployer-folder=/tmp/tmpp67e0bir -of /tmp/tmpp67e0bir -d direct_deploy
[INFO unified_error_analyzer.py:186 analyze_errors][INFO unified_error_analyzer.py:187 analyze_errors]
开始统一错误分析
[INFO unified_error_analyzer.py:188 analyze_errors] ============================================================
[INFO unified_error_analyzer.py:343 _output_unified_analysis]统一分析完成!
[INFO unified_error_analyzer.py:344 _output_unified_analysis] 分析文件数量: 23 个
[INFO unified_error_analyzer.py:345 _output_unified_analysis] 日志条目总数: 1104 条
[INFO unified_error_analyzer.py:346 _output_unified_analysis] 日志文件案例: 1 个
[INFO unified_error_analyzer.py:347 _output_unified_analysis] 命令失败案例: 0 个
[INFO unified_error_analyzer.py:348 _output_unified_analysis] 总案例: 1 个
[INFO unified_error_analyzer.py:354 _output_unified_analysis][INFO unified_error_analyzer.py:355 _output_unified_analysis]
详细错误分析
[INFO unified_error_analyzer.py:356 _output_unified_analysis] ============================================================
[INFO unified_error_analyzer.py:141 _output_unified_case]案例 1: bingo命令错误或产品与平台版本不匹配
[INFO unified_error_analyzer.py:144 _output_unified_case] ──────────────────────────────────────────────────
[INFO unified_error_analyzer.py:146 _output_unified_case]发生时间: 未知时间
[INFO unified_error_analyzer.py:147 _output_unified_case]来源: 日志文件
[INFO unified_error_analyzer.py:150 _output_unified_case]文件: /home/workspace/BMC_2603/manifest/temp/log/task.log
[INFO unified_error_analyzer.py:152 _output_unified_case]问题描述: bingo test命令缺少 -jit选项,或manifest版本没有配套(例如 25.09版本的manifest需要配套25.09的bmc_sdk)
[INFO unified_error_analyzer.py:159 _output_unified_case]相关输出:
[INFO unified_error_analyzer.py:160 _output_unified_case] KeyError: ‘pwd’
[INFO unified_error_analyzer.py:171 _output_unified_case]解决方案: 请检查bingo命令拼接以及manifest和sdk是否配套。
[INFO unified_error_analyzer.py:173 _output_unified_case] ──────────────────────────────────────────────────
timed out
timed out
timed out
timed out
timed out
timed out
timed out
timed out
timed out
timed out
timed out
timed outredfish/1.110.8@openubmc/stable: Already installed! (109 of 118)
remote_console/1.110.17@openubmc/stable: Already installed! (110 of 118)
snmp/1.100.5@openubmc/stable: WARN: Trying to remove corrupted source folder
snmp/1.100.5@openubmc/stable: WARN: This can take a while for big packages
snmp/1.100.5@openubmc/stable: Calling source() in /root/.conan2/p/snmp87eae35a538eb/s
ERROR:
KeyError: ‘pwd’
ERROR: 执行命令 conan create . -pr=profile.luajit.ini -pr:b profile.dt.ini -s:h build_type=Debug -o :module_symvers=3db48e6e6944d2aa4ab9b5fcab7d11423b6cc38e24732863017a60578a004fa5 -o firmware_mgmt/:community_enable=True -o vpd/:board_name=openUBMC -o webui/:energy_enabled=True -o webui/:webvnc_enabled=True -o account/:manufacture=True -o help/:board_name=openUBMC -o remote_console/:webvnc_supported=True -o nsm/:webvnc_supported=True -o bmc_time/:manufacture=True -o /:enable_luajit=True -o fructrl/:manufacture=True -o chassis/:manufacture=True --user=openubmc --channel=stable --build=missing 错误, 日志: /home/workspace/BMC_2603/manifest/temp/log/task.log
root@7137cac67541:/home/workspace/BMC_2603/manifest#
环境信息
-
操作系统:Ubuntu 24.04
-
软件版本:OpenUBMC2603
-
硬件配置:[如 CPU、内存等]
重现步骤
-
[第一步]
-
[第二步]
-
[第三步]
期望结果
可以编译通过
实际结果
有报错,bmc_sdk.zip的版本应该与bmc_sdk.zip是对应的
尝试过的解决方案
manifest来自manifest-代码预览-manifest:基于Ubuntu 24.04与Docker的开发环境配置项目 - AtomGit | GitCode
bmc_sdk.zip来自bmcsdk | 应用市场 | openUBMC
执行过python3 init.py - path ./bmc_sdk.zip -user USER -psw XX
分析结论
[详细总结您对此问题的分析结论]