Skip to content

Instantly share code, notes, and snippets.

@ioerror
Created February 18, 2013 04:22
Show Gist options
  • Save ioerror/4975117 to your computer and use it in GitHub Desktop.
Save ioerror/4975117 to your computer and use it in GitHub Desktop.
golang compile on OS X 10.8.2 outside of homebrew from hg HEAD
$ ls -al `which gcc`
lrwxr-xr-x 1 root wheel 12 Feb 16 04:28 /usr/bin/gcc -> llvm-gcc-4.2
$ cd /Library/Caches/Homebrew/go--hg/
$ cd src
$ bash -x ./all.bash
+ set -e
+ '[' '!' -f make.bash ']'
+ OLDPATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
+ . ./make.bash --no-banner
++ set -e
++ '[' '!' -f run.bash ']'
++ case "$(uname)" in
+++ uname
++ ld --version
++ grep 'gold.* 2\.20'
++ for se_mount in /selinux /sys/fs/selinux
++ '[' -d /selinux -a -f /selinux/booleans/allow_execstack -a -x /usr/sbin/selinuxenabled ']'
++ for se_mount in /selinux /sys/fs/selinux
++ '[' -d /sys/fs/selinux -a -f /sys/fs/selinux/booleans/allow_execstack -a -x /usr/sbin/selinuxenabled ']'
+++ uname -s
++ '[' Darwin == GNU/kFreeBSD ']'
++ rm -f ./pkg/runtime/runtime_defs.go
++ echo '# Building C bootstrap tool.'
# Building C bootstrap tool.
++ echo cmd/dist
cmd/dist
+++ cd ..
+++ pwd
++ export GOROOT=/Library/Caches/Homebrew/go--hg
++ GOROOT=/Library/Caches/Homebrew/go--hg
++ GOROOT_FINAL=/Library/Caches/Homebrew/go--hg
++ DEFGOROOT='-DGOROOT_FINAL="/Library/Caches/Homebrew/go--hg"'
++ mflag=
++ case "$GOHOSTARCH" in
++ gcc -O2 -Wall -Werror -o cmd/dist/dist -Icmd/dist '-DGOROOT_FINAL="/Library/Caches/Homebrew/go--hg"' cmd/dist/arm.c cmd/dist/buf.c cmd/dist/build.c cmd/dist/buildgc.c cmd/dist/buildruntime.c cmd/dist/goc2c.c cmd/dist/main.c cmd/dist/plan9.c cmd/dist/unix.c cmd/dist/windows.c
+++ ./cmd/dist/dist env -p
++ eval 'GOROOT="/Library/Caches/Homebrew/go--hg"' 'GOBIN="/Library/Caches/Homebrew/go--hg/bin"' 'GOARCH="amd64"' 'GOOS="darwin"' 'GOHOSTARCH="amd64"' 'GOHOSTOS="darwin"' 'GOTOOLDIR="/Library/Caches/Homebrew/go--hg/pkg/tool/darwin_amd64"' 'GOCHAR="6"' 'PATH="/Library/Caches/Homebrew/go--hg/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"'
+++ GOROOT=/Library/Caches/Homebrew/go--hg
+++ GOBIN=/Library/Caches/Homebrew/go--hg/bin
+++ GOARCH=amd64
+++ GOOS=darwin
+++ GOHOSTARCH=amd64
+++ GOHOSTOS=darwin
+++ GOTOOLDIR=/Library/Caches/Homebrew/go--hg/pkg/tool/darwin_amd64
+++ GOCHAR=6
+++ PATH=/Library/Caches/Homebrew/go--hg/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
++ echo
++ '[' --no-banner = --dist-tool ']'
++ echo '# Building compilers and Go bootstrap tool for host, darwin/amd64.'
# Building compilers and Go bootstrap tool for host, darwin/amd64.
++ buildall=-a
++ '[' --no-banner = --no-clean ']'
++ ./cmd/dist/dist bootstrap -a -v
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/cov
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
cmd/6g
pkg/runtime
pkg/errors
pkg/sync/atomic
pkg/sync
pkg/io
pkg/unicode
pkg/unicode/utf8
pkg/unicode/utf16
pkg/bytes
pkg/math
pkg/strings
pkg/strconv
pkg/bufio
pkg/sort
pkg/container/heap
pkg/encoding/base64
pkg/syscall
pkg/time
pkg/os
pkg/reflect
pkg/fmt
pkg/encoding/json
pkg/flag
pkg/path/filepath
pkg/path
pkg/io/ioutil
pkg/log
pkg/regexp/syntax
pkg/regexp
pkg/go/token
pkg/go/scanner
pkg/go/ast
pkg/go/parser
pkg/os/exec
pkg/os/signal
pkg/net/url
pkg/text/template/parse
pkg/text/template
pkg/go/doc
pkg/go/build
cmd/go
++ mv cmd/dist/dist /Library/Caches/Homebrew/go--hg/pkg/tool/darwin_amd64/dist
++ /Library/Caches/Homebrew/go--hg/pkg/tool/darwin_amd64/go_bootstrap clean -i std
++ echo
++ '[' amd64 '!=' amd64 -o darwin '!=' darwin ']'
++ echo '# Building packages and commands for darwin/amd64.'
# Building packages and commands for darwin/amd64.
++ /Library/Caches/Homebrew/go--hg/pkg/tool/darwin_amd64/go_bootstrap install -ccflags '' -gcflags '' -ldflags '' -v std
runtime
errors
sync/atomic
unicode
unicode/utf8
math
sync
unicode/utf16
io
syscall
hash
crypto
crypto/md5
hash/crc32
bytes
strings
bufio
time
path
text/tabwriter
crypto/cipher
crypto/subtle
crypto/hmac
crypto/sha1
crypto/sha256
html
hash/adler32
container/list
container/ring
os
crypto/sha512
strconv
sort
math/rand
container/heap
compress/bzip2
path/filepath
os/signal
reflect
regexp/syntax
net/url
io/ioutil
os/exec
encoding/base64
crypto/aes
crypto/rc4
encoding/pem
encoding/ascii85
regexp
fmt
encoding/binary
encoding/base32
hash/fnv
debug/dwarf
crypto/des
index/suffixarray
exp/utf8string
hash/crc64
image/color
math/cmplx
flag
go/token
text/template/parse
log
go/scanner
debug/elf
debug/macho
go/ast
debug/pe
text/template
encoding/json
encoding/xml
compress/flate
go/doc
go/parser
go/printer
compress/gzip
math/big
encoding/hex
go/build
mime
archive/zip
cmd/cgo
go/format
crypto/elliptic
cmd/api
cmd/fix
crypto/ecdsa
crypto/rand
crypto/rsa
crypto/dsa
encoding/asn1
crypto/x509/pkix
encoding/gob
html/template
runtime/pprof
text/scanner
cmd/gofmt
cmd/vet
runtime/cgo
cmd/yacc
archive/tar
compress/lzw
compress/zlib
net
database/sql/driver
debug/gosym
database/sql
encoding/csv
exp/ebnf
go/types
exp/norm
exp/ebnflint
exp/locale/collate/colltab
image
exp/locale/collate
exp/gotype
exp/locale/collate/build
exp/ssa
crypto/x509
net/textproto
exp/ssa/interp
mime/multipart
image/draw
image/gif
image/jpeg
image/png
log/syslog
net/mail
old/netchan
os/user
crypto/tls
runtime/debug
testing
testing/iotest
testing/quick
exp/locale/collate/tools/colcmp
net/http
net/smtp
cmd/go
expvar
net/http/pprof
exp/cookiejar
cmd/godoc
net/http/cgi
net/http/fcgi
net/http/httptest
net/http/httputil
net/rpc
net/rpc/jsonrpc
++ echo
++ rm -f /Library/Caches/Homebrew/go--hg/pkg/tool/darwin_amd64/go_bootstrap
++ '[' --no-banner '!=' --no-banner ']'
+ bash run.bash --no-rebuild
# Testing packages.
ok cmd/api 0.031s
? cmd/cgo [no test files]
ok cmd/fix 2.612s
ok cmd/go 0.038s
? cmd/godoc [no test files]
ok cmd/gofmt 0.065s
? cmd/vet [no test files]
? cmd/yacc [no test files]
ok archive/tar 0.021s
ok archive/zip 0.063s
ok bufio 0.058s
ok bytes 0.129s
ok compress/bzip2 0.069s
ok compress/flate 0.555s
ok compress/gzip 0.020s
ok compress/lzw 0.122s
ok compress/zlib 1.017s
ok container/heap 0.019s
ok container/list 0.017s
ok container/ring 0.028s
? crypto [no test files]
ok crypto/aes 0.047s
ok crypto/cipher 0.019s
ok crypto/des 0.037s
ok crypto/dsa 0.022s
ok crypto/ecdsa 0.041s
ok crypto/elliptic 0.025s
ok crypto/hmac 0.018s
ok crypto/md5 0.018s
ok crypto/rand 0.057s
ok crypto/rc4 0.015s
ok crypto/rsa 0.103s
ok crypto/sha1 0.017s
ok crypto/sha256 0.017s
ok crypto/sha512 0.020s
ok crypto/subtle 0.020s
ok crypto/tls 0.364s
ok crypto/x509 0.833s
? crypto/x509/pkix [no test files]
ok database/sql 0.024s
ok database/sql/driver 0.018s
ok debug/dwarf 0.024s
ok debug/elf 0.029s
ok debug/gosym 0.018s
ok debug/macho 0.018s
ok debug/pe 0.018s
ok encoding/ascii85 0.018s
ok encoding/asn1 0.025s
ok encoding/base32 0.018s
ok encoding/base64 0.017s
ok encoding/binary 0.020s
ok encoding/csv 0.023s
ok encoding/gob 0.048s
ok encoding/hex 0.022s
ok encoding/json 0.034s
ok encoding/pem 0.018s
ok encoding/xml 0.038s
ok errors 0.017s
ok exp/cookiejar 0.031s
ok exp/ebnf 0.019s
ok exp/ebnflint 0.021s
ok exp/gotype 2.827s
ok exp/locale/collate 0.037s
ok exp/locale/collate/build 0.023s
ok exp/locale/collate/colltab 0.017s
? exp/locale/collate/tools/colcmp [no test files]
ok exp/norm 0.776s
? exp/ssa [no test files]
? exp/ssa/interp [no test files]
ok exp/utf8string 0.017s
ok expvar 0.034s
ok flag 0.017s
ok fmt 0.049s
ok go/ast 0.026s
ok go/build 0.158s
ok go/doc 0.074s
ok go/format 0.031s
ok go/parser 0.063s
ok go/printer 0.467s
ok go/scanner 0.020s
ok go/token 0.056s
ok go/types 0.460s
? hash [no test files]
ok hash/adler32 0.022s
ok hash/crc32 0.022s
ok hash/crc64 0.017s
ok hash/fnv 0.017s
ok html 0.018s
ok html/template 0.064s
ok image 0.131s
ok image/color 0.023s
ok image/draw 0.040s
? image/gif [no test files]
ok image/jpeg 0.123s
ok image/png 0.063s
ok index/suffixarray 0.022s
ok io 0.036s
ok io/ioutil 0.017s
ok log 0.026s
ok log/syslog 2.100s
ok math 0.017s
ok math/big 0.195s
ok math/cmplx 0.015s
ok math/rand 0.032s
ok mime 0.014s
ok mime/multipart 0.175s
ok net 11.337s
ok net/http 3.694s
ok net/http/cgi 0.503s
ok net/http/fcgi 0.030s
ok net/http/httptest 0.031s
ok net/http/httputil 0.037s
? net/http/pprof [no test files]
ok net/mail 0.018s
ok net/rpc 0.072s
ok net/rpc/jsonrpc 0.031s
ok net/smtp 0.030s
ok net/textproto 0.018s
ok net/url 0.018s
ok old/netchan 0.030s
ok os 0.041s
ok os/exec 0.494s
ok os/signal 0.116s
ok os/user 0.023s
ok path 0.018s
ok path/filepath 0.184s
ok reflect 0.036s
ok regexp 0.096s
ok regexp/syntax 0.573s
ok runtime 1.091s
? runtime/cgo [no test files]
ok runtime/debug 0.018s
ok runtime/pprof 0.359s
ok sort 0.070s
ok strconv 0.325s
ok strings 0.116s
ok sync 0.057s
ok sync/atomic 0.032s
ok syscall 0.034s
? testing [no test files]
? testing/iotest [no test files]
ok testing/quick 0.034s
ok text/scanner 0.018s
ok text/tabwriter 0.018s
ok text/template 0.048s
ok text/template/parse 0.021s
ok time 2.333s
ok unicode 0.015s
ok unicode/utf16 0.014s
ok unicode/utf8 0.017s
? unsafe [no test files]
real 0m35.078s
user 1m33.116s
sys 0m16.997s
# GOMAXPROCS=2 runtime -cpu=1,2,4
ok runtime 2.428s
# sync -cpu=10
ok sync 0.330s
# Testing race detector.
ok flag 1.025s
# ../misc/cgo/stdio
# ../misc/cgo/life
# ../misc/cgo/test
scatter = 0x341bd
hello from C
PASS
ok _/Library/Caches/Homebrew/go--hg/misc/cgo/test 1.076s
# ../doc/progs
real 0m8.820s
user 0m6.754s
sys 0m1.654s
# ../doc/articles/wiki
rm -f srcextract.bin htmlify.bin get.bin
PASS
# ../doc/codewalk
# ../misc/dashboard/builder ../misc/goplay
# ../test/bench/shootout
fasta
reverse-complement
nbody
binary-tree
binary-tree-freelist
fannkuch
fannkuch-parallel
regex-dna
regex-dna-parallel
spectral-norm
k-nucleotide
k-nucleotide-parallel
mandelbrot
meteor-contest
pidigits
threadring
chameneosredux
# ../test/bench/go1
ok _/Library/Caches/Homebrew/go--hg/test/bench/go1 2.081s
# ../test
real 0m32.279s
user 1m16.523s
sys 0m25.214s
# Checking API compatibility.
~pkg net, func ListenUnixgram(string, *UnixAddr) (*UDPConn, error)
~pkg text/template/parse, type DotNode bool
~pkg text/template/parse, type Node interface { Copy, String, Type }
±pkg go/types, type Importer func(imports map[string]*Package, path string) (pkg *Package, err error)
ALL TESTS PASSED
+ PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
+ /Library/Caches/Homebrew/go--hg/pkg/tool/darwin_amd64/dist banner
---
Installed Go for darwin/amd64 in /Library/Caches/Homebrew/go--hg
Installed commands in /Library/Caches/Homebrew/go--hg/bin
*** You need to add /Library/Caches/Homebrew/go--hg/bin to your PATH.
On OS X the debuggers must be installed setgid procmod.
Read and run ./sudo.bash to install the debuggers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment