Conan 1 is on a deprecation path, please consider migrating to Conan 2 Configuration: [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 Version ranges solved Version range '>=1.80.15' required by 'virtual' resolved to 'mdb_interface/1.80.23@hw.ibmc.release/rc' in local cache Installing package: mdb_interface/[>=1.80.15]@hw.ibmc.release/rc Requirements mdb_interface/1.80.23@hw.ibmc.release/rc from 'ibmc_dev' - Cache Packages mdb_interface/1.80.23@hw.ibmc.release/rc:a49a2cb5c5c787c5f49ecd419fe1553f1bada9c8 - Cache Installing (downloading, building) binaries... mdb_interface/1.80.23@hw.ibmc.release/rc: Already installed! Generator deploy created deploy_manifest.txt Aggregating env generators make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. make[1]: Entering directory '/home/workspace/network_adapter/temp/lua_codegen' python3 /home/workspace/network_adapter/temp/lua_codegen/script/check_intfs.py -d /home/workspace/network_adapter/temp/lua_codegen/../../temp/opt/bmc/apps/mdb_interface/ -n network_adapter -m /home/workspace/network_adapter/mds -o /home/workspace/network_adapter/temp/lua_codegen/script/../temp/check_intfs.json make[2]: Entering directory '/home/workspace/network_adapter/temp/lua_codegen/proto' python3 /home/workspace/network_adapter/temp/lua_codegen/script/yaml_to_json.py -i /home/workspace/network_adapter/proto/datas.yaml -b ./ -o /home/workspace/network_adapter/temp/lua_codegen/temp/network_adapter//datas.json make[2]: Leaving directory '/home/workspace/network_adapter/temp/lua_codegen/proto' make[2]: Entering directory '/home/workspace/network_adapter/temp/lua_codegen/templates' make[3]: Entering directory '/home/workspace/network_adapter/temp/lua_codegen/templates/apps' make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. python3 /home/workspace/network_adapter/temp/lua_codegen/script/gen_intf_rpc_json.py -i /home/workspace/network_adapter/mds/service.json -o /home/workspace/network_adapter/temp/lua_codegen/temp/network_adapter/client.json -d /home/workspace/network_adapter/temp/lua_codegen/../../temp/opt/bmc/apps/mdb_interface/ -s /home/workspace/network_adapter/mds/service.json -c /home/workspace/network_adapter/temp/lua_codegen/script/utils.py:164: SyntaxWarning: invalid escape sequence '\!' prefix = ['#\! ', ' # ', '', ' #'] # python style for shell/python python3 /home/workspace/network_adapter/temp/lua_codegen/script/gen_rpc_msg_json.py -i /home/workspace/network_adapter/mds/service.json -o /home/workspace/network_adapter/temp/lua_codegen/temp/network_adapter/json_types/ -d /home/workspace/network_adapter/temp/lua_codegen/../../temp/opt/bmc/apps/mdb_interface/ -n network_adapter -x /home/workspace/network_adapter/temp/lua_codegen/script/render_utils/validate_lua.py:169: SyntaxWarning: invalid escape sequence '\[' match_obj = re.search("(.+?)\[\]", type_str) /home/workspace/network_adapter/temp/lua_codegen/script/render_utils/validate_lua.py:182: SyntaxWarning: invalid escape sequence '\[' match_obj = re.search("(.+?)\[\]", type_str) /home/workspace/network_adapter/temp/lua_codegen/script/render_utils/old_model_lua.py:207: SyntaxWarning: invalid escape sequence '\$' match_obj = re.search("\$\{(.+?)\}", msg) /home/workspace/network_adapter/temp/lua_codegen/script/render_utils/old_model_lua.py:211: SyntaxWarning: invalid escape sequence '\$' return self.convert_dynamic_params(re.sub('\$\{(.+?)\}', ':' + match_obj.group(1), msg, 1)) /home/workspace/network_adapter/temp/lua_codegen/script/render_utils/model_lua.py:155: SyntaxWarning: invalid escape sequence '\$' match_obj = re.search("\$\{(.+?)\}", msg) /home/workspace/network_adapter/temp/lua_codegen/script/render_utils/model_lua.py:159: SyntaxWarning: invalid escape sequence '\$' return self.convert_dynamic_params(re.sub('\$\{(.+?)\}', ':' + match_obj.group(1), msg, 1)) {'package': 'BlockIO', 'name': 'PluginRequestExReq', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'PluginName', 'name': 'PluginName', 'type': 'string', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': False, 'is_enum': False, 'description': '插件名称'}, {'original_name': 'Cmd', 'name': 'Cmd', 'type': 'string', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 1, 'repeated': False, 'is_enum': False, 'description': '命令名称,插件中已实现的函数,hwproxy加载后进行调用并将chip作为第一个参数传入'}, {'original_name': 'Params', 'name': 'Params', 'type': 'uint8', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 2, 'repeated': True, 'is_enum': False, 'description': '插件执行函数输入的参数'}, {'original_name': 'ControlParams', 'name': 'ControlParams', 'type': 'BlockIO.PluginControlParams', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 3, 'repeated': False, 'is_enum': False, 'description': '插件能力参数,用以对插件请求拓展能力进行配置。当前支持,控制插件执行优先级:Priority,取值包括高优先级High和次优先级Secondary'}], 'nested_type': []} {'package': 'BlockIO', 'name': 'BatchWriteReq', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'WriteData', 'name': 'WriteData', 'type': 'BlockIO.SingleWriteData', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': True, 'is_enum': False, 'description': '写入数据:{{offset1,data1}, {offset2,data2}}'}], 'nested_type': []} {'package': 'DPUCard', 'name': 'PfMacInfo', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'PfMacInfo', 'name': 'PfMacInfo', 'type': 'DPUCard.PfMacInfoItem', 'options': {'readonly': True, 'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': True, 'is_enum': False, 'description': '扩展卡的Physical Function Port信息、Physical Function Id信息和永久物理地址信息'}], 'nested_type': []} {'package': 'EthernetInterfaces', 'name': 'NCSIInfoChangedSignalSignature', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'ChangedInfo', 'name': 'ChangedInfo', 'type': 'EthernetInterfaces.ChangedInfoItem', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': True, 'is_enum': False, 'description': '变化的信息:ActivePort(网口切换),VLANId,Mac中的一个或多个'}], 'nested_type': []} {'package': 'EthernetInterfaces', 'name': 'GetAllPortRsp', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'Port', 'name': 'Port', 'type': 'EthernetInterfaces.Port', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': True, 'is_enum': False, 'description': 'port列表'}], 'nested_type': []} {'package': 'Events', 'name': 'EventInfo', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'MappingTable', 'name': 'MappingTable', 'type': 'Events.KeyValueTable', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': True, 'is_enum': False, 'description': '事件信息键值表,键的值包括:严重程度,事件关联的组件名称,事件状态,事件码,事件产生时间戳,事件描述,事件建议,事件原因,事件影响,事件动作,事件策略标识,事件上报通道掩码,事件触发模式,led显示故障码,旧事件码,事件主体类型,事件名称,事件动态参数,事件归属的SystemId,事件归属的ManagerId,事件归属的ChassisId,事件对应的对象'}], 'nested_type': []} {'package': 'Events', 'name': 'AddSelReq', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'EventInfo', 'name': 'EventInfo', 'type': 'Events.KeyValueTable', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': True, 'is_enum': False, 'description': '必选参数:(EventCode:事件码 State:事件状态 Severity:事件严重等级 Description:事件描述 OldEventCode:旧事件码)等'}], 'nested_type': []} {'package': 'Events', 'name': 'AddEventReq', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'EventInfo', 'name': 'EventInfo', 'type': 'Events.KeyValueTable', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': True, 'is_enum': False, 'description': '必选参数:(ComponentName:事件主体名称 State:事件状态 EventKeyId:事件标识 EventName:事件名称 MessageArgs:动态参数列表 SystemId:事件归属的SystemId ManagerId:事件归属的ManagerId ChassisId:事件归属的ChassisId NodeId:事件对应的对象) 可选参数:(SubjectType:事件主体类型)'}], 'nested_type': []} {'package': 'Events', 'name': 'GetMaskedEventListRsp', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'MaskedEventList', 'name': 'MaskedEventList', 'type': 'Events.MaskedEventInfo', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': True, 'is_enum': False, 'description': '屏蔽事件列表信息'}], 'nested_type': []} {'package': 'Events', 'name': 'GetEventListRsp', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'Total', 'name': 'Total', 'type': 'uint16', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': False, 'is_enum': False, 'description': '事件总条数'}, {'original_name': 'EventList', 'name': 'EventList', 'type': 'Events.EventInfo', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 1, 'repeated': True, 'is_enum': False, 'description': '事件详细信息列表'}], 'nested_type': []} {'package': 'Events', 'name': 'GetEventListReq', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'StartId', 'name': 'StartId', 'type': 'uint16', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': False, 'is_enum': False, 'description': '事件索引'}, {'original_name': 'Count', 'name': 'Count', 'type': 'uint16', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 1, 'repeated': False, 'is_enum': False, 'description': '事件条数'}, {'original_name': 'QueryParameters', 'name': 'QueryParameters', 'type': 'Events.KeyValueTable', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 2, 'repeated': True, 'is_enum': False, 'description': '可选参数包括:1.语言(en:英文 zh:中文 默认英文)2.SelLevel日志级别(Informational/Minor/Major/Critical)3.SelObjectType主体类型4.SelBeginTime开始事件戳(yyyy-MM-dd HH:mm:ss)5.SelEndTime结束时间戳6.SelSearchString关键字,用于模糊匹配事件描述、事件码,ASCII范围(0x20~0x7E),长度0~20字符'}], 'nested_type': []} {'package': 'Events', 'name': 'GetAlarmListRsp', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'Total', 'name': 'Total', 'type': 'uint16', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': False, 'is_enum': False, 'description': '事件总条数'}, {'original_name': 'EventList', 'name': 'EventList', 'type': 'Events.EventInfo', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 1, 'repeated': True, 'is_enum': False, 'description': '事件详细信息列表'}], 'nested_type': []} {'package': 'Events', 'name': 'GetAlarmListReq', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'StartId', 'name': 'StartId', 'type': 'uint16', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': False, 'is_enum': False, 'description': '事件索引'}, {'original_name': 'Count', 'name': 'Count', 'type': 'uint16', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 1, 'repeated': False, 'is_enum': False, 'description': '事件条数'}, {'original_name': 'QueryParameters', 'name': 'QueryParameters', 'type': 'Events.KeyValueTable', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 2, 'repeated': True, 'is_enum': False, 'description': '带查询参数列表'}], 'nested_type': []} {'package': 'PCIeEndpoint', 'name': 'SendReq', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'Data', 'name': 'Data', 'type': 'uint8', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': True, 'is_enum': False, 'description': '请求数据'}, {'original_name': 'ReqHeaderFileds', 'name': 'ReqHeaderFileds', 'type': 'PCIeEndpoint.ReqHeaderFileds', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 1, 'repeated': False, 'is_enum': False, 'description': 'mctp上层协议请求报文头字段, 完成协议请求报文头的填充。目前支持, NCSI协议: 数据包类型 PacketType, 通道标识 ChannelId, 数据包标识 PackageId; NVME协议: 数据完整校验标识 IC, NVME消息类型 MsgType, 命令插槽标识 CmdSlot; PLDM协议: 报文类型 PldmType, 命令代码 CommandCode'}], 'nested_type': []} {'package': 'PCIeEndpoint', 'name': 'RequestReq', 'options': {'has_struct': True}, 'type': 'Message', 'properties': [{'original_name': 'Data', 'name': 'Data', 'type': 'uint8', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 0, 'repeated': True, 'is_enum': False, 'description': '请求数据'}, {'original_name': 'TimeoutMs', 'name': 'TimeoutMs', 'type': 'int32', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 1, 'repeated': False, 'is_enum': False, 'description': '超时时间'}, {'original_name': 'ReqHeaderFileds', 'name': 'ReqHeaderFileds', 'type': 'PCIeEndpoint.ReqHeaderFileds', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 2, 'repeated': False, 'is_enum': False, 'description': 'mctp上层协议请求报文头字段, 完成协议请求报文头的填充。目前支持, NCSI协议: 数据包类型 PacketType, 通道标识 ChannelId, 数据包标识 PackageId; NVME协议: 数据完整校验标识 IC, NVME消息类型 MsgType, 命令插槽标识 CmdSlot; PLDM协议: 报文类型 PldmType, 命令代码 CommandCode'}, {'original_name': 'RspHeaderValidators', 'name': 'RspHeaderValidators', 'type': 'PCIeEndpoint.RspHeaderValidators', 'options': {'validate': '', 'allow_null': True, 'critical': False}, 'id': 3, 'repeated': False, 'is_enum': False, 'description': '对mctp上层协议返回报文头的校验。支持校验项: NCSI: NCSI协议返回数据包类型 PacketType; PLDM协议: 返回命令代码 CommandCode'}], 'nested_type': []} python3 /home/workspace/network_adapter/temp/lua_codegen/script/template.py -d /home/workspace/network_adapter/proto -v 8 -j /home/workspace/network_adapter/temp/lua_codegen/temp/network_adapter/json_types/ -n network_adapter -i /home/workspace/network_adapter/temp/lua_codegen/temp/network_adapter/client.json -f /home/workspace/network_adapter/temp/lua_codegen/script/lua_format.py -t client.lua.mako -o /home/workspace/network_adapter/gen/network_adapter/client.lua python3 /home/workspace/network_adapter/temp/lua_codegen/script/merge_model.py -i /home/workspace/network_adapter/mds/model.json -o /home/workspace/network_adapter/temp/lua_codegen/temp/network_adapter/_model.json -d /home/workspace/network_adapter/temp/lua_codegen/../../temp/opt/bmc/apps/mdb_interface/ -c /home/workspace/network_adapter/temp/lua_codegen/script/../temp/check_cmd.json Traceback (most recent call last): File "/home/workspace/network_adapter/temp/lua_codegen/script/merge_model.py", line 293, in main(sys.argv[1:]) File "/home/workspace/network_adapter/temp/lua_codegen/script/merge_model.py", line 289, in main generate(m_input, output, mdb_path, cmd_file) File "/home/workspace/network_adapter/temp/lua_codegen/script/merge_model.py", line 253, in generate merge_model(load_dict, mdb_path) File "/home/workspace/network_adapter/temp/lua_codegen/script/merge_model.py", line 205, in merge_model check_property_name_conflict(origin_model) File "/home/workspace/network_adapter/temp/lua_codegen/script/merge_model.py", line 195, in check_property_name_conflict check_class_property_name_conflict(class_name, class_data) File "/home/workspace/network_adapter/temp/lua_codegen/script/merge_model.py", line 188, in check_class_property_name_conflict raise RuntimeError(f"在model.json文件{class_name}类的{interface}接口中发现重名资源树属性{prop_name}") RuntimeError: 在model.json文件NetworkAdapter类的bmc.kepler.Inventory.Hardware接口中发现重名资源树属性Model make[3]: *** [Makefile:131: /home/workspace/network_adapter/temp/lua_codegen/temp/network_adapter/_model.json] Error 1 make[3]: Leaving directory '/home/workspace/network_adapter/temp/lua_codegen/templates/apps' make[2]: *** [Makefile:12: apps] Error 2 make[2]: Leaving directory '/home/workspace/network_adapter/temp/lua_codegen/templates' make[1]: *** [Makefile:68: gen] Error 2 make[1]: Leaving directory '/home/workspace/network_adapter/temp/lua_codegen' make: *** [Makefile:25: gen] Error 2 ERROR: 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 159, in gen gen.run() File "/usr/local/lib/python3.12/dist-packages/bmcgo/component/gen.py", line 110, in run self.generate_lua_run(parser, base_version) File "/usr/local/lib/python3.12/dist-packages/bmcgo/component/gen.py", line 122, in generate_lua_run codegen.gen(args) File "/usr/local/lib/python3.12/dist-packages/bmcgo/codegen/lua/codegen.py", line 164, in gen self.generate_code_run(args) File "/usr/local/lib/python3.12/dist-packages/bmcgo/codegen/lua/codegen.py", line 145, in generate_code_run subprocess.run(cmd, env=dict(os.environ, LUA_FORMAT=lua_format, LUA_CODEGEN_VERSION=str(self.version), File "/usr/lib/python3.12/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/bin/make', '-j12', 'PROJECT_NAME=network_adapter', 'TPL_DIR=/home/workspace/network_adapter/temp/lua_codegen', 'VERSION=8', 'gen']' returned non-zero exit status 2.  ERROR: Command '['/usr/bin/make', '-j12', 'PROJECT_NAME=network_adapter', 'TPL_DIR=/home/workspace/network_adapter/temp/lua_codegen', 'VERSION=8', 'gen']' returned non-zero exit status 2. ERROR: 请查看日志信息