Skip to content
This repository has been archived by the owner on Mar 28, 2018. It is now read-only.

I can't compile in xubuntu #998

Open
pipul opened this issue Jun 19, 2017 · 2 comments
Open

I can't compile in xubuntu #998

pipul opened this issue Jun 19, 2017 · 2 comments
Labels

Comments

@pipul
Copy link

pipul commented Jun 19, 2017

proxy/protocol.go:23:2: cannot find package "github.com/01org/cc-oci-runtime/proxy/api" in any of:
/home/test/go/src/github.com/01org/cc-oci-runtime/proxy/api (from $GOROOT)
/home/test/go/bin/src/github.com/01org/cc-oci-runtime/proxy/api (from $GOPATH)
Makefile:5296: recipe for target 'cc-proxy' failed
make[1]: *** [cc-proxy] Error 1
make[1]: Leaving directory '/home/test/work/cc-oci-runtime'
Makefile:1682: recipe for target 'all' failed
make: *** [all] Error 2

$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/test/go/bin"
GORACE=""
GOROOT="/home/test/go"
GOTOOLDIR="/home/test/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build342346129=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

$ go version
go version go1.7.6 linux/amd64

@dlespiau
Copy link
Contributor

Hi,

Try cloning the repository in home/test/go/bin/src/github.com/01org/cc-oci-runtime instead. Because the proxy is in Go it's easier if the cc-oci-runtime is in the GOPATH.

HTH,

@jcvenegas
Copy link
Contributor

jcvenegas commented Jun 19, 2017

you can also do ./autogen.sh --enable-autogopath to let build tools setup a local a gopath enviroment for you

@egernst egernst added the CC 2.1 label Jul 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants