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

cmd/go: compiler tests fail with ccache #26789

Closed
mpx opened this issue Aug 3, 2018 · 2 comments
Closed

cmd/go: compiler tests fail with ccache #26789

mpx opened this issue Aug 3, 2018 · 2 comments

Comments

@mpx
Copy link
Contributor

mpx commented Aug 3, 2018

Go compiler tests started failing at 3acd257 when ccache is installed. The new Go test requires CGO and sets HOME to a non-existent directory. This break since ccache is unable to create its cache directory. A simple fix is to set CCACHE_DISABLE=1 to force ccache to use the real compiler. Fixing this fault will avoid confusing failures on systems where ccache is the default system compiler (eg, Fedora).

Related: #17668

@ianlancetaylor

@gopherbot
Copy link

Change https://golang.org/cl/127775 mentions this issue: cmd/go: disable ccache when setting HOME to non-existent dir

@mpx
Copy link
Contributor Author

mpx commented Aug 3, 2018

Example test failure:

--- FAIL: TestScript (0.00s)
    --- FAIL: TestScript/mod_case_cgo (0.16s)
        script_test.go:150:
            > env GO111MODULE=on
            > go get rsc.io/CGO
            [stderr]
            go: finding rsc.io/CGO v1.0.0
            go: downloading rsc.io/CGO v1.0.0
            # rsc.io/CGO
            ccache: error: Failed to create directory /no-home/.ccache/tmp: Permission denied
            [exit status 2]
            FAIL: testdata/script/mod_case_cgo.txt:3: unexpected command failure

@golang golang locked and limited conversation to collaborators Aug 3, 2019
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

2 participants