Receive 'illegal instruction' fault running Hyperledger Fabric "Build your first network" sample -
i attempting run "build first network" sample , receiving "illegal instruction" fault running hyperledger fabric v1.0.1:
./byfn.sh -m generate generating certs , genesis block channel 'mychannel' , cli timeout of '10000' continue (y/n)? y proceeding ... /tjr/bin/cryptogen ########################################################## ##### generate certificates using cryptogen tool ######### ########################################################## org1.example.com sigill: illegal instruction pc=0x64d1af m=0 goroutine 1 [running]: crypto/sha256.block(0xc42009e880, 0xc4200572c0, 0x40, 0x41) /opt/go/go1.7.linux.amd64/src/crypto/sha256/sha256block_amd64.s:733 +0x286f fp=0xc4200e2818 sp=0xc4200e25f0 crypto/sha256.(*digest).write(0xc42009e880, 0xc4200572c0, 0x41, 0x41, 0xc4200572c0, 0x41, 0x41) /opt/go/go1.7.linux.amd64/src/crypto/sha256/sha256.go:119 +0x120 fp=0xc4200e2860 sp=0xc4200e2818 github.com/hyperledger/fabric/bccsp/sw.(*ecdsaprivatekey).ski(0xc4200282c0, 0x415168, 0x8, 0x6c13c0)
h/t gari singh
unfortunately, looks you've run following golang issue: https://github.com/golang/go/issues/18512 . news issue has been fixed. (somewhat) bad news not fixed in go 1.7.x (which used compile binaries).
you can build binaries locally using golang 1.8 or later.
note problem resolve when fab-5461 merged - v1.1.
Comments
Post a Comment