golang / snappy

The Snappy compression format in the Go programming language.
BSD 3-Clause "New" or "Revised" License
1.52k stars 163 forks source link

asm: invalid instruction #31

Closed serejja closed 8 years ago

serejja commented 8 years ago

Hi,

this is a follow-up to #30. The same build but for golang 1.6 fails for another reason:

# github.com/golang/snappy
asm: invalid instruction: 00228 (/home/travis/gopath/src/github.com/golang/snappy/encode_amd64.s:338)   MOVWQZX table+120(SP)(R11*2), R15
asm: invalid instruction: 00234 (/home/travis/gopath/src/github.com/golang/snappy/encode_amd64.s:343)   MOVW    AX, table+120(SP)(R11*2)
asm: invalid instruction: 00589 (/home/travis/gopath/src/github.com/golang/snappy/encode_amd64.s:506)   MOVW    AX, table+120(SP)(R11*2)
asm: invalid instruction: 00606 (/home/travis/gopath/src/github.com/golang/snappy/encode_amd64.s:515)   MOVWQZX table+120(SP)(R11*2), R15
asm: invalid instruction: 00610 (/home/travis/gopath/src/github.com/golang/snappy/encode_amd64.s:519)   MOVW    AX, table+120(SP)(R11*2)
asm: asm: assembly of ../../golang/snappy/encode_amd64.s failed

Full log is located here, with the error message starting on line 348 - https://gist.github.com/serejja/b0c40abc844ab4ce1c8630afa988e3bb

Just to provide a bit more info (which is in that log anyway):

  1. go version go1.4 linux/amd64
  2. Ubuntu 12.04.5 LTS, 3.13.0-29-generic
  3. gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

Please let me know if this is not related to golang/snappy itself and I should open a ticket on Travis CI. Thanks!

dimchansky commented 8 years ago

The same here for commit: https://github.com/golang/snappy/commit/2dbf36527785b61dd460e053f008abafbce9380b

# github.com/golang/snappy
asm: invalid instruction: 00235 (G:\Work\My\Go\src\github.com\golang\snappy\encode_amd64.s:338) MOVWQZX table+120(SP)(R11*2), R15
asm: invalid instruction: 00241 (G:\Work\My\Go\src\github.com\golang\snappy\encode_amd64.s:343) MOVW    AX, table+120(SP)(R11*2)
asm: invalid instruction: 00596 (G:\Work\My\Go\src\github.com\golang\snappy\encode_amd64.s:506) MOVW    AX, table+120(SP)(R11*2)
asm: invalid instruction: 00613 (G:\Work\My\Go\src\github.com\golang\snappy\encode_amd64.s:515) MOVWQZX table+120(SP)(R11*2), R15
asm: invalid instruction: 00617 (G:\Work\My\Go\src\github.com\golang\snappy\encode_amd64.s:519) MOVW    AX, table+120(SP)(R11*2)
asm: asm: assembly of github.com\golang\snappy\encode_amd64.s failed

go version go1.6.2 windows/amd64

peterbourgon commented 8 years ago

Another instance of the failure here.

$ go build ./...
# github.com/golang/snappy
asm: invalid instruction: 00228 (/home/ubuntu/src/github.com/golang/snappy/encode_amd64.s:338)  MOVWQZX table+120(SP)(R11*2), R15
asm: invalid instruction: 00234 (/home/ubuntu/src/github.com/golang/snappy/encode_amd64.s:343)  MOVW    AX, table+120(SP)(R11*2)
asm: invalid instruction: 00589 (/home/ubuntu/src/github.com/golang/snappy/encode_amd64.s:506)  MOVW    AX, table+120(SP)(R11*2)
asm: invalid instruction: 00606 (/home/ubuntu/src/github.com/golang/snappy/encode_amd64.s:515)  MOVWQZX table+120(SP)(R11*2), R15
asm: invalid instruction: 00610 (/home/ubuntu/src/github.com/golang/snappy/encode_amd64.s:519)  MOVW    AX, table+120(SP)(R11*2)
asm: asm: assembly of ../../golang/snappy/encode_amd64.s failed

68801229512d42e123097d5e505e89ea3f4397cc is the first bad commit

cespare commented 8 years ago

Duplicate of #29.

micro-business commented 8 years ago

Same failure here:

https://travis-ci.org/microbusinesses/UserService/builds/125206062

I temporary fixed it by copying the output of Godep in my other repo, so the golang picks the local one instead.

nigeltao commented 8 years ago

Yeah, duplicate of #29.