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

Wont compile #28

Open
jasonrichardsmith opened this issue May 17, 2015 · 4 comments
Open

Wont compile #28

jasonrichardsmith opened this issue May 17, 2015 · 4 comments

Comments

@jasonrichardsmith
Copy link

Every time I try to compile I get this issue. I am not using the below package but it looks like you are.

github.com/ugorji/go/codec

../../ugorji/go/codec/encode.go:533: undefined: sync.Pool
../../ugorji/go/codec/encode.go:1219: undefined: sync.Pool

@matryer
Copy link
Member

matryer commented May 17, 2015

What version of Go are you using?

Sent from my iPhone

On 17 May 2015, at 02:23, Jason Smith notifications@github.com wrote:

Every time I try to compile I get this issue. I am not using the below package but it looks like you are.

github.com/ugorji/go/codec

../../ugorji/go/codec/encode.go:533: undefined: sync.Pool
../../ugorji/go/codec/encode.go:1219: undefined: sync.Pool


Reply to this email directly or view it on GitHub.

@jasonrichardsmith
Copy link
Author

go version go1.2.1 linux/amd64

@matryer
Copy link
Member

matryer commented May 18, 2015

sync.Pool was introduced in Go 1.3.

The simplest solution is to upgrade to the latest version of Go. Which is 1.4.2.

On 17 May 2015, at 13:34, Jason Smith notifications@github.com wrote:

go version go1.2.1 linux/amd64


Reply to this email directly or view it on GitHub #28 (comment).

@mxjxn
Copy link

mxjxn commented Oct 22, 2015

I had this same problem and then i upgraded to 1.5.1and now i have the following error. anyone have some insight?

../../stretchr/codecs/msgpack/msgpack_codec.go:5: import /root/go/pkg/linux_386/github.com/stretchr/codecs/constants.a: object is [linux 386 go1.2.1 X:none] expected [linux 386 go1.5.1 X:none]

followup: after downgrading to 1.3.1, i'm still getting the error. so im currently choosing from this compile error, or OP's compile error!

2nd followup: i am completely avoiding these problems by using "go build -a" .

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

3 participants