Mac XCode 5 build problem

221 views
Skip to first unread message

Gé Weijers

unread,
Sep 19, 2013, 3:04:18 PM9/19/13
to golan...@googlegroups.com
Hi,

It looks like building from source is no longer working on the Mac after installing the latest and greatest tool chain, XCode 5. Building packages works fine until it hits 'cgo'.
The Go source version is 1.1.2. 

XCode 5.0 removes the gcc frontend of LLVM, the 'gcc' command is just a wrapper around 'clang' now. And that breaks things.

.......
cmd/gofmt
testing/quick
cmd/fix
cmd/api
cmd/vet
runtime/cgo
# runtime/cgo
clang: warning: argument unused during compilation: '-pthread'
# runtime/cgo
clang: error: no such file or directory: 'libgcc.a'



--

minux

unread,
Sep 19, 2013, 4:04:16 PM9/19/13
to Gé Weijers, golang-nuts
I think the problem has been fixed on tip (i.e. Go 1.2 will be released with this fix), could you please give it a try?

Gé Weijers

unread,
Sep 19, 2013, 4:16:14 PM9/19/13
to minux, golang-nuts


On Thu, Sep 19, 2013 at 1:04 PM, minux <minu...@gmail.com> wrote:
I think the problem has been fixed on tip (i.e. Go 1.2 will be released with this fix), could you please give it a try?

It works just fine, no problems. Thanks.


--

Reply all
Reply to author
Forward
0 new messages