<p dir="auto">by <strong>r.w.johnstone</strong>:</p>
<pre class="notranslate">When building go from source, I'm receiving a number of error messages.  I don't see any
log files or intermediate build products, so I have limited information at this time. 
The errors seem to be associated with cgo.  The line numbers reported do not appear to
correspond with the .go source files.

When building net:

cgo_linux.go:16: error: syntax error before "int"
cgo_linux.go:21: error: syntax error before "int"

When building os/user:

lookup_unix.go:31: error: enumerator value for `__cgo_enum__1' not integer const
ant
lookup_unix.go:33: error: enumerator value for `__cgo_enum__2' not integer const
ant
lookup_unix.go:35: error: enumerator value for `__cgo_enum__3' not integer const
ant
lookup_unix.go:37: error: enumerator value for `__cgo_enum__4' not integer const
ant
lookup_unix.go:41: error: enumerator value for `__cgo_enum__6' not integer const
ant
lookup_unix.go:43: error: enumerator value for `__cgo_enum__7' not integer const
ant
lookup_unix.go:45: error: enumerator value for `__cgo_enum__8' not integer const
ant
lookup_unix.go:47: error: syntax error before "size_t"
lookup_unix.go:49: error: syntax error before "long"
lookup_unix.go:51: error: syntax error before "char"
lookup_unix.go:53: error: syntax error before "int"
lookup_unix.go:56: warning: initialization makes integer from pointer without a
cast
lookup_unix.go:56: error: initializer element is not computable at load time
lookup_unix.go:56: error: (near initialization for `__cgodebug_data[1]')
lookup_unix.go:57: warning: initialization makes integer from pointer without a
cast
lookup_unix.go:57: error: initializer element is not computable at load time
lookup_unix.go:57: error: (near initialization for `__cgodebug_data[2]')
lookup_unix.go:58: warning: initialization makes integer from pointer without a
cast
lookup_unix.go:58: error: initializer element is not computable at load time
lookup_unix.go:58: error: (near initialization for `__cgodebug_data[3]')
lookup_unix.go:59: warning: initialization makes integer from pointer without a
cast
lookup_unix.go:59: error: initializer element is not computable at load time
lookup_unix.go:59: error: (near initialization for `__cgodebug_data[4]')
lookup_unix.go:61: warning: initialization makes integer from pointer without a
cast
lookup_unix.go:61: error: initializer element is not computable at load time
lookup_unix.go:61: error: (near initialization for `__cgodebug_data[6]')
lookup_unix.go:62: warning: initialization makes integer from pointer without a
cast
lookup_unix.go:62: error: initializer element is not computable at load time
lookup_unix.go:62: error: (near initialization for `__cgodebug_data[7]')
lookup_unix.go:63: warning: initialization makes integer from pointer without a
cast
lookup_unix.go:63: error: initializer element is not computable at load time
lookup_unix.go:63: error: (near initialization for `__cgodebug_data[8]')
lookup_unix.go:64: error: syntax error before ',' token

----

hg id:  920e9d1ffd1f (release-branch.go1) release/go1
uname -a:  Linux name 2.6.9-89.0.7.ELsmp #1 SMP Wed Aug 5 14:12:18 EDT 2009 i686 i686
i386 GNU/Linux</pre>
<p dir="auto">by <strong>Yuvwah</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
1. ./all.bash

What is the expected output?
Success

What do you see instead?
/home/jesusaur/bin/8a asm_freebsd_386.s
syscall_bsd.go:468: undefined: utimes
syscall_bsd.go:476: undefined: futimes
gmake[1]: Leaving directory `/home/jesusaur/go/src/pkg/syscall'

What is your $GOOS?  $GOARCH?
GOOS=freebsd
GOARCH=386

Which revision are you using?  (hg identify)
d02e9053b27d tip

Please provide any additional information below.
`diff pkg/syscall/zsyscall_freebsd_*` shows that the functions 'utimes' and 'futimes'
are declared in zsyscall_freebsd_amd64.go but not in zsyscall_freebsd_386.go</pre>