NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.45k stars 13.65k forks source link

go-1.4-bootstrap-20161024 fails to build on OS X 10.10.5 #22847

Closed davidak closed 7 years ago

davidak commented 7 years ago

Issue description

I'm not sure if there is anyone who cares since 17.03 will be released in some days. I don't.

This is just the case why Caddy fails to build. https://github.com/NixOS/nixpkgs/pull/22544

Steps to reproduce

  1. checkout release-16.09
  2. nix-env -f ~/code/nixpkgs/ -i go-1.4-bootstrap-20161024
imac:nixpkgs davidak$ nix-env -f ~/code/nixpkgs/ -i go-1.4-bootstrap-20161024
installing ‘go-1.4-bootstrap-20161024’
these derivations will be built:
  /nix/store/vxlhllnmrnj3fs216vp4vzi90p2a4cgf-go-1.4-bootstrap-20161024.drv
building path(s) ‘/nix/store/l1l4h8bcz9r2j0z7rs9wpg84nam4n3v1-go-1.4-bootstrap-20161024’
unpacking sources
unpacking source archive /nix/store/kqph82736vz5w3fh0ar9xa6dg9xdf0ml-79d85a4965ea7c46db483314c3981751909d7883.tar.gz
source root is go-79d85a4965ea7c46db483314c3981751909d7883
setting SOURCE_DATE_EPOCH to timestamp 1477362498 of file go-79d85a4965ea7c46db483314c3981751909d7883/test/zerodivide.go
patching sources
patching script interpreter paths in ./
./doc/articles/wiki/test.bash: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./doc/codewalk/run: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./doc/progs/run: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./doc/progs/update.bash: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./lib/codereview/test.sh: interpreter directive changed from "/bin/bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./lib/time/update.bash: interpreter directive changed from "/bin/sh" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/sh"
./misc/arm/a: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./misc/benchcmp: interpreter directive changed from "/bin/bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./misc/cgo/testso/test.bash: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./misc/git/pre-commit: interpreter directive changed from "/bin/sh" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/sh"
./misc/makerelease/darwin/scripts/postinstall: interpreter directive changed from "/bin/bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./misc/makerelease/darwin/scripts/preinstall: interpreter directive changed from "/bin/bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./misc/nacl/go_nacl_386_exec: interpreter directive changed from "/bin/bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./misc/nacl/go_nacl_amd64p32_exec: interpreter directive changed from "/bin/bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./misc/nacl/go_nacl_arm_exec: interpreter directive changed from "/bin/bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./src/all.bash: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./src/androidtest.bash: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./src/clean.bash: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./src/cmd/gc/bisonerrors: interpreter directive changed from "/usr/bin/awk -f" to "/nix/store/md7x0dmdj0v5cxvj8jf8hgmk8r73dk2s-gawk-4.1.3/bin/awk -f"
./src/cmd/gc/mkbuiltin: interpreter directive changed from "/bin/sh" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/sh"
./src/cmd/gc/mkopnames: interpreter directive changed from "/bin/sh" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/sh"
./src/cmd/go/mkdoc.sh: interpreter directive changed from "/bin/sh" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/sh"
./src/cmd/go/script: interpreter directive changed from "/bin/sh" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/sh"
./src/cmd/go/test.bash: interpreter directive changed from "/bin/bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./src/make.bash: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./src/nacltest.bash: interpreter directive changed from "/bin/bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./src/race.bash: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./src/run.bash: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./src/sudo.bash: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./src/syscall/mkall.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./src/syscall/mkerrors.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./src/syscall/mksysnum_plan9.sh: interpreter directive changed from "/bin/sh" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/sh"
./test/bench/shootout/timing.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
./test/run: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/ifq5jsm19kaf4irgq1qpnrivizxjxhya-bash-4.3-p48/bin/bash"
applying patch /nix/store/609lpv5y8931waya24xhvqcvds9dlhcw-remove-tools-1.4.patch
patching file misc/makerelease/makerelease.go
patching file src/cmd/dist/build.c
patching file src/cmd/go/pkg.go
patching file src/go/build/build.go
patching file src/runtime/extern.go
applying patch /nix/store/rg4cccxd0n1hh6qn4z0dcaqhayix7l2n-creds-test-1.4.patch
patching file src/syscall/creds_test.go
configuring
no configure script, doing nothing
building
no Makefile, doing nothing
installing
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, darwin/amd64.
lib9
libbio
liblink
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
/nix/store/l1l4h8bcz9r2j0z7rs9wpg84nam4n3v1-go-1.4-bootstrap-20161024/share/go/src/cmd/6c/txt.c:995:28: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
/nix/store/l1l4h8bcz9r2j0z7rs9wpg84nam4n3v1-go-1.4-bootstrap-20161024/share/go/src/cmd/6c/txt.c:1045:28: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
cmd/6g
runtime
errors
sync/atomic
sync
io
unicode
unicode/utf8
unicode/utf16
bytes
math
strings
strconv
bufio
sort
container/heap
encoding/base64
syscall
time
os
reflect
fmt
encoding
encoding/json
flag
path/filepath
path
io/ioutil
log
regexp/syntax
regexp
go/token
go/scanner
go/ast
go/parser
os/exec
os/signal
net/url
text/template/parse
text/template
go/doc
go/build
cmd/go

# Building packages and commands for darwin/amd64.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
sort
encoding
unicode/utf16
container/list
sync
crypto/subtle
container/ring
image/color
runtime/race
container/heap
image/color/palette
io
syscall
hash
crypto/cipher
hash/crc32
crypto/hmac
hash/adler32
hash/crc64
hash/fnv
bytes
strings
bufio
text/tabwriter
path
html
time
compress/bzip2
strconv
math/rand
math/cmplx
reflect
regexp/syntax
crypto
encoding/base64
net/url
crypto/aes
crypto/rc4
os
crypto/md5
crypto/sha1
crypto/sha256
crypto/sha512
encoding/pem
encoding/ascii85
encoding/base32
image
path/filepath
net
os/signal
image/draw
image/jpeg
regexp
io/ioutil
os/exec
fmt
encoding/binary
cmd/pprof/internal/svg
crypto/des
index/suffixarray
cmd/internal/goobj
cmd/internal/rsc.io/arm/armasm
cmd/internal/rsc.io/x86/x86asm
debug/dwarf
debug/gosym
debug/plan9obj
flag
log
go/token
encoding/json
encoding/xml
text/template/parse
go/scanner
go/ast
debug/elf
debug/macho
debug/pe
text/template
compress/flate
math/big
encoding/hex
mime
net/textproto
cmd/internal/objfile
net/http/internal
runtime/pprof
cmd/pack
go/parser
go/printer
compress/gzip
cmd/pprof/internal/tempfile
cmd/pprof/internal/profile
archive/tar
cmd/addr2line
go/doc
crypto/elliptic
encoding/asn1
crypto/rand
crypto/rsa
cmd/cgo
go/format
crypto/dsa
cmd/fix
mime/multipart
crypto/ecdsa
crypto/x509/pkix
go/build
cmd/gofmt
crypto/x509
cmd/nm
cmd/objdump
cmd/pprof/internal/plugin
html/template
cmd/pprof/internal/symbolizer
crypto/tls
cmd/pprof/internal/symbolz
cmd/yacc
archive/zip
cmd/pprof/internal/report
compress/lzw
compress/zlib
database/sql/driver
encoding/csv
encoding/gob
database/sql
image/gif
image/png
log/syslog
net/mail
os/user
runtime/debug
testing
cmd/pprof/internal/commands
net/http
net/smtp
testing/iotest
testing/quick
cmd/pprof/internal/driver
text/scanner
cmd/go
cmd/pprof/internal/fetch
expvar
net/http/cgi
net/http/cookiejar
net/http/httptest
net/http/httputil
net/http/pprof
cmd/pprof
net/rpc
net/http/fcgi
net/rpc/jsonrpc

# Testing packages.
ok      cmd/addr2line   0.834s
?       cmd/cgo [no test files]
ok      cmd/fix 0.039s
ok      cmd/go  0.065s
ok      cmd/gofmt   0.133s
ok      cmd/nm  0.924s
ok      cmd/objdump 2.347s
ok      cmd/pack    4.639s
?       cmd/pprof   [no test files]
?       cmd/yacc    [no test files]
ok      archive/tar 0.026s
ok      archive/zip 0.651s
ok      bufio   0.186s
ok      bytes   0.268s
ok      cmd/internal/goobj  0.160s
?       cmd/internal/objfile    [no test files]
?       cmd/pprof/internal/commands [no test files]
?       cmd/pprof/internal/driver   [no test files]
?       cmd/pprof/internal/fetch    [no test files]
?       cmd/pprof/internal/plugin   [no test files]
?       cmd/pprof/internal/profile  [no test files]
?       cmd/pprof/internal/report   [no test files]
?       cmd/pprof/internal/svg  [no test files]
?       cmd/pprof/internal/symbolizer   [no test files]
?       cmd/pprof/internal/symbolz  [no test files]
?       cmd/pprof/internal/tempfile [no test files]
ok      compress/bzip2  0.344s
ok      compress/flate  0.753s
ok      compress/gzip   0.091s
ok      compress/lzw    0.113s
ok      compress/zlib   1.418s
ok      container/heap  0.021s
ok      container/list  0.032s
ok      container/ring  0.041s
?       crypto  [no test files]
ok      crypto/aes  0.057s
ok      crypto/cipher   0.014s
ok      crypto/des  0.052s
ok      crypto/dsa  0.021s
ok      crypto/ecdsa    0.038s
ok      crypto/elliptic 0.206s
ok      crypto/hmac 0.012s
ok      crypto/md5  0.217s
ok      crypto/rand 0.210s
ok      crypto/rc4  0.145s
ok      crypto/rsa  0.244s
ok      crypto/sha1 0.039s
ok      crypto/sha256   0.061s
ok      crypto/sha512   0.038s
ok      crypto/subtle   0.037s
ok      crypto/tls  1.719s
ok      crypto/x509 1.745s
?       crypto/x509/pkix    [no test files]
ok      database/sql    0.091s
ok      database/sql/driver 0.013s
ok      debug/dwarf 0.020s
ok      debug/elf   0.051s
ok      debug/gosym 0.150s
ok      debug/macho 0.016s
ok      debug/pe    0.082s
ok      debug/plan9obj  0.054s
?       encoding    [no test files]
ok      encoding/ascii85    0.014s
ok      encoding/asn1   0.058s
ok      encoding/base32 0.013s
ok      encoding/base64 0.067s
ok      encoding/binary 0.026s
ok      encoding/csv    0.061s
ok      encoding/gob    0.085s
ok      encoding/hex    0.011s
ok      encoding/json   0.220s
ok      encoding/pem    0.015s
ok      encoding/xml    0.031s
ok      errors  0.011s
ok      expvar  0.035s
ok      flag    0.014s
ok      fmt 0.059s
ok      go/ast  0.045s
ok      go/build    0.195s
ok      go/doc  0.074s
ok      go/format   0.056s
ok      go/parser   0.050s
ok      go/printer  0.413s
ok      go/scanner  0.045s
ok      go/token    0.055s
?       hash    [no test files]
ok      hash/adler32    0.033s
ok      hash/crc32  0.022s
ok      hash/crc64  0.012s
ok      hash/fnv    0.017s
ok      html    0.021s
ok      html/template   0.137s
ok      image   0.115s
ok      image/color 0.018s
?       image/color/palette [no test files]
ok      image/draw  0.116s
ok      image/gif   0.123s
ok      image/jpeg  0.258s
ok      image/png   0.080s
ok      index/suffixarray   0.019s
ok      io  0.106s
ok      io/ioutil   0.168s
ok      log 0.064s
2017/02/15 22:05:23 startServer failed: listen unix /private/var/folders/fb/knpgn__s7_s20d_x1gsllflr0000gn/T/nix-build-go-1.4-bootstrap-20161024.drv-0/syslogtest544198623: bind: invalid argument
FAIL    log/syslog  0.021s
ok      math    0.013s
ok      math/big    0.337s
ok      math/cmplx  0.022s
ok      math/rand   0.287s
ok      mime    0.021s
ok      mime/multipart  0.334s
--- FAIL: TestConnAndListener (0.00s)
    conn_test.go:50: Listen failed: listen unix /private/var/folders/fb/knpgn__s7_s20d_x1gsllflr0000gn/T/nix-build-go-1.4-bootstrap-20161024.drv-0/nettest728595098: bind: invalid argument
--- FAIL: TestPacketConn (0.00s)
    packetconn_test.go:25: skipping test; must be root
    packetconn_test.go:87: ListenPacket failed: listen unixgram /private/var/folders/fb/knpgn__s7_s20d_x1gsllflr0000gn/T/nix-build-go-1.4-bootstrap-20161024.drv-0/nettest471648988: bind: invalid argument
--- FAIL: TestConnAndPacketConn (0.00s)
    packetconn_test.go:25: skipping test; must be root
    packetconn_test.go:143: ListenPacket failed: listen unixgram /private/var/folders/fb/knpgn__s7_s20d_x1gsllflr0000gn/T/nix-build-go-1.4-bootstrap-20161024.drv-0/nettest471648988: bind: invalid argument
--- FAIL: TestUnixListenerSpecificMethods (0.00s)
    protoconn_test.go:250: ListenUnix failed: listen unix /private/var/folders/fb/knpgn__s7_s20d_x1gsllflr0000gn/T/nix-build-go-1.4-bootstrap-20161024.drv-0/nettest564903274: bind: invalid argument
