[Bug 209465] lang/go: Thinks is compiled gcc

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 12 14:28:44 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209465

            Bug ID: 209465
           Summary: lang/go: Thinks is compiled gcc
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jlaffaye at FreeBSD.org
          Reporter: smh at FreeBSD.org
          Assignee: jlaffaye at FreeBSD.org
             Flags: maintainer-feedback?(jlaffaye at FreeBSD.org)

Created attachment 170228
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=170228&action=edit
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'

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list