On Wed, Mar 30, 2011 at 9:58 PM, Uros Bizjak <ubiz...@gmail.com> wrote: > Hello! > > Attached ports go to ALPHA architecture. > > There are however several problems with the build: > > a) Bootstrap compare failure in the gcc/go directory due to binutils > bug [1], fixed in latest binutils SVN, use --disable-bootstrap > > b) alpha doesn't define "struct user_regs_struct" from which "type > PtraceRegs" is derived. I have manually created PtraceRegs from > pt_regs structure and patched generated libgo/sysinfo.go in build > directory after the build broke. However - the comment from sys/user.h > says that this file is for GDB and GDB only... > > c) some weird issue with double definition of "const _SOCK_NONBLOCK" > in gen-sysinfo.go and consequently sysinfo.go.
d) The definition of "type Stat_t struct" also includes additional struct and this confuses compilation. Attached is a fixup of sysinfo.go that is neded for successful build. Apply this fixup after build breaks and restart build. Uros.
sysinfo.go.diff
Description: Binary data