Can't build in click chroot (Ubuntu 14.10 / Go 1.2)

Bug #1431534 reported by Chris Wayne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
go-unityscopes
Fix Released
Critical
Unassigned

Bug Description

Since the latest changes, I can no longer build in my click chroot, I get a bunch of the following error:

Go type not supported in export: [0]byte

Related branches

Revision history for this message
Chris Wayne (cwayne) wrote :

Chroot was setup to build following these instructions btw: http://blog.surgut.co.uk/2014/06/cross-compile-go-code-including-cgo.html

Revision history for this message
Chris Wayne (cwayne) wrote :

I get the same thing when I try to build on the device, though on my host machine it builds fine

Revision history for this message
Chris Wayne (cwayne) wrote :

So this works fine in a vivid chroot, just not a utopic/RTM one, so seems to be dependent ont he Go vervsion

Revision history for this message
James Henstridge (jamesh) wrote :

It seems we broke Go 1.2 compatibility with the latest round of changes. Hopefully the needed changes to regain that compatibility won't be too big.

summary: - Can't build in click chroot
+ Can't build in click chroot with Go 1.2
summary: - Can't build in click chroot with Go 1.2
+ Can't build with Go 1.2
Changed in go-unityscopes:
status: New → In Progress
importance: Undecided → Critical
Revision history for this message
Chris Wayne (cwayne) wrote : Re: Can't build with Go 1.2

With the attached branch in a utopic chroot with ubuntu-sdk-14.10 framework, I get the following:

# launchpad.net/~jamesh/go-unityscopes/bug-1431534
go/src/launchpad.net/~jamesh/go-unityscopes/bug-1431534/reply.cpp: In function 'void search_reply_push_filters(uintptr_t*, void*, void*, char**)':
go/src/launchpad.net/~jamesh/go-unityscopes/bug-1431534/reply.cpp:62:34: error: 'deserialize' is not a member of 'unity::scopes::FilterBase'
             filters.emplace_back(FilterBase::deserialize(f.get_dict()));
                                  ^
go/src/launchpad.net/~jamesh/go-unityscopes/bug-1431534/reply.cpp:64:29: error: 'deserialize' is not a member of 'unity::scopes::FilterState'
         auto filter_state = FilterState::deserialize(filter_state_var.get_dict());

(with libunity-scopes-dev 0.6.7+14.10.20141010.1-0ubuntu1)

Revision history for this message
James Henstridge (jamesh) wrote :

Is this something different to what's in ubuntu-rtm? The current version there should be 0.6.9+15.04.20150126~rtm-0ubuntu1:

https://launchpad.net/ubuntu-rtm/+source/unity-scopes-api

Revision history for this message
Chris Wayne (cwayne) wrote :

I'll double check, I must have been using a utopic chroot

Revision history for this message
James Henstridge (jamesh) wrote :

An update on this issue: we've branched the binding as lp:go-unityscopes/v2 as a target for changes that are not compatible with ubuntu-rtm now.

I've also verified that the lp:go-unityscopes/v1 branch is again usable to compile scopes on ubuntu-rtm on ARM.

You'll still run into problems building in a "click chroot" environment though, since it will give you an Ubuntu 14.10 environment which is not representative of what is actually on the phone. If you manually upgrade the libunity-scopes packages within the chroot, you might have some luck. It's a shame that our tools don't make this easier :-(

summary: - Can't build with Go 1.2
+ Can't build in click chroot (Ubuntu 14.10 / Go 1.2)
Changed in go-unityscopes:
status: In Progress → Fix Committed
dobey (dobey)
Changed in go-unityscopes:
status: Fix Committed → Fix Released
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.