-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
Description
by abonello00:
I'm having problems compiling golang v1.1 from src on a Rasberry Pi Model B running a recent install of Raspbmc. The build fails here: . . . # Building packages and commands for linux/arm. runtime errors sync/atomic sync io unicode unicode/utf8 bytes bufio math syscall # syscall pkg/syscall/env_unix.go:72: undefined: EINVAL pkg/syscall/env_unix.go:76: undefined: EINVAL pkg/syscall/env_unix.go:81: undefined: EINVAL pkg/syscall/exec_linux.go:72: undefined: PR_SET_PDEATHSIG pkg/syscall/exec_linux.go:92: undefined: PTRACE_TRACEME pkg/syscall/exec_linux.go:158: undefined: F_SETFD pkg/syscall/exec_linux.go:158: undefined: FD_CLOEXEC pkg/syscall/exec_linux.go:168: undefined: F_SETFD pkg/syscall/lsf_linux.go:40: undefined: IFNAMSIZ pkg/syscall/lsf_linux.go:40: invalid array bound IFNAMSIZ pkg/syscall/exec_linux.go:168: too many errors I ran an explicit go_bootstrap command, and the offending line seems to be the one below. The EINVAL const is defined in zerrors_linux_arm.go, but that .go file isn't being included in the compile command below. I've attached the full output of the go_bootstrap command. $ ../pkg/tool/linux_arm/go_bootstrap install -a -x std . . . /mnt/skittle/linux.rpi/go/pkg/tool/linux_arm/5g -o $WORK/syscall/_obj/_go_.5 -p syscall -D _/mnt/skittle/linux.rpi/go/src/pkg/syscall -I $WORK ./env_unix.go ./exec_linux.go ./exec_unix.go ./lsf_linux.go ./netlink_linux.go ./race0.go ./sockcmsg_linux.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_linux.go ./syscall_linux_arm.go ./syscall_unix.go ./zsyscall_linux_arm.go ./zsysnum_linux_arm.go ./ztypes_linux_arm.go
Attachments:
- go_bootstrap_output.txt (44873 bytes)