Wont compile
jasonrichardsmith opened this issue · 4 comments
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
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.
go version go1.2.1 linux/amd64
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).
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" .