On 2017-07-08 04:44, Anthony Fok wrote: > Hello, > > Seeing the latest build log at: > > > https://buildd.debian.org/status/logs.php?pkg=golang-golang-x-tools&arch=s390x > > It seems that golang-golang-x-tools is experiencing "SIGILL: illegal > instruction" during the "go test" run on s390x on zemlinsky, even it > is using the supposedly z10-compatible gccgo-7. > > The same tests ran perfectly when I tested the package on zelenka > s390x porterbox. > > gb golang-golang-x-tools_1:0.0~git20170707.0.bce9606b+ds-1 . s390x > > Many thanks! > > Side discussion: I don't know if it is an isolated incident or not, > and whether it is easy to patch/workaround, but if gccgo-7 and beyond > are not backward compatible with z10 CPU instructions, perhaps we > should eventually switch back to using the golang-go as default for > s390x?
It's due to a gratuitous -march=z196 added in gccgo. That should be fixed in the next upload of gcc-7 [1]. Aurelien [1] https://anonscm.debian.org/viewvc/gcccvs/branches/sid/gcc-7/debian/patches/libgo-s390x-default-isa.diff?revision=9581&view=markup -- Aurelien Jarno GPG: 4096R/1DDD8C9B [email protected] http://www.aurel32.net
