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 9, 2016, 03:20 Peng Gao <peng.gao....@gmail.com> wrote: > 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/sha256block_amd64.s:741) > VPSHUFD $250, Y4, Y2 > asm: invalid instruction: 11736 > (/Users/mike/workplace/go/src/crypto/sha256/sha256block_amd64.s:749) > VPSHUFD $250, Y5, Y2 > asm: invalid instruction: 12321 > (/Users/mike/workplace/go/src/crypto/sha256/sha256block_amd64.s:757) > VPSHUFD $250, Y6, Y2 > asm: assembly of > ../../../../../../go/src/crypto/sha256/sha256block_amd64.s failed > > what's the reason? > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Jonathan Yu / *@jawnsy* on LinkedIn <https://linkedin.com/in/jawnsy>, Twitter <https://twitter.com/jawnsy>, GitHub <https://github.com/jawnsy>, Facebook <https://facebook.com/jawnsy> *“Ever tried. Ever failed. No matter. Try again. Fail again. Fail better.”* — Samuel Beckett, Worstward Ho (1983) “In an adaptive environment, winning comes from adapting to change by continuously experimenting and identifying new options more quickly and economically than others. The classical strategist's mantra of sustainable competitive advantage becomes one of serial temporary advantage.” — Navigating the Dozens of Different Strategy Options <https://hbr.org/2015/06/navigating-the-dozens-of-different-strategy-options> (HBR) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.