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
cmd/go: Go compiler tests fail with ccache #17668
Comments
Considering that Go isn't written in C, how much does this really matter? |
@bradfitz It doesn't matter but it's confusing to have the tests fail. Sent a CL to avoid the confusion in this case. |
CL https://golang.org/cl/32328 mentions this issue. |
Re cl/32328 (setting CCACHE_DIR), would it be better to create an empty temporary directory for the duration of the test and remove it afterwards? This is a more general solution that gives the sub processes a clean environment without gitconfig,.., and it isn't ccache specific. |
@mpx I don't really have an opinion. Want to send a CL? |
Build works now. I'll leave it there - thanks for the quick fix. |
Go compiler tests fail at 0f06d0a when ccache is installed. Ccache is unable to cache objects since $HOME is not writeable. Ccache is installed by default on some Linux distros (eg, "C Development Tools and Libraries" package group on Fedora).
@rsc Perhaps TestMain could create an empty test directory for $HOME and remove it afterwards?
Using go version go1.7.3 linux/amd64 for bootstrap.
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/z/home/mark/Prog/go"
GORACE=""
GOROOT="/home/mark/go"
GOTOOLDIR="/home/mark/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build484003543=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
cmd/go tests fail with:
The text was updated successfully, but these errors were encountered: