GOPATH="${srcdir}" go get -d -u "${_site}/${pkgname}" ... GOPATH="${srcdir}" GOOS=linux GOARCH=arm \
CC=arm-unknown-linux-gnueabihf-gcc CGO_ENABLED=1 \ go install -v -ldflags='-s -w -extld=$CC' "${_site}/${pkgname}"
runtime/cgo go install runtime/cgo: open /usr/lib/go/pkg/linux_arm/runtime/cgo.a: permission denied
$ ls -l /lib/go/pkg/*/runtime/cgo* -rw-r--r-- 1 root root 64874 Sep 8 00:13 /lib/go/pkg/linux_amd64/runtime/cgo.a -rw-r--r-- 1 root root 65054 Sep 8 00:18 /lib/go/pkg/linux_amd64_race/runtime/cgo.a -rw-r--r-- 1 root root 2642 Oct 25 03:54 /lib/go/pkg/linux_arm/runtime/cgo.a
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Oct 25, 2016 3:49 PM, "Ian Lance Taylor" <ia...@golang.org> wrote:
>
> On Tue, Oct 25, 2016 at 2:23 PM, Liam <networ...@gmail.com> wrote:
> > What I wanted was the magic incantation (documented nowhere) for linux_arm
> > installation:
> >
> > GOOS=linux GOARCH=arm CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc go install
> > -v -a std
> > GOOS=linux GOARCH=arm CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc go install
> > -v -a cmd
> >
> > where CC varies for the toolchain installed.
> >
> > Would the maintainers mind if I filed an issue for this under the docs tag?
>
> Even better than an issue would be a change (see
> https://golang.org/doc/contribute.html). But an issue is still OK,
> but please tell us where it should be documented.
Filed issue here
https://github.com/golang/go/issues/17620