// +build amd64,solaris
package unix
/*
*/
import "C"
$ go test
./asm.s: Assembler messages:
./asm.s:9: Error: no such instruction: `text ·use(SB),NOSPLIT,$0'
FAIL golang.org/x/sys/unix [build failed]
When I look at x/sys/unix/asm.s, line 9 is slightly different from what is in the error message
TEXT ·use(SB),NOSPLIT,$0
I don't know why the error message has "text" in lower case when the source file has it in upper case. I have tried specifying -v -x and -work in order to see what might be happening.
$ go test -v -x -work
WORK=/tmp/go-build126758309
mkdir -p $WORK/golang.org/x/sys/unix/_test/golang.org/x/sys/
mkdir -p $WORK/golang.org/x/sys/unix/_test/_obj_test/
cd /export/home/kim/go_stuff/sub_repos/go_master/src/golang.org/x/sys/unix
CGO_LDFLAGS="-g" "-O2" /usr/local/go_master/pkg/tool/solaris_amd64/cgo -objdir $WORK/golang.org/x/sys/unix/_test/_obj_test/ -importpath golang.org/x/sys/unix -- -I $WORK/golang.org/x/sys/unix/_test/_obj_test/ attr_solaris.go
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -print-libgcc-file-name
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/golang.org/x/sys/unix/_test/_obj_test/ -g -O2 -o $WORK/golang.org/x/sys/unix/_test/_obj_test/_cgo_main.o -c $WORK/golang.org/x/sys/unix/_test/_obj_test/_cgo_main.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/golang.org/x/sys/unix/_test/_obj_test/ -g -O2 -o $WORK/golang.org/x/sys/unix/_test/_obj_test/_cgo_export.o -c $WORK/golang.org/x/sys/unix/_test/_obj_test/_cgo_export.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/golang.org/x/sys/unix/_test/_obj_test/ -g -O2 -o $WORK/golang.org/x/sys/unix/_test/_obj_test/attr_solaris.cgo2.o -c $WORK/golang.org/x/sys/unix/_test/_obj_test/attr_solaris.cgo2.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/golang.org/x/sys/unix/_test/_obj_test/ -g -O2 -o $WORK/golang.org/x/sys/unix/_test/_obj_test/asm.o -c ./asm.s
./asm.s: Assembler messages:
./asm.s:9: Error: no such instruction: `text ·use(SB),NOSPLIT,$0'
$WORK/golang.org/x/sys/unix/_test/unix.test -test.v=true
FAIL golang.org/x/sys/unix [build failed]
It appears to be using the asm.s file that already exists in x/sys/unix and not using a generated one so I am at a loss as to why the case of "text" is not upper case.
I actually had some Go code in attr_solaris.go originally and it showed the exact same symptoms. I have reduced the code to the smallest sample that still shows the problem.
Am I doing something wrong or is there a bug in the toolchain?
Kim
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.