Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行结果报错 #10

Open
15034699875 opened this issue Oct 21, 2024 · 0 comments
Open

运行结果报错 #10

15034699875 opened this issue Oct 21, 2024 · 0 comments

Comments

@15034699875
Copy link

Build Architecture is aarch64

huawei.com/npu-exporter/v5/cmd/npu-exporter

/usr/local/go/pkg/tool/linux_arm64/link: running /usr/bin/gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:27: multiple definition of dcmiHandle'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:27: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:35: multiple definition of dcmi_init_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:35: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:40: multiple definition of dcmi_get_card_num_list_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:40: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:45: multiple definition of dcmi_get_device_num_in_card_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:45: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:50: multiple definition of dcmi_get_device_logic_id_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:50: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:55: multiple definition of dcmi_create_vdevice_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:55: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:62: multiple definition of dcmi_get_device_info_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:62: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:69: multiple definition of dcmi_set_destroy_vdevice_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:69: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:74: multiple definition of dcmi_get_device_type_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:74: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:79: multiple definition of dcmi_get_device_health_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:79: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:84: multiple definition of dcmi_get_device_utilization_rate_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:84: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:90: multiple definition of dcmi_get_device_temperature_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:90: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:95: multiple definition of dcmi_get_device_voltage_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:95: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:100: multiple definition of dcmi_get_device_power_info_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:100: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:105: multiple definition of dcmi_get_device_frequency_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:105: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:111: multiple definition of dcmi_get_device_memory_info_v3_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:111: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:117: multiple definition of dcmi_get_device_hbm_info_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:117: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:122: multiple definition of dcmi_get_device_errorcode_v2_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:122: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:129: multiple definition of dcmi_get_device_chip_info_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:129: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:134: multiple definition of dcmi_get_device_phyid_from_logicid_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:134: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:139: multiple definition of dcmi_get_device_logicid_from_phyid_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:139: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:144: multiple definition of dcmi_get_device_ip_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:144: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:151: multiple definition of dcmi_get_device_network_health_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:151: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:156: multiple definition of dcmi_get_card_list_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:156: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:161: multiple definition of dcmi_get_device_id_in_card_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:161: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:166: multiple definition of dcmi_get_memory_info_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:166: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:171: multiple definition of dcmi_get_device_errorcode_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:171: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:178: multiple definition of dcmi_get_card_id_device_id_from_logicid_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:178: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:183: multiple definition of dcmi_mcu_get_power_info_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:183: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:188: multiple definition of dcmi_get_product_type_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:188: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:193: multiple definition of dcmi_set_device_reset_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:193: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:198: multiple definition of dcmi_get_device_boot_status_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:198: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:208: multiple definition of dcmi_subscribe_fault_event_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:208: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:214: multiple definition of dcmi_get_npu_work_mode_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:214: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:219: multiple definition of dcmi_get_device_die_v2_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:219: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:225: multiple definition of dcmi_get_device_resource_info_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:225: first defined here
/usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:231: multiple definition of dcmi_get_device_pcie_info_v2_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:231: first defined here /usr/bin/ld: /tmp/go-link-714054377/000021.o:/root/npu-expoter/ascend-npu-exporter/devmanager/dcmi/dcmi.go:236: multiple definition of dcmi_get_device_board_info_func'; /tmp/go-link-714054377/000020.o:/tmp/go-build/dcmi.go:236: first defined here
collect2: error: ld returned 1 exit status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant