On 2015/08/06 13:58, Rolf Sommerhalder wrote: > > I'll try to build go "manually" as per [1] now, just to compare its > > binary output with the package build process, and see if GO386=387 has > > an effect. > > > > [1] https://golang.org/doc/install/source > > The resulting binary of this manual build still has some SSE2 code > with XMM registers, though much less than with the package build with > 'MAKE_ENV += GO386=387' :
I would expect some, as there's definitely code to do runtime detection. > git clone https://go.googlesource.com/go > cd go > git checkout go1.4.1 > cd src > GO386=387 GOARCH=386 ./make.bash > objdump -d /home/rs/goFromSource/go/bin/go | grep xmm > > So 'GO386=387' appears to have an impact in the manual build, and most > checks still pass ok. > > The good news is, that simply scp /home/rs/goFromSource/go/bin/go from > the i386 build host with SSE2/3 over to the ALIX, the go binary works > without SIGILL :-) > > Will need to figure out what I still miss in the package build (I had > done 'make clean=all' before 'make package') ... I'll see if I can figure something out.