You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear all,
I'm trying to build go 1.2 on the latest NetBSD official version 6.1.3 using gcc 4.8
$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/pkg/gcc48/bin/gcc
COLLECT_LTO_WRAPPER=/usr/pkg/gcc48/libexec/gcc/i486--netbsdelf/4.8.2/lto-wrapper
Target: i486--netbsdelf
Configured with: ../gcc-4.8.2/configure --enable-languages='c obj-c++ objc fortran c++'
--enable-shared --enable-long-long --with-local-prefix=/usr/pkg/gcc48 --enable-libssp
--enable-threads=posix --with-boot-ldflags='-static-libstdc++ -static-libgcc
-Wl,-R/usr/pkg/lib ' --with-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as
--with-as=/usr/bin/as --with-arch=i486 --with-tune=i486 --enable-nls
--with-libiconv-prefix=/usr --with-gmp=/usr/pkg --with-mpc=/usr/pkg --with-mpfr=/usr/pkg
--with-cloog=/usr/pkg --enable-cloog-backend=isl --enable-__cxa_atexit
--with-gxx-include-dir=/usr/pkg/gcc48/include/c++/ --prefix=/usr/pkg/gcc48
--build=i486--netbsdelf --host=i486--netbsdelf --infodir=/usr/pkg/gcc48/info
--mandir=/usr/pkg/gcc48/man
Thread model: posix
gcc version 4.8.2 (GCC)
It is a pretty old x86 system. The error I get is :
cmd/go
SIGILL: illegal instruction
PC=0x808b72c
runtime.cmpbody()
/usr/pkg/go/src/pkg/runtime/asm_386.s:1248 +0xc fp=0xbbae0db8
runtime.cmpstring(0x81f87b8, 0x4, 0x81f2e60, 0x1, 0x18761920)
/usr/pkg/go/src/pkg/runtime/asm_386.s:1195 +0x15 fp=0xbbae0dbc
strconv.ParseBool(0x81f87b8, 0x4, 0x81df020, 0x0, 0x0)
/usr/pkg/go/src/pkg/strconv/atob.go:11 +0x55 fp=0xbbae0df0
flag.(*boolValue).Set(0x83f0ff5, 0x81f87b8, 0x4, 0xbbbcbc20, 0x83f0ff5)
/usr/pkg/go/src/pkg/flag/flag.go:87 +0x30 fp=0xbbae0e08
flag.(*FlagSet).parseOne(0x83e7dfc, 0x8, 0x81d0c40, 0x0)
/usr/pkg/go/src/pkg/flag/flag.go:761 +0x62b fp=0xbbae0ecc
flag.(*FlagSet).Parse(0x83e7dfc, 0x1870a010, 0x2, 0x2, 0x1, ...)
/usr/pkg/go/src/pkg/flag/flag.go:792 +0x41 fp=0xbbae0ee0
main.main()
/usr/pkg/go/src/cmd/go/main.go:158 +0x426 fp=0xbbae0f98
runtime.main()
/usr/pkg/go/src/pkg/runtime/proc.c:220 +0xff fp=0xbbae0fcc
runtime.goexit()
/usr/pkg/go/src/pkg/runtime/proc.c:1394 fp=0xbbae0fd0
goroutine 3 [syscall]:
os/signal.loop()
/usr/pkg/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
/usr/pkg/go/src/pkg/os/signal/signal_unix.go:27 +0x31
I'm not savvy enough to interpret this error. Could you please help me with
pointers of how to fix this. If it's a NetBSD related prblem I'll contact the os
developper but wanted to have your opinion first.
Thank you very much.
Anguel
The text was updated successfully, but these errors were encountered:
Try exporting GO386=387 to tell the compiler/linker to avoid the use of SSE
instructions. You will need to run ./all.bash from scratch.
If this doesn't fix the problem, can you use gdb to disassemble the instruction that is
causing the fault.
by gueleto:
The text was updated successfully, but these errors were encountered: