Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2016 14:28:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 209465] lang/go: Thinks is compiled gcc
Message-ID:  <bug-209465-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209465

            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@FreeBSD.org
          Reporter: smh@FreeBSD.org
          Assignee: jlaffaye@FreeBSD.org
             Flags: maintainer-feedback?(jlaffaye@FreeBSD.org)

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209465-13>