golang is not aware of architectures supported by gccgo

Bug #1429872 reported by Matthias Klose
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
docker.io (Ubuntu)
Invalid
Undecided
Unassigned
golang (Ubuntu)
Fix Released
Undecided
Unassigned
golang-pty (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

docker.io is now built on arm64 (see the ~doko/toolchain PPA). However it now fails to build on the architectures where it is built by golang (any version up to 1.4.2, as found in the same PPA).

In golang-pty, a file ztypes_arm64.go is added for the new architecture, however this doesn't seem to be recognized as architecture specific file.

then trying to build docker on i386, amd64 and armhf, you see:

---> Making bundle: dynbinary (in bundles/1.3.3/dynbinary)
# github.com/kr/pty
obj-i686-linux-gnu/src/github.com/kr/pty/ztypes_arm64.go:8: _C_int redeclared in this block
        previous declaration at obj-i686-linux-gnu/src/github.com/kr/pty/ztypes_386.go:7
obj-i686-linux-gnu/src/github.com/kr/pty/ztypes_arm64.go:9: _C_uint redeclared in this block
        previous declaration at obj-i686-linux-gnu/src/github.com/kr/pty/ztypes_386.go:8
obj-i686-linux-gnu/src/github.com/kr/pty/ztypes_ppc.go:8: _C_int redeclared in this block
        previous declaration at obj-i686-linux-gnu/src/github.com/kr/pty/ztypes_arm64.go:8
obj-i686-linux-gnu/src/github.com/kr/pty/ztypes_ppc.go:9: _C_uint redeclared in this block
        previous declaration at obj-i686-linux-gnu/src/github.com/kr/pty/ztypes_arm64.go:9

marking the ztypes_arm64.go file with

// + build !amd64 !amd64p32 !386 !arm

doesn't help.

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

the "build" lines are whitespace sensitive, no space between the plus and build, and these lines must be followed by an empty line ...

Changed in golang-pty (Ubuntu):
status: New → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

now fixed in gccgo's library, and upstream in golang

Changed in golang (Ubuntu):
status: New → Fix Released
Changed in docker.io (Ubuntu):
status: New → Invalid
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.