--- FAIL: TestUnixConnSpecificMethods (0.00s)
    protoconn_test.go:293: DialUnix failed: dial unixgram <nil>: bind: invalid argument
--- FAIL: TestStreamConnServer (0.00s)
    server_test.go:181: Listen("unix", "/private/var/folders/fb/knpgn__s7_s20d_x1gsllflr0000gn/T/nix-build-go-1.4-bootstrap-20161024.drv-0/nettest398350958") failed: listen unix /private/var/folders/fb/knpgn__s7_s20d_x1gsllflr0000gn/T/nix-build-go-1.4-bootstrap-20161024.drv-0/nettest398350958: bind: invalid argument
    server_test.go:218: Dial("unix", "<nil>") failed: dial unix <nil>: no such file or directory
--- FAIL: TestReadUnixgramWithUnnamedSocket (0.00s)
    unix_test.go:27: ListenUnixgram failed: listen unixgram /private/var/folders/fb/knpgn__s7_s20d_x1gsllflr0000gn/T/nix-build-go-1.4-bootstrap-20161024.drv-0/nettest744902206: bind: invalid argument
--- FAIL: TestReadUnixgramWithZeroBytesBuffer (0.00s)
    unix_test.go:77: ListenUnixgram failed: listen unixgram /private/var/folders/fb/knpgn__s7_s20d_x1gsllflr0000gn/T/nix-build-go-1.4-bootstrap-20161024.drv-0/nettest753165957: bind: invalid argument
--- FAIL: TestUnixgramWrite (0.00s)
    unix_test.go:162: ListenPacket failed: listen unixgram /private/var/folders/fb/knpgn__s7_s20d_x1gsllflr0000gn/T/nix-build-go-1.4-bootstrap-20161024.drv-0/nettest279482912: bind: invalid argument
--- FAIL: TestUnixConnLocalAndRemoteNames (0.00s)
    unix_test.go:231: ListenUnix failed: listen unix /private/var/folders/fb/knpgn__s7_s20d_x1gsllflr0000gn/T/nix-build-go-1.4-bootstrap-20161024.drv-0/nettest095081554: bind: invalid argument
--- FAIL: TestUnixgramConnLocalAndRemoteNames (0.00s)
    unix_test.go:290: ListenUnixgram failed: listen unixgram /private/var/folders/fb/knpgn__s7_s20d_x1gsllflr0000gn/T/nix-build-go-1.4-bootstrap-20161024.drv-0/nettest961792852: bind: invalid argument
FAIL
FAIL    net 1.697s
ok      net/http    7.628s
ok      net/http/cgi    1.161s
ok      net/http/cookiejar  0.058s
ok      net/http/fcgi   0.050s
ok      net/http/httptest   0.037s
ok      net/http/httputil   0.106s
ok      net/http/internal   0.101s
?       net/http/pprof  [no test files]
ok      net/mail    0.243s
ok      net/rpc 0.115s
ok      net/rpc/jsonrpc 0.076s
ok      net/smtp    0.071s
ok      net/textproto   0.094s
ok      net/url 0.044s
ok      os  0.633s
ok      os/exec 0.337s
ok      os/signal   0.728s
ok      os/user 0.050s
ok      path    0.029s
ok      path/filepath   0.049s
ok      reflect 0.090s
ok      regexp  0.205s
ok      regexp/syntax   0.638s
ok      runtime 5.737s
ok      runtime/debug   0.062s
ok      runtime/pprof   6.488s
?       runtime/race    [no test files]
ok      sort    0.101s
ok      strconv 0.390s
ok      strings 0.130s
ok      sync    0.137s
ok      sync/atomic 0.237s
ok      syscall 0.022s
ok      testing 1.204s
?       testing/iotest  [no test files]
ok      testing/quick   0.051s
ok      text/scanner    0.017s
ok      text/tabwriter  0.025s
ok      text/template   0.052s
ok      text/template/parse 0.019s
ok      time    2.523s
ok      unicode 0.026s
ok      unicode/utf16   0.017s
ok      unicode/utf8    0.026s
?       unsafe  [no test files]
builder for ‘/nix/store/vxlhllnmrnj3fs216vp4vzi90p2a4cgf-go-1.4-bootstrap-20161024.drv’ failed with exit code 1
error: build of ‘/nix/store/vxlhllnmrnj3fs216vp4vzi90p2a4cgf-go-1.4-bootstrap-20161024.drv’ failed

Technical details

LnL7 commented 7 years ago

It's fixed on master, nixos release branches are not really relevant for darwin. There's no channel for osx apart from nixpkgs-unstable at the moment.