• Bug#841645: golang-go: There is no mips64el support

    From Mathieu Malaterre@21:1/5 to All on Wed Jun 7 12:30:03 2017
    XPost: linux.debian.bugs.dist

    Hi Tianon,

    The main issue with getting it in essentially boils down to gccgo and upstream Go disagreeing on the GOARCH for mips64el (gccgo uses
    "mipsn64"[0]), which makes bootstrapping difficult.

    [0]: https://groups.google.com/d/topic/golang-nuts/waTy56I_KWQ/discussion


    Are you saying that the patch is more complex than just
    s/mipsn64/mips64el/ ? Or are you saying you do not want to maintain
    such patch until upstream add an alias for mips64el ?

    Thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tianon Gravi@21:1/5 to Mathieu Malaterre on Tue Jun 13 20:50:01 2017
    XPost: linux.debian.bugs.dist

    On 7 June 2017 at 02:23, Mathieu Malaterre <malat@debian.org> wrote:
    Are you saying that the patch is more complex than just
    s/mipsn64/mips64el/ ? Or are you saying you do not want to maintain
    such patch until upstream add an alias for mips64el ?

    Yes, the patch is more complex than simply adjusting the GOARCH values
    from what I've seen -- the crux of the issue is that we need Go
    available in order to build Go, and gccgo has been our simplest source
    for doing so (especially since it makes backports easy to bootstrap
    too), but this discrepancy between GOARCH in gccgo vs cgo causes build
    issues when doing so.

    In theory we should be able to do a cross-compiling bootstrap of
    mips64el, but that increases the complexity level significantly as
    well (if not in the packaging source, then in the upload procedure to
    get all the right bits in place in the archive).


    ♥,
    - Tianon
    4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From James Cowgill@21:1/5 to Tianon Gravi on Fri Jun 23 01:10:02 2017
    XPost: linux.debian.bugs.dist
    To: malat@debian.org (Mathieu Malaterre)
    Copy: 841645@bugs.debian.org
    Copy: debian-mips@lists.debian.org

    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --uwOhrS89PSoVbPdrbksS2prgmRDCd3uwN
    Content-Type: text/plain; charset=utf-8
    Content-Transfer-Encoding: quoted-printable

    Hi,

    On 13/06/17 18:39, Tianon Gravi wrote:
    On 7 June 2017 at 02:23, Mathieu Malaterre <malat@debian.org> wrote:
    Are you saying that the patch is more complex than just
    s/mipsn64/mips64el/ ? Or are you saying you do not want to maintain
    such patch until upstream add an alias for mips64el ?

    Yes, the patch is more complex than simply adjusting the GOARCH values
    from what I've seen -- the crux of the issue is that we need Go
    available in order to build Go, and gccgo has been our simplest source
    for doing so (especially since it makes backports easy to bootstrap
    too), but this discrepancy between GOARCH in gccgo vs cgo causes build
    issues when doing so.

    In theory we should be able to do a cross-compiling bootstrap of
    mips64el, but that increases the complexity level significantly as
    well (if not in the packaging source, then in the upload procedure to
    get all the right bits in place in the archive).

    FYI my patches to fix all this in gccgo were merged today (with the
    exception of one minor issue in the testsuite I need to fixup). They'll
    need backporting to gcc-7 to be usable for Debian though (or wait ages
    for gcc-8).

    While I've had success building golang with these patches on mips64el,
    there does seem to be a few things to iron out with mips and mipsel at
    the moment. Those arches run out of memory frequently while building
    golang. I am also aware of a kernel bug which causes the build to
    spuriously fail on 32-bits.

    James


    --uwOhrS89PSoVbPdrbksS2prgmRDCd3uwN--

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE+Ixt5DaZ6POztUwQx/FnbeotAe8FAllMP60ACgkQx/Fnbeot Ae8PyA//Y6LUTBIAqgHeyzgWoSODjsgWThCg6XMXumCnSOPUGLVC5osIkMKnrlej lN+9qf/65HmHFKdjasvDl/hmTT0breP/JdQ2lR3y81E9wnShcr9Ewfd9k4EVr96t lCRfkalR34hX+VEXo3XTUXNSgBcroQBD+Op1s2gdUmfaycvU66a+iACpJB0l4nEE 1rshfmbQDenvvkzfoHh924mGg9H+yXCWNqGvEefc+cy2aAm7orEolfq/mYIZ5xD3 8vG7m1VFm9a7s2Tr2zeSMalDlivaj42yzJIVQaW85oYAFWJ8GyVbzTfSADDIvdO/ Y7E6YTxbl662Lar/G/DvtALXBY7Ajay9N4H4RzgMRaSIrRqZUgAyEy8fNYMVjatv +0Yg1C5+LW4QWCTWFMxtFUNebLBGjSYju22BJP7qgpVyArBUlPWnkJ0+t6pqyZhP xao3eUmenWKskfEIih/KdKTsbeyN6UKpddcNpBNJBj0Sj3U6gUxhRM/OTU+luZLj TMzKwwlqCUV5yr70Kn0SqolBM2suBpQokr/N2E2Ep7wwdxxRMyVt5nHgAY0kQ2Dh a7Osy7zdiH1Pvmf5iEqH+D6Un8le0IZ/IOG8K6Csv+5HYk645jWFVIz0jURxUGnz /aYPJhHvp2CMrdfMZ1XHxpIZqvuwGnJvKZHHBpN8RNIkdT7XgbI=
    =z9E2
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)