libguestfs fails to build the Go bindings on arm64 and ppc64el

Bug #1431994 reported by Matthias Klose
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libguestfs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

https://launchpad.net/ubuntu/+source/libguestfs/1:1.26.7-1ubuntu6

not yet sure, if this is a go 1.4 issue or a gccgo issue.

Tags: ftbfs
Revision history for this message
Matthias Klose (doko) wrote :

yes, not compatible with go 1.4 (cgo directives inside normal comments).

Revision history for this message
Hilko Bengen (bengen) wrote : Re: [Bug 1431994] Re: libguestfs fails to build the Go bindings on arm64 and ppc64el

* Matthias Klose:

> yes, not compatible with go 1.4 (cgo directives inside normal comments).

Curious. I didn't notice any error message in the Ubuntu build logs that
points to such a problem.

Cheers,
-Hilko

Revision history for this message
Richard Jones (rjones-redhat) wrote :

Does golang actually exist for aarch64? I'm trying to compile it but it just complains about:

go tool dist: unknown architecture: aarch64

On Fedora we have gccgo:

go version go1.4 gccgo (GCC) 5.0.0 20150226 (Red Hat 5.0.0-0.18) linux/arm64

But it seems we need some other package called 'golang' which doesn't exist and doesn't compile as above.

Revision history for this message
Richard Jones (rjones-redhat) wrote :

OK ignore the previous comment, apparently gcc-go should be enough. But as you say it cannot compile the golang bindings on aarch64. Is there some guidance about how cgo bindings need to be changed for 1.4?

Revision history for this message
Matthias Klose (doko) wrote :

On 03/14/2015 01:44 PM, Richard Jones wrote:
> Does golang actually exist for aarch64? I'm trying to compile it but it
> just complains about:
>
> go tool dist: unknown architecture: aarch64
>
> On Fedora we have gccgo:
>
> go version go1.4 gccgo (GCC) 5.0.0 20150226 (Red Hat 5.0.0-0.18)
> linux/arm64

too old, you need trunk 20150313
https://gcc.gnu.org/ml/gcc-patches/2015-03/msg00697.html

Revision history for this message
Matthias Klose (doko) wrote :

On 03/14/2015 02:14 PM, Richard Jones wrote:
> OK ignore the previous comment, apparently gcc-go should be enough. But
> as you say it cannot compile the golang bindings on aarch64. Is there
> some guidance about how cgo bindings need to be changed for 1.4?

no, all I found was the documentation for the cgo command, and then experimented.

apparently the directives are not recognized when placed in /* ... */ style
comments, you have to use the // style.

Revision history for this message
Richard Jones (rjones-redhat) wrote :

Thanks.

I'm now using:

    go version go1.4.2 gccgo (GCC) 5.0.0 20150313 (Red Hat 5.0.0-0.19) linux/arm64

and it compiles and the test suite works fine. I don't see the bug that you're seeing on Ubuntu.

Anyway - I will enable golang support in Fedora Rawhide on all architectures and see how it goes. This will also help to catch regressions in future.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.