← Back to team overview

touch-packages team mailing list archive

[Bug 1361940] Re: patches for cgo on arm64

 

Got access to another machine and tested. My test was pretty basic,
using this file:

ubuntu@ms10-36-mcdivittB0:~$ cat trivialcgo.go 
package main

import "C"

func main() {

}

Even with the patch in https://bugs.launchpad.net/ubuntu/+source/gccgo-
go/+bug/1361946/comments/16 this file cannot be run:

ubuntu@ms10-36-mcdivittB0:~$ go run trivialcgo.go 
no buildable Go source files in /home/ubuntu

But after installing gccgo-4.9 from proposed, it can:

ubuntu@ms10-36-mcdivittB0:~$ go run trivialcgo.go 
ubuntu@ms10-36-mcdivittB0:~$ 

(I was going to test using docker, but I can't remember which version of
docker I used before: the one in trusty-updates does not build, I think
because it depends on the patching of the standard library archive/tar
package by add-tar-xattr-support.patch that the debian packaging for
golang in trusty carries but that gccgo does not. I can probably find a
version that works if you really want).

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gccgo-4.9 in Ubuntu.
https://bugs.launchpad.net/bugs/1361940

Title:
  patches for cgo on arm64

Status in gcc-4.9 package in Ubuntu:
  Fix Released
Status in gccgo-4.9 package in Ubuntu:
  Invalid
Status in gcc-4.9 source package in Trusty:
  Invalid
Status in gccgo-4.9 source package in Trusty:
  Fix Committed
Status in gcc-4.9 source package in Utopic:
  Fix Released
Status in gccgo-4.9 source package in Utopic:
  Invalid

Bug description:
  Hi, I'm attaching three patches that together with
  https://bugs.launchpad.net/ubuntu/+source/gccgo-go/+bug/1361946 makes
  cgo work with gccgo on arm64.

  0001-compiler-symbol-names-should-have-.-replaced-with-_.patch -- this isn't actually arm64 specific at all, but a general gccgo/cgo problem
  0002-debug-elf-support-arm64-relocations.patch -- cgo parses dwarf data from .o files and can't do it without this
  0003-Enable-cgo-by-default-on-linux-arm64.patch -- this means that I don't have to remember to run export CGO_ENABLED=1 all the time

  Let me know if you need any more info.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.9/+bug/1361940/+subscriptions