Created attachment 170228 [details] Patch to remove CC from go build go 1.6 introduced a default to clang when run under FreeBSD however for said tests to work CC must not be set. https://github.com/golang/go/commit/d8dd9c714b9700bfb3e79a06172d37738179d511 Setting CC when building go results in it thinking its using gcc and hence outputs incorrect warnings e.g. go test -race -v # os/user cc: warning: argument unused during compilation: '-pthread' # net cc: warning: argument unused during compilation: '-pthread'
A commit references this bug: Author: jlaffaye Date: Sat Feb 18 21:30:15 UTC 2017 New revision: 434383 URL: https://svnweb.freebsd.org/changeset/ports/434383 Log: - Update to 1.8 - Add option to disable SSE2 [1] - Remove CC when calling make.bash [2] PR: 210612, 209465 Changes: head/lang/go/Makefile head/lang/go/distinfo head/lang/go/pkg-plist