Skip to content

Instantly share code, notes, and snippets.

@alphazero
Created April 16, 2011 05:13
Show Gist options
  • Save alphazero/922892 to your computer and use it in GitHub Desktop.
Save alphazero/922892 to your computer and use it in GitHub Desktop.
os x 10.6.7 / intel core i5 (mbp 15)
from .zshrc:
export GOROOT=/Users/alphazero/Code/lang/go
export GOOS=darwin
export GOARCH=amd64
export GOBIN=$GOROOT/bin
export PATH=$PATH:$GOBIN
gcc info:
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5664~105/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5664)
cloned go per golang.org:
hg clone -r release https://go.googlecode.com/hg/ go
emits:
adding changesets
adding manifests
adding file changes
added 7667 changesets with 29512 changes to 4164 files
updating to branch default
2535 files updated, 0 files merged, 0 files removed, 0 files unresolved
make go per golang.org (did not use sudo)
emits:
...
--- cd ../test
2 known bugs; 0 unexpected bugs
ALL TESTS PASSED
---
Installed Go for darwin/amd64 in /Users/alphazero/Code/lang/go.
Installed commands in /Users/alphazero/Code/lang/go/bin.
The compiler is 6g.
On OS X the debuggers must be installed setgrp procmod.
Read and run ./sudo.bash to install the debuggers.
"read" and then ./sudo.bash. gave it the passwrord.
nothing emitted.
ls /usr/local/bin/6*
-rwxr-sr-x 1 root procmod 213832 Apr 16 00:32 /usr/local/bin/6cov
-rwxr-sr-x 1 root procmod 220304 Apr 16 00:32 /usr/local/bin/6prof
per golang.org cd ~/go/src
hg pull
pulling from https://go.googlecode.com/hg/
searching for changes
adding changesets
adding manifests
adding file changes
added 465 changesets with 1462 changes to 758 files
(run 'hg update' to get a working copy)
hg update
751 files updated, 0 files merged, 40 files removed, 0 files unresolved
(Note did try hg update release but that was a nop.)
again ./all.bash and then ./sudo.bash
(emits same as above.)
$ which 6l
/Users/alphazero/Code/lang/go/bin/6l
$ which 6g
/Users/alphazero/Code/lang/go/bin/6g
Then I cloned the most up to date fork of Go-Redis: https://github.com/mortimer/Go-Redis
cd Go-Redis/src/pkg/redis
make install
6g -o _go_.6 reflect.go future.go specification.go error.go redis.go protocol.go connection.go synchclient.go asynchclient.go
reflect.go:19: invalid recursive type reflect.addr
reflect.go:19: invalid recursive type unsafe.Pointer
reflect.go:28: undefined: reflect.StructValue
reflect.go:42: undefined: reflect.StructValue
error.go:23: reflect.addr redeclared in this block
previous declaration at error.go:23
protocol.go:27: reflect.addr redeclared in this block
previous declaration at protocol.go:27
connection.go:18: reflect.addr redeclared in this block
previous declaration at connection.go:18
connection.go:19: reflect.addr redeclared in this block
previous declaration at connection.go:19
synchclient.go:24: reflect.addr redeclared in this block
previous declaration at synchclient.go:24
asynchclient.go:20: reflect.addr redeclared in this block
previous declaration at asynchclient.go:20
reflect.go:42: too many errors
make: *** [_go_.6] Error 1
Ok, so per instructions, ran gofix in the same dir
gofix .
reflect.go: fixed reflect
make install
6g -o _go_.6 reflect.go future.go specification.go error.go redis.go protocol.go connection.go synchclient.go asynchclient.go
reflect.go:19: invalid recursive type reflect.addr
reflect.go:19: invalid recursive type unsafe.Pointer
reflect.go:56: too many arguments to function call
error.go:23: reflect.addr redeclared in this block
previous declaration at error.go:23
protocol.go:27: reflect.addr redeclared in this block
previous declaration at protocol.go:27
connection.go:18: reflect.addr redeclared in this block
previous declaration at connection.go:18
connection.go:19: reflect.addr redeclared in this block
previous declaration at connection.go:19
synchclient.go:24: reflect.addr redeclared in this block
previous declaration at synchclient.go:24
asynchclient.go:20: reflect.addr redeclared in this block
previous declaration at asynchclient.go:20
make: *** [_go_.6] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment