登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
我知道了
查看详情
登录
注册
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
60
Star
30
Fork
93
Ascend
/
mind-cluster
代码
Issues
15
Pull Requests
27
Wiki
统计
流水线
服务
Gitee Pages
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
我知道了,不再自动展开
Pull Requests
/
详情
219
fix(build): add go compile args to avoid 'multiple definition of' errror
开启的
tsunarni:master
Ascend:master
tsunarni
创建于 2024-12-10 17:26
克隆/下载
HTTPS
SSH
复制
下载 Email Patch
下载 Diff 文件
我的本机环境 ```shell lscpu 架构: aarch64 CPU 运行模式: 64-bit 字节序: Little Endian CPU: 8 在线 CPU 列表: 0-7 每个核的线程数: 1 每个座的核数: 8 座: 1 NUMA 节点: 1 厂商 ID: HiSilicon 型号: 0 型号名称: Kunpeng-920 步进: 0x1 BogoMIPS: 200.00 NUMA 节点0 CPU: 0-7 Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Spec store bypass: Vulnerable Vulnerability Spectre v1: Mitigation; __user pointer sanitization Vulnerability Spectre v2: Not affected Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected 标记: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm ``` 我在本机构建 ascend-device-plugin 的时候报错了 ```shell # bash ./build/build.sh # Ascend-device-plugin /home/XXX/go/pkg/tool/linux_arm64/link: running gcc failed: exit status 1 /usr/bin/gcc -s -Wl,-z,relro -pie -o $WORK/b001/exe/a.out -rdynamic -Wl,--compress-debug-sections=zlib /tmp/go-link-3317138843/go.o /tmp/go-link-3317138843/000000.o /tmp/go-link-3317138843/000001.o /tmp/go-link-3317138843/000002.o /tmp/go-link-3317138843/000003.o /tmp/go-link-3317138843/000004.o /tmp/go-link-3317138843/000005.o /tmp/go-link-3317138843/000006.o /tmp/go-link-3317138843/000007.o /tmp/go-link-3317138843/000008.o /tmp/go-link-3317138843/000009.o /tmp/go-link-3317138843/000010.o /tmp/go-link-3317138843/000011.o /tmp/go-link-3317138843/000012.o /tmp/go-link-3317138843/000013.o /tmp/go-link-3317138843/000014.o /tmp/go-link-3317138843/000015.o /tmp/go-link-3317138843/000016.o /tmp/go-link-3317138843/000017.o /tmp/go-link-3317138843/000018.o /tmp/go-link-3317138843/000019.o /tmp/go-link-3317138843/000020.o /tmp/go-link-3317138843/000021.o /tmp/go-link-3317138843/000022.o /tmp/go-link-3317138843/000023.o /tmp/go-link-3317138843/000024.o -O2 -g -ldl -O2 -g -lresolv -O2 -g -lpthread -O2 -g -Wl,-z,relro,-z,now,-z,noexecstack /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x140): multiple definition of `dcmiHandle'; /tmp/go-link-3317138843/000000.o:(.bss+0x140): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x138): multiple definition of `dcmi_init_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x138): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x130): multiple definition of `dcmi_get_card_num_list_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x130): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x128): multiple definition of `dcmi_get_device_num_in_card_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x128): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x120): multiple definition of `dcmi_get_device_logic_id_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x120): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x118): multiple definition of `dcmi_create_vdevice_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x118): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x110): multiple definition of `dcmi_get_device_info_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x110): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x108): multiple definition of `dcmi_set_destroy_vdevice_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x108): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x100): multiple definition of `dcmi_get_device_type_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x100): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0xf8): multiple definition of `dcmi_get_device_health_func'; /tmp/go-link-3317138843/000000.o:(.bss+0xf8): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0xf0): multiple definition of `dcmi_get_device_utilization_rate_func'; /tmp/go-link-3317138843/000000.o:(.bss+0xf0): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0xe8): multiple definition of `dcmi_get_device_temperature_func'; /tmp/go-link-3317138843/000000.o:(.bss+0xe8): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0xe0): multiple definition of `dcmi_get_device_voltage_func'; /tmp/go-link-3317138843/000000.o:(.bss+0xe0): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0xd8): multiple definition of `dcmi_get_device_power_info_func'; /tmp/go-link-3317138843/000000.o:(.bss+0xd8): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0xd0): multiple definition of `dcmi_get_device_frequency_func'; /tmp/go-link-3317138843/000000.o:(.bss+0xd0): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0xc8): multiple definition of `dcmi_get_device_memory_info_v3_func'; /tmp/go-link-3317138843/000000.o:(.bss+0xc8): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0xc0): multiple definition of `dcmi_get_device_hbm_info_func'; /tmp/go-link-3317138843/000000.o:(.bss+0xc0): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0xb8): multiple definition of `dcmi_get_device_errorcode_v2_func'; /tmp/go-link-3317138843/000000.o:(.bss+0xb8): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0xb0): multiple definition of `dcmi_get_device_chip_info_func'; /tmp/go-link-3317138843/000000.o:(.bss+0xb0): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0xa8): multiple definition of `dcmi_get_device_phyid_from_logicid_func'; /tmp/go-link-3317138843/000000.o:(.bss+0xa8): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0xa0): multiple definition of `dcmi_get_device_logicid_from_phyid_func'; /tmp/go-link-3317138843/000000.o:(.bss+0xa0): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x98): multiple definition of `dcmi_get_device_ip_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x98): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x90): multiple definition of `dcmi_get_device_network_health_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x90): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x88): multiple definition of `dcmi_get_card_list_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x88): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x80): multiple definition of `dcmi_get_device_id_in_card_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x80): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x78): multiple definition of `dcmi_get_memory_info_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x78): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x70): multiple definition of `dcmi_get_device_errorcode_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x70): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x68): multiple definition of `dcmi_get_card_id_device_id_from_logicid_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x68): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x60): multiple definition of `dcmi_mcu_get_power_info_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x60): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x58): multiple definition of `dcmi_get_product_type_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x58): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x50): multiple definition of `dcmi_set_device_reset_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x50): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x48): multiple definition of `dcmi_get_device_boot_status_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x48): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x40): multiple definition of `dcmi_subscribe_fault_event_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x40): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x38): multiple definition of `dcmi_get_npu_work_mode_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x38): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x30): multiple definition of `dcmi_get_device_die_v2_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x30): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x28): multiple definition of `dcmi_get_device_resource_info_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x28): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x20): multiple definition of `dcmi_get_device_pcie_info_v2_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x20): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x18): multiple definition of `dcmi_get_device_board_info_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x18): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x10): multiple definition of `dcmi_get_pcie_link_bandwidth_info_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x10): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x8): multiple definition of `dcmi_get_dcmi_version_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x8): first defined here /usr/bin/ld: /tmp/go-link-3317138843/000001.o:(.bss+0x0): multiple definition of `dcmi_get_device_ecc_info_func'; /tmp/go-link-3317138843/000000.o:(.bss+0x0): first defined here collect2: 错误:ld 返回 1 ``` [StackOverflow](https://stackoverflow.com/questions/56318343/golang-multiple-definition-of-cgo-ported-package) 上有回答解决这个问题,修改之后可以编译出来。
此 Pull Request 需要通过一些审核项
类型
指派人员
状态
审查
lirui238
edmund_hu
李鸣沼
Wangmin362
wsy
wangjun
chenyuanming007
Atlas_zxp
YangLei
chengjunhua
weihaoran
luxiang6
fengjianqing
wuweilin
dongpeng30
chentian
wangzihao
Lianjun Zhang Atlas
tiankaijin
lijinghan
zhoupan39
已完成
(0/0人)
测试
edmund_hu
已完成
(0/0人)
此 Pull Request 可以被系统自动合并 ,目标分支为保护分支,您没有合并权限
怎样手动合并此 Pull Request
git checkout master
git pull https://gitee.com/tsunarni/mindxdl.git master
git push origin master
评论
6
提交
1
文件
1
检查
代码问题
0
批量操作
展开设置
折叠设置
审查
Code Owner
审查人员
sulvy
sulvy
xiapeng0828
xiapeng0828_admin
mkn
maokn
HarveyXu
harvey_xu10
秃笔
bald-pen
陈铁中
chen-tiezhong
AlstoX
alston_xiao
yyf
yyf19980321
chengjunhua
daisycc
weihaoran
Ramonaaaaa
Atlas_zxp
shepherd_cheung
fengjianqing
feng-jianqing
chentian
chentian007
wangjun
peter-jun
dongpeng30
dongpeng30
tiankaijin
tiankaijin
lirui238
lirui238
wsy
getee0506
李鸣沼
lmztju
Lianjun Zhang Atlas
lianjun-zhang
YangLei
yang-lei_1_0
zhoupan39
zhoupan39
lijinghan
lijinghan1
longwanbin
spangebobo
吴智浩
wuzhihao9612
李航程
cgg_705328646
tangmin
sdf321
杨佑川
yangyouchuan
yangxiaojun0126
yangxiaojun0126
beanddd
beanddd
lvzeyi
lvzeyi
wangtianyu
wangtianyulyoko
WangZihe
AzGewhin961224
YeForWork
yeforwork
youngzhou6
youngzhou6
zhangdi
andornotfalsetrue
East_Yuan
east-yuan
Liangdong
retis
冯璞
god-feng
周长其
cqchou
郭鹏鑫
guopengxin
Atlas_kang
frankang
AdamCao
togetherwork
Wangmin362
wangmin362
孙文林
s00407150
杨鹏
yangpeng197
liujp20
liujp20
tands7
tands7
Wu,Qiang-Roy
wuqiangroy
鄢天丕
yantp
edmund_hu
edmund_hu
luxiang6
luxiang6
AtlasAccount
atlasaccount
i-robot
I-am-a-robot
majun-bot
openMajun_admin
wuweilin
easycurd
chenyuanming007
chenyuanming007
王睿驹
wang-ruiju
wangzihao
zhobb
未设置
最少人数
0
测试
sulvy
sulvy
xiapeng0828
xiapeng0828_admin
mkn
maokn
HarveyXu
harvey_xu10
秃笔
bald-pen
陈铁中
chen-tiezhong
AlstoX
alston_xiao
yyf
yyf19980321
chengjunhua
daisycc
weihaoran
Ramonaaaaa
Atlas_zxp
shepherd_cheung
fengjianqing
feng-jianqing
chentian
chentian007
wangjun
peter-jun
dongpeng30
dongpeng30
tiankaijin
tiankaijin
lirui238
lirui238
wsy
getee0506
李鸣沼
lmztju
Lianjun Zhang Atlas
lianjun-zhang
YangLei
yang-lei_1_0
zhoupan39
zhoupan39
lijinghan
lijinghan1
longwanbin
spangebobo
吴智浩
wuzhihao9612
李航程
cgg_705328646
tangmin
sdf321
杨佑川
yangyouchuan
yangxiaojun0126
yangxiaojun0126
beanddd
beanddd
lvzeyi
lvzeyi
wangtianyu
wangtianyulyoko
WangZihe
AzGewhin961224
YeForWork
yeforwork
youngzhou6
youngzhou6
zhangdi
andornotfalsetrue
East_Yuan
east-yuan
Liangdong
retis
冯璞
god-feng
周长其
cqchou
郭鹏鑫
guopengxin
Atlas_kang
frankang
AdamCao
togetherwork
Wangmin362
wangmin362
孙文林
s00407150
杨鹏
yangpeng197
liujp20
liujp20
tands7
tands7
Wu,Qiang-Roy
wuqiangroy
鄢天丕
yantp
edmund_hu
edmund_hu
luxiang6
luxiang6
AtlasAccount
atlasaccount
i-robot
I-am-a-robot
majun-bot
openMajun_admin
wuweilin
easycurd
chenyuanming007
chenyuanming007
王睿驹
wang-ruiju
未设置
最少人数
0
优先级
不指定
严重
主要
次要
不重要
标签
ci-pipeline-passed
ascend-cla/no
关联 Issue
未关联
Pull Request 合并后将关闭上述关联 Issue
里程碑
未关联里程碑
合并选项
合并后删除提交分支
提交分支为默认分支,无法删除
合并后关闭提到的 Issue
接受 Pull Request 时使用扁平化(Squash)合并
勾选此选项后,将建议使用 Squash Merge 方式合并以精简提交历史记录
参与者
(3)
Cherry-pick 提交
Cherry-pick 可以将
特定提交(Commit)
从某个分支挑选并应用到另一个分支,实现快速集成特定更改,而无需合并整个分支。
请选择应用 Cherry-pick 提交 (Commit) 的目标分支
新建分支
当前账号不存在 Fork 仓库,建议 cherry-pick 到 Fork 仓库。
Fork 仓库
提交列表
Commit SHA
Commit Message
基于 Cherry-pick 后的分支发起 Pull Request
取消
Cherry-pick
Go
1
https://gitee.com/ascend/mind-cluster.git
git@gitee.com:ascend/mind-cluster.git
ascend
mind-cluster
mind-cluster
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册