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

Error 'cannot use rackHDInstancePlugin literal ...' #2

Open
hn826 opened this issue Jul 19, 2017 · 1 comment
Open

Error 'cannot use rackHDInstancePlugin literal ...' #2

hn826 opened this issue Jul 19, 2017 · 1 comment

Comments

@hn826
Copy link

hn826 commented Jul 19, 2017

Hello

I am trying to build infrakit.rackhd.
As a result of executing the make binaries command, I encountered a title error.

My environment and build procedure are shown below. Any idea what I missed?

Environment:

# go version
go version go1.8.3 linux/amd64
# go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build539747196=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"

Build procedure:

# pwd
/root/go/src/github.com/codedellemc
# git clone https://github.com/codedellemc/infrakit.rackhd
# cd infrakit.rackhd/plugin/instance/cmd/
# go get -v -d
# cd ../../../
# pwd
/root/go/src/github.com/codedellemc/infrakit.rackhd
# make binaries
+ clean
rm -rf build
mkdir -p build
+ build-binaries
go build -o build/infrakit-instance-rackhd -ldflags "-X github.com/codedellemc/infrakit.rackhd/plugin.Version=f79a381 -X github.com/codedellemc/infrakit.rackhd/plugin.Revision=f79a381d2ca7ca098d49b442b6f8571e4b74ab85" github.com/codedellemc/infrakit.rackhd/plugin/instance/cmd
# github.com/codedellemc/infrakit.rackhd/plugin/instance
plugin/instance/instance.go:35: cannot use rackHDInstancePlugin literal (type rackHDInstancePlugin) as type instance.Plugin in return argument:
        rackHDInstancePlugin does not implement instance.Plugin (wrong type for Destroy method)
                have Destroy(instance.ID) error
                want Destroy(instance.ID, instance.Context) error
make: *** [build-binaries] Error 2

Thanks

@spiegela
Copy link
Contributor

spiegela commented Jul 20, 2017 via email

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

2 participants