DragonFly support in Go

John Marino dragonflybsd at marino.st
Fri Jan 17 10:31:17 PST 2014

On 1/17/2014 19:20, Brad Fitzpatrick wrote:
> On Fri, Jan 17, 2014 at 10:17 AM, John Marino <dragonflybsd at marino.st
> <mailto:dragonflybsd at marino.st>> wrote:
>     On 1/17/2014 19:12, John Marino wrote:
>     > Hi Brad,
>     > Well, there's a chance that this report is "bogus" in the sense
>     that Go
>     > only builds within the FreeBSD Ports framework on DragonFly.  For sure
>     > we need src/make.bash patched to remove the bashism equality checks:
>     >
>     >
>     https://github.com/DragonFlyBSD/DeltaPorts/blob/master/ports/lang/go/dragonfly/patch-src_make.bash
>     >
>     > (If make.bash is still broken this way, could you fix it?)
>     I should clarify this!
>     FreeBSD runs /bin/sh to execute all the bash scripts.
>     It is "fixed" by shebangfix
>     (http://svnweb.freebsd.org/ports/head/lang/go/Makefile?revision=335891&view=markup)
>     So the "==" under /bin/sh.  I believe that's valid bash equality
>     comparison though.  So that's what that is all about.
> Well, I think I just had bash installed on my FreeBSD machine.  I
> definitely didn't use ports, since I only work at head.
> Assuming you either install bash, or fix the shebangs, what is the
> current output of all.bash on DragonFly?

You mean on the head of hg, right?
I'll have to get back to you on that.

The following is the output on the current ports version (1.2).  It's
not perfect.  Also the test machine is older than Release 3.6, so I
should update that machine and rerun the test.

Installed Go for dragonfly/386 in /usr/obj/dports/lang/go/work/go
Installed commands in /usr/obj/dports/lang/go/work/go/bin
# Testing packages.
?       cmd/cgo [no test files]
ok      cmd/fix 0.021s
ok      cmd/go  0.016s
ok      cmd/gofmt       0.046s
?       cmd/yacc        [no test files]
ok      archive/tar     0.088s
ok      archive/zip     0.290s
ok      bufio   0.066s
ok      bytes   0.074s
ok      compress/bzip2  0.095s
ok      compress/flate  0.459s
ok      compress/gzip   0.010s
ok      compress/lzw    0.069s
ok      compress/zlib   0.972s
ok      container/heap  0.007s
ok      container/list  0.003s
ok      container/ring  0.019s
?       crypto  [no test files]
ok      crypto/aes      0.055s
ok      crypto/cipher   0.005s
ok      crypto/des      0.014s
ok      crypto/dsa      0.015s
ok      crypto/ecdsa    0.029s
ok      crypto/elliptic 0.149s
ok      crypto/hmac     0.004s
ok      crypto/md5      0.053s
ok      crypto/rand     0.033s
ok      crypto/rc4      0.064s
ok      crypto/rsa      0.268s
ok      crypto/sha1     0.009s
ok      crypto/sha256   0.006s
ok      crypto/sha512   0.010s
ok      crypto/subtle   0.009s
ok      crypto/tls      2.255s
ok      crypto/x509     0.778s
?       crypto/x509/pkix        [no test files]
ok      database/sql    0.150s
ok      database/sql/driver     0.003s
ok      debug/dwarf     0.006s
ok      debug/elf       0.008s
ok      debug/gosym     0.003s
ok      debug/macho     0.003s
ok      debug/pe        0.008s
?       encoding        [no test files]
ok      encoding/ascii85        0.017s
ok      encoding/asn1   0.010s
ok      encoding/base32 0.003s
ok      encoding/base64 0.005s
ok      encoding/binary 0.033s
ok      encoding/csv    0.005s
ok      encoding/gob    0.032s
ok      encoding/hex    0.014s
ok      encoding/json   0.136s
ok      encoding/pem    0.008s
ok      encoding/xml    0.015s
ok      errors  0.003s
ok      expvar  0.006s
ok      flag    0.003s
ok      fmt     0.030s
ok      go/ast  0.053s
ok      go/build        0.079s
ok      go/doc  0.039s
ok      go/format       0.009s
ok      go/parser       0.028s
ok      go/printer      0.200s
ok      go/scanner      0.011s
ok      go/token        0.031s
?       hash    [no test files]
ok      hash/adler32    0.048s
ok      hash/crc32      0.004s
ok      hash/crc64      0.013s
ok      hash/fnv        0.003s
ok      html    0.044s
ok      html/template   0.082s
ok      image   0.062s
ok      image/color     0.008s
?       image/color/palette     [no test files]
ok      image/draw      0.100s
ok      image/gif       0.104s
ok      image/jpeg      0.100s
ok      image/png       0.036s
ok      index/suffixarray       0.007s
ok      io      0.135s
ok      io/ioutil       0.009s
ok      log     0.010s
ok      log/syslog      2.201s
ok      math    0.004s
ok      math/big        0.257s
ok      math/cmplx      0.004s
ok      math/rand       0.016s
ok      mime    0.035s
ok      mime/multipart  0.200s
panic: test timed out after 2m0s

goroutine 10 [running]:
runtime.panic(0x81977e0, 0x38a00810)
        /usr/obj/dports/lang/go/work/go/src/pkg/runtime/panic.c:266 +0x9a
        /usr/obj/dports/lang/go/work/go/src/pkg/testing/testing.go:596 +0xce
created by time.goFunc
        /usr/obj/dports/lang/go/work/go/src/pkg/time/sleep.go:123 +0x44

goroutine 1 [chan receive]:
testing.RunTests(0x8228148, 0x838b820, 0x7b, 0x7b, 0x1)
testing.Main(0x8228148, 0x838b820, 0x7b, 0x7b, 0x83867e0, ...)
        /usr/obj/dports/lang/go/work/go/src/pkg/testing/testing.go:403 +0x68
        net/_test/_testmain.go:325 +0x80

goroutine 3 [syscall]:

goroutine 9 [runnable]:
net.runtime_pollWait(0x285adae0, 0x77, 0x0)
net.(*pollDesc).Wait(0x38a40738, 0x77, 0x285aca48, 0x24)

/usr/obj/dports/lang/go/work/go/src/pkg/net/fd_poll_runtime.go:81 +0x32
net.(*pollDesc).WaitWrite(0x38a40738, 0x24, 0x285aca48)

/usr/obj/dports/lang/go/work/go/src/pkg/net/fd_poll_runtime.go:90 +0x30
net.(*netFD).connect(0x38a40700, 0x0, 0x0, 0x285acb98, 0x38a55660, ...)
        /usr/obj/dports/lang/go/work/go/src/pkg/net/fd_unix.go:86 +0x12b
net.(*netFD).dial(0x38a40700, 0x285acb68, 0x0, 0x285acb68, 0x38a55640, ...)
        /usr/obj/dports/lang/go/work/go/src/pkg/net/sock_posix.go:121 +0x26b
net.socket(0x81dc148, 0x3, 0x2, 0x1, 0x0, ...)
        /usr/obj/dports/lang/go/work/go/src/pkg/net/sock_posix.go:91 +0x333
net.internetSocket(0x81dc148, 0x3, 0x285acb68, 0x0, 0x285acb68, ...)
net.dialTCP(0x81dc148, 0x3, 0x0, 0x38a55640, 0x0, ...)
net.dialSingle(0x81dc148, 0x3, 0x38a650c0, 0xe, 0x0, ...)
        /usr/obj/dports/lang/go/work/go/src/pkg/net/dial.go:225 +0x31d
net.func·018(0x0, 0x0, 0x0, 0x0, 0x81dc148, ...)
        /usr/obj/dports/lang/go/work/go/src/pkg/net/dial.go:158 +0x90
net.dial(0x81dc148, 0x3, 0x285acb28, 0x38a55640, 0x58a61ea0, ...)
        /usr/obj/dports/lang/go/work/go/src/pkg/net/fd_unix.go:40 +0x33
net.(*Dialer).Dial(0x58a61ef0, 0x81dc148, 0x3, 0x38a650c0, 0xe, ...)
        /usr/obj/dports/lang/go/work/go/src/pkg/net/dial.go:165 +0x317
net.Dial(0x81dc148, 0x3, 0x38a650c0, 0xe, 0xffffff01, ...)
        /usr/obj/dports/lang/go/work/go/src/pkg/net/dial.go:138 +0x55
        /usr/obj/dports/lang/go/work/go/src/pkg/net/dial_test.go:150 +0x2d7
testing.tRunner(0x38a562a0, 0x838b838)
        /usr/obj/dports/lang/go/work/go/src/pkg/testing/testing.go:391 +0x85
created by testing.RunTests
FAIL    net     120.022s
ok      net/http        3.489s
ok      net/http/cgi    0.045s
ok      net/http/cookiejar      0.017s
ok      net/http/fcgi   0.026s
ok      net/http/httptest       0.005s
ok      net/http/httputil       0.010s
?       net/http/pprof  [no test files]
ok      net/mail        0.004s
ok      net/rpc 0.024s
ok      net/rpc/jsonrpc 0.011s
ok      net/smtp        0.005s
ok      net/textproto   0.012s
ok      net/url 0.013s
ok      os      0.504s
ok      os/exec 0.233s
ok      os/signal       0.659s
ok      os/user 0.005s
ok      path    0.006s
ok      path/filepath   0.032s
ok      reflect 0.051s
ok      regexp  0.060s
ok      regexp/syntax   0.729s
ok      runtime 11.307s
?       runtime/cgo     [no test files]
ok      runtime/debug   0.015s
ok      runtime/pprof   7.324s
?       runtime/race    [no test files]
ok      sort    0.066s
ok      strconv 0.452s
ok      strings 0.085s
ok      sync    0.034s
ok      sync/atomic     0.068s
ok      syscall 0.007s
ok      testing 0.003s
?       testing/iotest  [no test files]
ok      testing/quick   0.034s
ok      text/scanner    0.005s
ok      text/tabwriter  0.014s
ok      text/template   0.035s
ok      text/template/parse     0.005s
ok      time    6.700s
ok      unicode 0.005s
ok      unicode/utf16   0.005s
ok      unicode/utf8    0.010s
?       unsafe  [no test files]

More information about the Users mailing list