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

mpx opened this issue Aug 3, 2018 · 2 comments


None yet
2 participants
Copy link

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



This comment has been minimized.

Copy link

commented Aug 3, 2018

Change mentions this issue: cmd/go: disable ccache when setting HOME to non-existent dir


This comment has been minimized.

Copy link
Contributor Author

commented Aug 3, 2018

Example test failure:

--- FAIL: TestScript (0.00s)
    --- FAIL: TestScript/mod_case_cgo (0.16s)
            > env GO111MODULE=on
            > go get
            go: finding v1.0.0
            go: downloading v1.0.0
            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

@gopherbot gopherbot closed this in 490035b Aug 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.