New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
./hello displays Illegal instruction using hg update default on ARM CPU based CISCO Linksys NSLU2 #3645
Labels
Comments
A Go program with the correct syntax does not give the message: Hello, There was a problem with the Go program I was using, once corrected it works: rounin@LKG80B859:~$ cat -n hello.go 1 package main 2 3 import "fmt" 4 5 func main() { 6 fmt.Println("hello, world\n") 7 } 8 rounin@LKG80B859:~$ time go run hello.go hello, world real 0m56.242s user 0m14.750s sys 0m3.580s rounin@LKG80B859:~$ time go build hello.go real 0m42.696s user 0m11.090s sys 0m3.730s rounin@LKG80B859:~$ lt hello -rwxr-xr-x 1 rounin rounin 914790 May 19 15:41 hello rounin@LKG80B859:~$ file hello hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, not stripped rounin@LKG80B859:~$ ./hello hello, world rounin@LKG80B859:~$ The remaining/outstanding issue is now: testing/quick # Testing packages. sfloat2 0x71924 0x159fb010 Unsupported floating point instruction panic: runtime error: invalid memory address or nil pointer dereference [signal 0xb code=0x1 addr=0x0 pc=0x7624c] goroutine 3 [running]: created by main.(*builder).do /home/rounin/go/src/cmd/go/build.go:608 +0x53c goroutine 1 [chan receive]: main.(*builder).do(0x109a33c0, 0x10e838c0, 0x10963b40) /home/rounin/go/src/cmd/go/build.go:611 +0x568 main.runTest(0x456fd8, 0x109513d0, 0x3) /home/rounin/go/src/cmd/go/test.go:367 +0x24b8 main.main() /home/rounin/go/src/cmd/go/main.go:141 +0x5c8 goroutine 2 [syscall]: created by runtime.main /home/rounin/go/src/pkg/runtime/proc.c:221 goroutine 9 [finalizer wait]: created by runtime.gc /home/rounin/go/src/pkg/runtime/mgc0.c:922 goroutine 11 [syscall]: created by addtimer /home/rounin/go/src/pkg/runtime/ztime_linux_arm.c:69 real 235m2.002s user 52m9.280s sys 15m18.940s |
Thanks for reporting. There are three problems here. 0. "This program can only be run on EABI kernels" is a fixed bug, but the patch isn't included in the go1.0.1 release. 1. "invalid instruction" is due to not using GOARM=5 to compile your executable. the invalid instruction during test phase of all.bash is issue #3331, and should be fixed by CL 6210071. 2. sfloat2 0x71924 0x159fb010 is a known issue, issue #3638, introduced in rev 4073e93209fb (that commit itself is not buggy, but it enables the c compiler to use new instructions that the software floating point emulator doesn't support) Thus, a easy workaround for you now is to use an earlier revision in the default branch with CL 6210071 applied. sorry for the inconvenience. Status changed to Duplicate. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by rounin.urashima:
The text was updated successfully, but these errors were encountered: