社区lsw编译不过

最新社区节点代码;

怀疑还是libmgmt_protocol的问题

当前组件如下

root@hz209-z00010824:/home/project_manage/source_code/manufacture# conan search 'libmg*'
Existing package recipes:

libmgmt_protocol/1.70.6@hw.ibmc.release/rc
libmgmt_protocol/1.70.6@hw.ibmc.release/stable
libmgmt_protocol/1.70.7-build.1@hw.ibmc.release/stable
libmgmt_protocol/1.70.27@openUBMC.release/rc

执行记录


root@hz209-z00010824:/home/project_manage/source_code/lsw# GIT_SSL_NO_VERIFY=1 LOG=debug bingo build -r=openubmc_dev
[2025-05-16 09:36:23,781 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 deploy
[2025-05-16 09:36:23,782 DEBUG] cli.py:419 /usr/local/lib/python3.12/dist-packages/bmcgo/functional/fileverify 不是一个目录或者不是以 .py 结尾的文件, 继续
[2025-05-16 09:36:23,783 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 fetch
[2025-05-16 09:36:23,784 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 diff
[2025-05-16 09:36:23,784 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 ubmc_unite_build
[2025-05-16 09:36:23,786 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 dt_analysis
[2025-05-16 09:36:23,786 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 srcbaseline_to_manifest
[2025-05-16 09:36:23,788 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 zipcheck
[2025-05-16 09:36:23,790 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 update_hashes
[2025-05-16 09:36:23,791 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 upgrade
[2025-05-16 09:36:23,800 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 full_component
[2025-05-16 09:36:23,802 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 zipdepress
[2025-05-16 09:36:23,803 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 ibmc_sdk_build
[2025-05-16 09:36:23,806 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 download_from_cmc_srcbaseline
[2025-05-16 09:36:23,807 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 ubmc_build
[2025-05-16 09:36:23,813 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 csr_build
[2025-05-16 09:36:23,815 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 maintain
[2025-05-16 09:36:23,816 DEBUG] cli.py:430 方法 if_available 返回 false, 跳过 conan_index_build
[2025-05-16 09:36:23,820 DEBUG] build.py:80 获取仓库列表:
[2025-05-16 09:36:23,821 DEBUG] build.py:81 ['origin\thttps://git.codehub.xfusion.com/ManagementSoftware/openUBMC/lsw.git (push)']
[2025-05-16 09:36:23,822 INFO] build.py:47 仓库地址为: https://git.codehub.xfusion.com/ManagementSoftware/openUBMC/lsw.git
[2025-05-16 09:36:23,836 INFO] tools.py:735 尝试清理conan组件锁
Conan 1 is on a deprecation path, please consider migrating to Conan 2
[HOOK - attribute_checker.py] pre_export(): WARN: Conanfile doesn't have 'description'. It is recommended to add it as attribute
Exporting package recipe
lsw/1.70.6@hw.ibmc.dev/dev: Calling export()
lsw/1.70.6@hw.ibmc.dev/dev export() method: Copied 1 '.json' file: service.json
lsw/1.70.6@hw.ibmc.dev/dev export() method: Copied 1 '.py' file: conanbase.py
lsw/1.70.6@hw.ibmc.dev/dev: Revision deduced by 'auto': 320f057ca1f3ecb5ce6e265e50de15b63d9ebb9e
lsw/1.70.6@hw.ibmc.dev/dev: SCM: Getting sources from folder: /home/project_manage/source_code/lsw
lsw/1.70.6@hw.ibmc.dev/dev: A new conanfile.py version was exported
lsw/1.70.6@hw.ibmc.dev/dev: Folder: /root/.conan/data/lsw/1.70.6/hw.ibmc.dev/dev/export
lsw/1.70.6@hw.ibmc.dev/dev: Using the exported files summary hash as the recipe revision: 3deca4701a924382e8f9af23690613a2 
lsw/1.70.6@hw.ibmc.dev/dev: Exported revision: 3deca4701a924382e8f9af23690613a2
Configuration (profile_host):
[settings]
arch=armv8
build_type=Debug
compiler=gcc
compiler.libcxx=libstdc++
compiler.luajit=1.7.x
compiler.version=7.3
os=Linux
[options]
skynet:enable_luajit=True
[build_requires]
[env]
AR=aarch64-target-linux-gnu-ar
AS=aarch64-target-linux-gnu-as
CC=aarch64-target-linux-gnu-gcc
CFLAGS=-Wall -fPIC -fstack-protector-all -O2 -Wl,-z,relro,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,now -fPIE -pie -fno-common -std=gnu11
CHOST=aarch64-target-linux-gnu
CONAN_CMAKE_FIND_ROOT_PATH=/opt/RTOS/208.8.0/arm64le_5.10_ek_preempt_pro/sdk
CONAN_CMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY
CONAN_CMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY
CONAN_CMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY
CONAN_CMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER
CONAN_CMAKE_FIND_SDK_ROOT=/opt/hi1711sdk
CONAN_CMAKE_SYSROOT=/opt/RTOS/208.8.0/arm64le_5.10_ek_preempt_pro/sdk
CONAN_CMAKE_SYSTEM_VERSION=3.14
CONAN_DISABLE_STRICT_MODE=1
CONAN_REVISIONS_ENABLED=1
CONAN_SKIP_BROKEN_SYMLINKS_CHECK=True
CXX=aarch64-target-linux-gnu-g++
CXXFLAGS=-I"/opt/hcc_arm64le/aarch64-target-linux-gnu/lib/include" -Wall -fPIC -fstack-protector-all -O2 -Wl,-z,relro,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,now -fPIE -pie -fno-common -std=c++17
HOSTCC=gcc
KERNEL_PATH=/opt/RTOS/208.8.0/arm64le_5.10_ek_preempt_pro/sdk/usr/src/kernel/
LD=aarch64-target-linux-gnu-ld
PATH=[/opt/hcc_arm64le/bin]
PKG_CONFIG_PATH=/opt/RTOS/208.8.0/arm64le_5.10_ek_preempt_pro/sdk/lib64/pkgconfig:/opt/RTOS/208.8.0/arm64le_5.10_ek_preempt_pro/sdk/usr/lib64/pkgconfig
RANLIB=aarch64-target-linux-gnu-ranlib
STRIP=aarch64-target-linux-gnu-strip
Configuration (profile_build):
[settings]
arch=x86_64
build_type=Dt
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
[options]
[build_requires]
[env]
AR=ar
AS=as
CC=gcc
CFLAGS=-Wall -fPIC -fstack-protector-all -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,now -pie -g -fno-common -std=gnu11
CONAN_BUILD_TYPE=DT
CONAN_CMAKE_SYSTEM_VERSION=3.16
CONAN_DISABLE_STRICT_MODE=1
CONAN_REVISIONS_ENABLED=1
CONAN_SKIP_BROKEN_SYMLINKS_CHECK=True
CXX=g++
CXXFLAGS=-I"$standalone_toolchain/$target_host/lib/include" -Wall -fPIC -fstack-protector-all -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,now -pie -fno-common -std=c++17
HOSTCC=gcc
LD=ld
STRIP=strip
WARN: Signature_Verify_CBB_Library/24.1.0.B006@hw.ibmc.release/rc: requirement huawei_secure_c/[>=1.0.0]@hw.ibmc.release/stable overridden by libmc4lua/1.70.17@hw.ibmc.release/rc to huawei_secure_c/1.0.2@hw.ibmc.release/stable 
WARN: json/B003_00002@hw.ibmc.release/stable: requirement huawei_secure_c/[>=1.0.0]@hw.ibmc.release/stable overridden by libmc4lua/1.70.17@hw.ibmc.release/rc to huawei_secure_c/1.0.2@hw.ibmc.release/stable 
WARN: libsoc_adapter/1.70.1@hw.ibmc.release/rc: requirement huawei_secure_c/[>=1.0.2 <1.1.0, include_prerelease=True]@hw.ibmc.release/stable overridden by libmc4lua/1.70.17@hw.ibmc.release/rc to huawei_secure_c/1.0.2@hw.ibmc.release/stable 
WARN: libmgmt_protocol/1.70.6@hw.ibmc.release/rc: requirement libmc4lua/[>=1.70.17 <1.71.0, include_prerelease=True]@hw.ibmc.release/rc overridden by lsw/1.70.6@hw.ibmc.dev/dev to libmc4lua/1.70.17@hw.ibmc.release/rc 
Version ranges solved
    Version range '>=1.10.0' required by 'lsw/1.70.6@hw.ibmc.dev/dev' resolved to 'libmc4lua/1.70.17@hw.ibmc.release/rc' in local cache
    Version range '>=1.10.0' required by 'lsw/1.70.6@hw.ibmc.dev/dev' resolved to 'libmgmt_protocol/1.70.6@hw.ibmc.release/rc' in local cache
    Version range '>=3.37.2-6.oe2203sp3-h2.B001 <3.38.0, include_prerelease=True' required by 'libmc4lua/1.70.17@hw.ibmc.release/rc' resolved to 'sqlite3/3.37.2-6.oe2203sp3-h2.B001@hw.ibmc.release/stable' in local cache
    Version range '>=1.0.2 <1.1.0, include_prerelease=True' required by 'libmc4lua/1.70.17@hw.ibmc.release/rc' resolved to 'huawei_secure_c/1.0.2@hw.ibmc.release/stable' in local cache
    Version range '>=1.70.1 <1.71.0, include_prerelease=True' required by 'libmc4lua/1.70.17@hw.ibmc.release/rc' resolved to 'libsoc_adapter/1.70.1@hw.ibmc.release/rc' in local cache
    Version range '>=1.0.0' required by 'Signature_Verify_CBB_Library/24.1.0.B006@hw.ibmc.release/rc' valid for downstream requirement 'huawei_secure_c/1.0.2@hw.ibmc.release/stable'
    Version range '>=1.0.0' required by 'json/B003_00002@hw.ibmc.release/stable' valid for downstream requirement 'huawei_secure_c/1.0.2@hw.ibmc.release/stable'
    Version range '>=1.0.2 <1.1.0, include_prerelease=True' required by 'libsoc_adapter/1.70.1@hw.ibmc.release/rc' valid for downstream requirement 'huawei_secure_c/1.0.2@hw.ibmc.release/stable'
    Version range '>=1.70.17 <1.71.0, include_prerelease=True' required by 'libmgmt_protocol/1.70.6@hw.ibmc.release/rc' valid for downstream requirement 'libmc4lua/1.70.17@hw.ibmc.release/rc'

Installing package: lsw/1.70.6@hw.ibmc.dev/dev
Requirements
    Computing_Component_RAID/V100R001C00SPC512B020@hw.ibmc.release/stable from 'openubmc_dev' - Cache
    Signature_Verify_CBB_Library/24.1.0.B006@hw.ibmc.release/rc from 'openubmc_dev' - Cache
    boost/1.82.0.B001@hw.ibmc.release/stable from 'openubmc_dev' - Cache
    huawei_secure_c/1.0.2@hw.ibmc.release/stable from 'openubmc_dev' - Cache
    json/B003_00002@hw.ibmc.release/stable from 'openubmc_dev' - Cache
    kmc/24.0.0.B020@hw.ibmc.release/stable from 'openubmc_dev' - Cache
    libmc4lua/1.70.17@hw.ibmc.release/rc from 'openubmc_dev' - Cache
    libmgmt_protocol/1.70.6@hw.ibmc.release/rc from 'openubmc_dev' - Cache
    libsoc_adapter/1.70.1@hw.ibmc.release/rc from 'openubmc_dev' - Cache
    lsw/1.70.6@hw.ibmc.dev/dev from local cache - Cache
    luajit/2.1.0.B010@hw.ibmc.release/stable from 'openubmc_dev' - Cache
    skynet/1.7.0.B014@hw.ibmc.release/stable from 'openubmc_dev' - Cache
    sqlite3/3.37.2-6.oe2203sp3-h2.B001@hw.ibmc.release/stable from 'openubmc_dev' - Cache
Packages
    Computing_Component_RAID/V100R001C00SPC512B020@hw.ibmc.release/stable:0c9b335f5ceedf84a5c48e75ae61f7199ef35de4 - Cache
    Signature_Verify_CBB_Library/24.1.0.B006@hw.ibmc.release/rc:8a40805ad2c8fb55b4e5948ce1a010749486388d - Cache
    boost/1.82.0.B001@hw.ibmc.release/stable:295f5ceaff90a1afe2a22ca78ccdeb749ab95b30 - Cache
    huawei_secure_c/1.0.2@hw.ibmc.release/stable:cd580fc2453993ab665c59c2c66e9e2975009bd1 - Cache
    json/B003_00002@hw.ibmc.release/stable:a47cd7b22afe94afee86f40447ec4332e63cd756 - Cache
    kmc/24.0.0.B020@hw.ibmc.release/stable:295f5ceaff90a1afe2a22ca78ccdeb749ab95b30 - Cache
    libmc4lua/1.70.17@hw.ibmc.release/rc:bfa049e79e2d56755ea38720942881e476fac734 - Cache
    libmgmt_protocol/1.70.6@hw.ibmc.release/rc:d31c34c402f99e5884e0ade01d5f3fd716192f6e - Cache
    libsoc_adapter/1.70.1@hw.ibmc.release/rc:861295bd689d9057e53f6cf8fc651f0445fdd862 - Cache
    lsw/1.70.6@hw.ibmc.dev/dev:93aac996824482866e0120b870d3cd93ecf5f9ea - Build
    luajit/2.1.0.B010@hw.ibmc.release/stable:295f5ceaff90a1afe2a22ca78ccdeb749ab95b30 - Cache
    skynet/1.7.0.B014@hw.ibmc.release/stable:f0ac676322c6d4e1b5962369e1e983795c898eb1 - Cache
    sqlite3/3.37.2-6.oe2203sp3-h2.B001@hw.ibmc.release/stable:295f5ceaff90a1afe2a22ca78ccdeb749ab95b30 - Cache

Cross-build from 'Linux:x86_64' to 'Linux:armv8'
Installing (downloading, building) binaries...
Computing_Component_RAID/V100R001C00SPC512B020@hw.ibmc.release/stable: Already installed!
boost/1.82.0.B001@hw.ibmc.release/stable: Already installed!
huawei_secure_c/1.0.2@hw.ibmc.release/stable: Already installed!
kmc/24.0.0.B020@hw.ibmc.release/stable: Already installed!
luajit/2.1.0.B010@hw.ibmc.release/stable: Already installed!
sqlite3/3.37.2-6.oe2203sp3-h2.B001@hw.ibmc.release/stable: Already installed!
Signature_Verify_CBB_Library/24.1.0.B006@hw.ibmc.release/rc: Already installed!
json/B003_00002@hw.ibmc.release/stable: Already installed!
skynet/1.7.0.B014@hw.ibmc.release/stable: Already installed!
libsoc_adapter/1.70.1@hw.ibmc.release/rc: Already installed!
libmc4lua/1.70.17@hw.ibmc.release/rc: Already installed!
libmgmt_protocol/1.70.6@hw.ibmc.release/rc: Already installed!
lsw/1.70.6@hw.ibmc.dev/dev: Configuring sources in /root/.conan/data/lsw/1.70.6/hw.ibmc.dev/dev/source
lsw/1.70.6@hw.ibmc.dev/dev: Copying previously cached scm sources
lsw/1.70.6@hw.ibmc.dev/dev: Copying sources to build folder
lsw/1.70.6@hw.ibmc.dev/dev: Building your package in /root/.conan/data/lsw/1.70.6/hw.ibmc.dev/dev/build/93aac996824482866e0120b870d3cd93ecf5f9ea
lsw/1.70.6@hw.ibmc.dev/dev: WARN: 
     ************************************************
     The 'cmake' generator is deprecated.
     Please update your code and remove it.
     *************************************************

lsw/1.70.6@hw.ibmc.dev/dev: Generator cmake created conanbuildinfo.cmake
lsw/1.70.6@hw.ibmc.dev/dev: Calling generate()
lsw/1.70.6@hw.ibmc.dev/dev: Aggregating env generators
lsw/1.70.6@hw.ibmc.dev/dev: Calling build()
lsw/1.70.6@hw.ibmc.dev/dev: Package '93aac996824482866e0120b870d3cd93ecf5f9ea' built
lsw/1.70.6@hw.ibmc.dev/dev: Build folder /root/.conan/data/lsw/1.70.6/hw.ibmc.dev/dev/build/93aac996824482866e0120b870d3cd93ecf5f9ea
lsw/1.70.6@hw.ibmc.dev/dev: Generated conaninfo.txt
lsw/1.70.6@hw.ibmc.dev/dev: Generated conanbuildinfo.txt
lsw/1.70.6@hw.ibmc.dev/dev: Generating the package
lsw/1.70.6@hw.ibmc.dev/dev: Package folder /root/.conan/data/lsw/1.70.6/hw.ibmc.dev/dev/package/93aac996824482866e0120b870d3cd93ecf5f9ea
lsw/1.70.6@hw.ibmc.dev/dev: Calling package()
lsw/1.70.6@hw.ibmc.dev/dev: WARN: **** The 'from conans import CMake' helper is deprecated. Please update your code and remove it. ****
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/hcc_arm64le/bin/aarch64-target-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/hcc_arm64le/bin/aarch64-target-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") 
-- Checking for one of the modules 'glib-2.0'
-- Checking for one of the modules 'gmodule-2.0'
-- Conan: called by CMake conan helper
-- Conan: called inside local cache
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Conan: Compiler GCC>=5, checking major version 7.3
-- Conan: Checking correct version: 7.3
-- Conan: C++ stdlib: libstdc++
-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /root/.conan/data/lsw/1.70.6/hw.ibmc.dev/dev/build/93aac996824482866e0120b870d3cd93ecf5f9ea
[ 50%] Building C object src/luaclib/l_lsw_drv/CMakeFiles/l_lsw_drv.dir/lsw_drv.c.o
/root/.conan/data/lsw/1.70.6/hw.ibmc.dev/dev/build/93aac996824482866e0120b870d3cd93ecf5f9ea/src/luaclib/l_lsw_drv/lsw_drv.c:25:10: fatal error: liblsw_drv.h: No such file or directory
 #include "liblsw_drv.h"
          ^~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [src/luaclib/l_lsw_drv/CMakeFiles/l_lsw_drv.dir/build.make:76: src/luaclib/l_lsw_drv/CMakeFiles/l_lsw_drv.dir/lsw_drv.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:113: src/luaclib/l_lsw_drv/CMakeFiles/l_lsw_drv.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
ERROR: lsw/1.70.6@hw.ibmc.dev/dev: Error in package() method, line 9
        super().package()
        ConanException: Error 2 while executing cmake --build '/root/.conan/data/lsw/1.70.6/hw.ibmc.dev/dev/build/93aac996824482866e0120b870d3cd93ecf5f9ea' '--target' 'install' '--' '-j4'
[2025-05-16 09:36:26,272 ERROR] build.py:206 执行命令  conan create . lsw/1.70.6@hw.ibmc.dev/dev -pr:h profile.luajit.ini -pr:b profile.dt.ini -s build_type=Debug -r openubmc_dev -o skynet:enable_luajit=True --build=missing -tf None 错误, 日志: /root/.bmcgo_log/bmcgo.log
[2025-05-16 09:36:26,273 ERROR] cli.py:369 Traceback (most recent call last):
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/cli/cli.py", line 355, in run
    return method(command_args)
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/cli/cli.py", line 176, in build
    build.run()
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/component/build.py", line 206, in run
    tool.run_command(cmd, show_log=True, timeout=timeout)
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py", line 665, in run_command
    raise e
  File "/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py", line 647, 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', '.', 'lsw/1.70.6@hw.ibmc.dev/dev', '-pr:h', 'profile.luajit.ini', '-pr:b', 'profile.dt.ini', '-s', 'build_type=Debug', '-r', 'openubmc_dev', '-o', 'skynet:enable_luajit=True', '--build=missing', '-tf', 'None']' returned non-zero exit status 1.

[2025-05-16 09:36:26,273 ERROR] cli.py:371 Command '['conan', 'create', '.', 'lsw/1.70.6@hw.ibmc.dev/dev', '-pr:h', 'profile.luajit.ini', '-pr:b', 'profile.dt.ini', '-s', 'build_type=Debug', '-r', 'openubmc_dev', '-o', 'skynet:enable_luajit=True', '--build=missing', '-tf', 'None']' returned non-zero exit status 1.
[2025-05-16 09:36:26,274 ERROR] cli.py:372 请查看日志信息
````预先格式化的文本`

libmgmt_protocol的版本太低了。清理一下conan缓存。确保使用最新的libmgmt_protocol版本。

请使用社区的bingo工具进行构建编译。

https://openubmc.cn/appstore/bingo

最新的版本要求是多少呢?

根据之前的说法,伙伴使用bingo实际是bmcgo,和社区的bingo是不同的,你能确定要使用bingo嘛?

真正的解决方案, 来自陈芝奔

1 个赞

我在2506才编译成功,你也是在2506编吗?