Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#44025 - [go] Missing library files for race detector

Attached to Project: Community Packages
Opened by CP (Lord Aro) - Tuesday, 03 March 2015, 01:48 GMT
Last edited by Alexander F. Rødseth (xyproto) - Friday, 26 June 2015, 21:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Vesa Kaihlavirta (vegai)
Alexander F. Rødseth (xyproto)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Go's race detector (http://blog.golang.org/race-detector)
Additional info:
* go 2:1.4.2-1


Steps to reproduce:
1. Install go
2. Acquire minimal example file below
3. Run `go install -race` on the package/file
4. Observe "go install os/signal: open /usr/lib/go/pkg/linux_amd64_race/os/signal.a: permission denied"

Should be noted that the equivalent file in /usr/lib/go/pkg/linux_amd64/os/signal.a exists fine
and that doing this with sudo works fine, "installing" the correct files


Minimal file:

package main

import "log"
import "os"
import "os/signal"

func main() {
log.Println("Hello!")
var c chan<- os.Signal
signal.Stop(c)
}
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Friday, 26 June 2015, 21:41 GMT
Reason for closing:  No response
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 03 March 2015, 10:04 GMT
Hi, thanks for reporting. I will look at this and perhaps include the race tool in the go package. If I'm not mistaken, this is similar to the problems that were with "go vet".
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 24 March 2015, 12:40 GMT
The problem actually isn't missing files. /usr/lib/go/pkg/linux_amd64_race/os/signal.a is there.

For the regular go package directory, /usr/lib/go/pkg/linux_amd64, running "go install std" in the .install file in the go package solves this.
However, I am yet to find an equivivalent command that works for /usr/lib/go/pkg/linux_amd64_race. More research is needed.
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 22 April 2015, 12:52 GMT
I tried copying over files from linux_amd64 to linux_adm64_race, but this did not work.

I'm unsure how the Go authors had intended that this was supposed to work, when installing Go with the system package manager.
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 29 April 2015, 22:46 GMT
But "go run -race" works as it should, right? Perhaps "go install -race" just has to be run as a privileged user, for now.

Please report this upstream to the Go developers, if you have the chance.

Loading...