Skip to content
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

cmd/go: build problem on NetBSD 6.1.3 #7390

Closed
gopherbot opened this issue Feb 22, 2014 · 2 comments
Closed

cmd/go: build problem on NetBSD 6.1.3 #7390

gopherbot opened this issue Feb 22, 2014 · 2 comments

Comments

@gopherbot
Copy link

by gueleto:

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
@davecheney
Copy link
Contributor

Comment 1:

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.

Labels changed: added release-none, repo-main, arch-x86-32, os-netbsd.

Status changed to WaitingForReply.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@rsc
Copy link
Contributor

rsc commented Apr 14, 2015

Timed out

@rsc rsc closed this as completed Apr 14, 2015
@mikioh mikioh changed the title Go build problem on NetBSD 6.0 cmd/go: build problem on NetBSD 6.1.3 May 15, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants