Re: [go-nuts] Failed to cross compile go program

2016-10-09 Thread Jonathan Yu
Looks like this might be related to https://github.com/golang/go/issues/16499 - what version of go are you using, and what's your target processor? (Does it support AVX2 at all? I wonder if the code assumes the instruction to be available rather than doing a feature check of some sort) On Sun, Oct

[go-nuts] Failed to cross compile go program

2016-10-09 Thread Peng Gao
When I run this command GOOS=linux GOARCH=amd64 go build I got this error # crypto/sha256 asm: invalid instruction: 10572 (/Users/mike/workplace/go/src/crypto/sha256/sha256block_amd64.s:733) VPSHUFD $250, Y7, Y2 asm: invalid instruction: 11157 (/Users/mike/workplace/go/src/crypto/sha256/sha