Skip to content

error: "undefined symbol " when import "containerd" package #18

@xiaozhouX

Description

@xiaozhouX

We have a Golang application use github.com/NVIDIA/go-nvml/pkg/nvml. After import containerd package, the application will shutdown and throw an error symbol lookup error.

I write a sample, which trigger the same error:

package main

import (
	"github.com/NVIDIA/go-nvml/pkg/nvml"
	"github.com/containerd/containerd"
)

func main() {
	_, err := containerd.New(".....")
	if err != nil {
		println("containerd new err", err.Error())
		return
	}
	ret := nvml.Init()
	if ret != nvml.SUCCESS {
		println("Unable to initialize NVML: %v", nvml.ErrorString(ret))
	}
	return
}

Then the error show up:
symbol lookup error: /app/test : undefined symbol: nvmlGpuInstanceGetComputeInstanceById

Same as issue:
#137

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions