Skip to content
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

fails to build os/user when using clang #6662

Closed
gopherbot opened this issue Oct 25, 2013 · 2 comments
Closed

fails to build os/user when using clang #6662

gopherbot opened this issue Oct 25, 2013 · 2 comments

Comments

@gopherbot
Copy link

by briantreich:

What steps will reproduce the problem?
1. set $CC to clang & $CXX to clang++
2. follow the build instructions from http://golang.org/doc/install/source
3. notice the issue after running ./all.bash

What is the expected output?
net
os/user
testing
testing/iotest
testing/quick
crypto/x509
net/textproto

What do you see instead?
testing
testing/iotest
testing/quick
net
os/user
# os/user
lookup_unix.go:64: cannot use _Ctype_size_t(bufSize) (type C.size_t) as type C.ulong in
function argument
crypto/x509
net/textproto

Which compiler are you using?
installed llvm, clang, & clang++ from official repo
$ clang --version
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix

Which operating system are you using?
Arch Linux installed from the 2013.10.01 release
$ uname -a
Linux hostname 3.11.6-1-ARCH #1 SMP PREEMPT Fri Oct 18 23:22:36 CEST 2013 x86_64
GNU/Linux

Which version are you using?  (run 'go version')
after setting $CC & $CXX to gcc & g++ and grabbing a fresh clone I successfully
built Go and it reports:
$ go version
go version go1.1.2 linux/amd64

Please provide any additional information below.
When I built Go using gcc it ran tests after building the packages. When I failed to
build using clang it seemed to successfully build all the other packages but kicked me
back to the prompt afterward with no testing or additional output.
@dominikh
Copy link
Member

Comment 1:

This is fixed in tip.

@bradfitz
Copy link
Contributor

Comment 2:

Status changed to Duplicate.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants