8 Star 1 Fork 30

src-openEuler / pytorch

 / 详情

pytorch build problem in openEuler:Mainline

已完成
缺陷
创建于  
2023-02-02 10:53

评论 (5)

魔箭胖胖 创建了缺陷

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

openeuler-ci-bot 添加了
 
sig/ai
标签
魔箭胖胖 修改了标题
魔箭胖胖 负责人设置为sinever

编译用的是哪个分支的spec,另外选用的openeuler是什么版本?

主干分支 编译基础环境中 /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

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
5329419 openeuler ci bot 1632792936 2234080 mementomoricheng 1578969378
1
https://gitee.com/src-openeuler/pytorch.git
git@gitee.com:src-openeuler/pytorch.git
src-openeuler
pytorch
pytorch

搜索帮助

53164aa7 5694891 3bd8fe86 5694891