[pkg-golang-devel] Bug#852724: golang-1.7: go install -race fails with "permission denied"
Ayke van Laethem
aykevanlaethem at gmail.com
Thu Jan 26 18:47:32 UTC 2017
Package: golang-1.7
Version: 1.7.4-1
Severity: normal
Dear Maintainer,
Builting a trivial package using Go fails when enabling the race
condition checker. Example code:
---
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello, World")
}
---
Put in src/go-hello/hello.go, built using:
go install -race go-hello
Fails with the following error:
go install runtime/internal/sys:
mkdir /usr/lib/go-1.7/pkg/linux_amd64_race: permission denied
The official Go binaries do not have this problem (from https://golang.org/dl).
It looks like the race-enabled packages are not built. The directory
/usr/local/go/pkg/linux_amd64_race/ contains many packages, while
/usr/lib/go-1.7/pkg/linux_amd64_race/ does not exist.
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages golang-1.7 depends on:
ii golang-1.7-doc 1.7.4-1
ii golang-1.7-go 1.7.4-1
ii golang-1.7-src 1.7.4-1
golang-1.7 recommends no packages.
golang-1.7 suggests no packages.
-- no debconf information
More information about the pkg-golang-devel
mailing list