Hi MementoMoriCheng, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: ai, and any of the maintainers: @sinever , @bbking , @zhunaipan , @guoqi , @kingxian , @yanghaoran , @Henry Shi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
主干分支 编译基础环境中 /usr/include/linux/ethtool.h 新增的结构体定义问题
/usr/include/linux/ethtool.h
In file included from /home/abuild/rpmbuild/BUILD/pytorch-v1.11.0/third_party/gloo/gloo/common/linux.cc:15:
[ 108s] /usr/include/linux/ethtool.h: In function ‘int gloo::getInterfaceSpeedGLinkSettings(int, ifreq*)â€:
[ 108s] /usr/include/linux/ethtool.h:2147:8: error: flexible array member ‘ethtool_link_settings::link_mode_masks†not at end of ‘struct gloo::getInterfaceSpeedGLinkSettings(int, ifreq*)::â€
[ 108s] 2147 | __u32 link_mode_masks[];
[ 108s] | ^~~~~~~~~~~~~~~
[ 108s] /home/abuild/rpmbuild/BUILD/pytorch-v1.11.0/third_party/gloo/gloo/common/linux.cc:192:11: note: next member ‘__u32 gloo::getInterfaceSpeedGLinkSettings(int, ifreq*)::::link_mode_data [381]†declared here
[ 108s] 192 | __u32 link_mode_data[link_mode_data_nwords];
[ 108s] | ^~~~~~~~~~~~~~
[ 108s] /home/abuild/rpmbuild/BUILD/pytorch-v1.11.0/third_party/gloo/gloo/common/linux.cc:190:10: note: in the definition of ‘struct gloo::getInterfaceSpeedGLinkSettings(int, ifreq*)::â€
[ 108s] 190 | struct {
[ 108s] | ^
异常:__u32 link_mode_masks[]; 这个数组没有给定数组大小,而这个可变长的成员又不是所属结构体的最后一个成员,故此编译报错了
编译用的是哪个分支的spec,另外选用的openeuler是什么版本?
@大漠行舟 master分支spec
登录 后才可以发表评论