Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/sys/unix: Does not build on mipsel/mips64el/alpha/powerpc with gccgo #18031
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
@TheTincho: Thank you for bringing up this issue and for pioneering the solution for mips64le, which can be found in https://anonscm.debian.org/cgit/pkg-go/packages/golang-golang-x-sys.git/commit/?id=f11a3adc214152ad98e27e7896b697cfcc376959
For probably more than I year, I had been scratching my head over this, namely, Hugo failing to build on MIPS and Alpha (etc.) architectures on Debian buildd (see https://buildd.debian.org/status/package.php?p=hugo&suite=sid). Your solution opened my eyes!
A few things happened since you visited the issue in November 2016:
And it turns out that gccgo reports the same GOARCH of
Anyhow, expanding on @TheTincho's idea, I came up with something like this:
to make sure gccgo can see these files, and then run gccgo (e.g.
For completeness, here is what I have actually used in debian/rules for the golang-golang-x-sys package: https://anonscm.debian.org/cgit/pkg-go/packages/golang-golang-x-sys.git/commit/?id=bb8f8e16490ce03ce084c8e170ea4c9e79f53ba2
I do wonder though:
My apologies if these questions sound silly, or have been answered elsewhere before.