dcgm-exporter icon indicating copy to clipboard operation
dcgm-exporter copied to clipboard

Conflicting Symbol Declarations in DCGM Exporter Setup

Open Mrhudson69 opened this issue 4 months ago • 4 comments

While setting up DCGM exporter I am getting a issue looks like something is conflciting I am not sure this is code side or not long time ago I have setup on other machines its working fine Now I am setting up in the new machine but got this issue -

root@imaging-dev2:/home/rohan-sirohi/dcgm-exporter# make binary
cd cmd/dcgm-exporter; go build -ldflags "-X main.BuildVersion=3.3.5-3.4.0"
# runtime/internal/sys
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:9:5: len8tab redeclared in this block
        /usr/local/go/src/runtime/internal/sys/intrinsics.go:76:7: other declaration of len8tab
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:28:5: ntz8tab redeclared in this block
        /usr/local/go/src/runtime/internal/sys/intrinsics.go:25:7: other declaration of ntz8tab
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:48:6: Len64 redeclared in this block
        /usr/local/go/src/runtime/internal/sys/intrinsics.go:99:6: other declaration of Len64
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:66:7: m0 redeclared in this block
        /usr/local/go/src/runtime/internal/sys/intrinsics.go:117:7: other declaration of m0
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:67:7: m1 redeclared in this block
        /usr/local/go/src/runtime/internal/sys/intrinsics.go:118:7: other declaration of m1
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:68:7: m2 redeclared in this block
        /usr/local/go/src/runtime/internal/sys/intrinsics.go:119:7: other declaration of m2
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:71:6: OnesCount64 redeclared in this block
        /usr/local/go/src/runtime/internal/sys/intrinsics.go:122:6: other declaration of OnesCount64
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:101:5: deBruijn64tab redeclared in this block
        /usr/local/go/src/runtime/internal/sys/intrinsics.go:16:5: other declaration of deBruijn64tab
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:108:7: deBruijn64 redeclared in this block
        /usr/local/go/src/runtime/internal/sys/intrinsics.go:23:7: other declaration of deBruijn64
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:111:6: TrailingZeros64 redeclared in this block
        /usr/local/go/src/runtime/internal/sys/intrinsics.go:53:6: other declaration of TrailingZeros64
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:111:6: too many errors
make: *** [Makefile:30: binary] Error 1

Go Version

root@imaging-dev2:/home/rohan-sirohi/dcgm-exporter# go version
go version go1.21.7 linux/386

DCGMI

root@imaging-dev2:/home/rohan-sirohi/dcgm-exporter# dcgmi modules -l
+-----------+--------------------+--------------------------------------------------+
| List Modules                                                                      |
| Status: Success                                                                   |
+===========+====================+==================================================+
| Module ID | Name               | State                                            |
+-----------+--------------------+--------------------------------------------------+
| 0         | Core               | Loaded                                           |
| 1         | NvSwitch           | Loaded                                           |
| 2         | VGPU               | Not loaded                                       |
| 3         | Introspection      | Not loaded                                       |
| 4         | Health             | Not loaded                                       |
| 5         | Policy             | Not loaded                                       |
| 6         | Config             | Not loaded                                       |
| 7         | Diag               | Not loaded                                       |
| 8         | Profiling          | Not loaded                                       |
| 9         | SysMon             | Failed to load                                   |
+-----------+--------------------+--------------------------------------------------+
root@coolr-imaging-dev2:/home/rohan-sirohi/dcgm-exporter#

Mrhudson69 avatar Mar 05 '24 12:03 Mrhudson69

Can you tell us more about your environment? We don't see such an error.

nvvfedorov avatar Mar 08 '24 23:03 nvvfedorov

@Mrhudson69 , Do you have any updates?

nvvfedorov avatar Mar 15 '24 22:03 nvvfedorov

@Mrhudson69 , Do you have any updates?

Yes I will share with you today.

Mrhudson69 avatar Mar 16 '24 01:03 Mrhudson69

@Mrhudson69 , Do you have any updates?

OS Details

root@coolr-imaging-dev2:/home/rohan-sirohi/dcgm-exporter# cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

arch

Linux coolr-imaging-dev2 6.5.0-21-generic #21~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb  9 13:32:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Printenv

root@coolr-imaging-dev2:/home/rohan-sirohi/dcgm-exporter# printenv
SHELL=/bin/bash
SUDO_GID=1001
SUDO_COMMAND=/usr/bin/su
SUDO_USER=rohan-sirohi
PWD=/home/rohan-sirohi/dcgm-exporter
LOGNAME=root
HOME=/root
LANG=en_US.UTF-8
LS_COLORS= some colors
GOROOT=/usr/local/go
LESSCLOSE=/usr/bin/lesspipe %s %s
TERM=xterm-256color
LESSOPEN=| /usr/bin/lesspipe %s
USER=root
SHLVL=1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/root/.go/bin
SUDO_UID=1001
MAIL=/var/mail/root
OLDPWD=/home/rohan-sirohi
GOPATH=/root/.go
_=/usr/bin/printenv

Graphics Card

root@coolr-imaging-dev2:/home/rohan-sirohi/dcgm-exporter# nvidia-smi
Sat Mar 16 20:25:00 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.23.08              Driver Version: 545.23.08    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 4090        On  | 00000000:01:00.0 Off |                  Off |
|  0%   36C    P8              41W / 480W |   5015MiB / 24564MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1065      G   /usr/lib/xorg/Xorg                           56MiB |
|    0   N/A  N/A      1183      G   /usr/bin/gnome-shell                         12MiB |
|    0   N/A  N/A    332751      C   /usr/local/bin/ollama                       660MiB |
|    0   N/A  N/A    486820      C   /data/venv_d2/bin/python3                  4264MiB |
+---------------------------------------------------------------------------------------+

Display

root@coolr-imaging-dev2:/home/rohan-sirohi/dcgm-exporter# sudo lshw -C display
  *-display
       description: VGA compatible controller
       product: NVIDIA Corporation
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: iomemory:400-3ff iomemory:400-3ff irq:223 memory:84000000-84ffffff memory:4000000000-400fffffff memory:4010000000-4011ffffff ioport:6000(size=128) memory:85000000-8507ffff
  *-graphics
       product: EFI VGA
       physical id: 2
       logical name: /dev/fb0
       capabilities: fb
       configuration: depth=32 resolution=1920,1080

Mrhudson69 avatar Mar 17 '24 00:03 Mrhudson69