New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: use clang instead of gcc on OS X #5822
Labels
Milestone
Comments
OS X 10.9 Mavericks is going to ship a "gcc" that just runs clang. If we say gcc we expect gcc. If we say clang we expect clang. Getting clang when we expect gcc does not work. Therefore we need to start using clang by default. See issue #5926. Status changed to Accepted. |
Which version of clang comes with Mavericks? FWIW, clang trunk (future 3.4), fails to run make.bash with the following error: % $CC --version clang version 3.4 (trunk 187311) Target: x86_64-apple-darwin12.4.0 Thread model: posix % ./all.bash # Building C bootstrap tool. cmd/dist # usual output # # ... image/draw image/gif image/jpeg image/png runtime/debug runtime/race net os/user testing testing/iotest testing/quick text/scanner # os/user lookup_unix.go:98: pwd.pw_uid undefined (type [0]byte has no field or method pw_uid) lookup_unix.go:99: pwd.pw_gid undefined (type [0]byte has no field or method pw_gid) lookup_unix.go:100: pwd.pw_name undefined (type [0]byte has no field or method pw_name) lookup_unix.go:101: pwd.pw_gecos undefined (type [0]byte has no field or method pw_gecos) lookup_unix.go:102: pwd.pw_dir undefined (type [0]byte has no field or method pw_dir) # net cgo_unix.go:42: hints.ai_socktype undefined (type [0]byte has no field or method ai_socktype) cgo_unix.go:43: hints.ai_protocol undefined (type [0]byte has no field or method ai_protocol) cgo_unix.go:45: hints.ai_socktype undefined (type [0]byte has no field or method ai_socktype) cgo_unix.go:46: hints.ai_protocol undefined (type [0]byte has no field or method ai_protocol) cgo_unix.go:53: hints.ai_family undefined (type [0]byte has no field or method ai_family) cgo_unix.go:55: hints.ai_family undefined (type [0]byte has no field or method ai_family) cgo_unix.go:63: r.ai_next undefined (type *[0]byte has no field or method ai_next) cgo_unix.go:64: r.ai_family undefined (type *[0]byte has no field or method ai_family) cgo_unix.go:68: r.ai_addr undefined (type *[0]byte has no field or method ai_addr) cgo_unix.go:72: r.ai_addr undefined (type *[0]byte has no field or method ai_addr) cgo_unix.go:72: too many errors |
This issue was closed by revision 2ddb672. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: