[pkg-go] Bug#878771: golang-github-spf13-cobra FTBFS on mips: error: redefinition of 'AF_ALG'

Shengjing Zhu i at zhsj.me
Mon Oct 16 16:25:35 UTC 2017


Control: reassign -1 golang-golang-x-sys

On Mon, Oct 16, 2017 at 11:26 PM, Adrian Bunk <bunk at debian.org> wrote:
> Source: golang-github-spf13-cobra
> Version: 0.0~git20170731.0.b26b538-1
> Severity: serious
>
> https://buildd.debian.org/status/fetch.php?pkg=golang-github-spf13-cobra&arch=mips&ver=0.0~git20170731.0.b26b538-2&stamp=1508109561&raw=0
>
> ...
> src/golang.org/x/sys/unix/zerrors_linux_mips_mipso32.go:15:2: error: redefinition of 'AF_ALG'
>   AF_ALG                               = 0x26
>   ^
> src/golang.org/x/sys/unix/zerrors_linux_mips.go:14:2: note: previous definition of 'AF_ALG' was here
>   AF_ALG                               = 0x26
>   ^
> src/golang.org/x/sys/unix/zerrors_linux_mips_mipso32.go:16:2: error: redefinition of 'AF_APPLETALK'
>   AF_APPLETALK                         = 0x5
>   ^
> src/golang.org/x/sys/unix/zerrors_linux_mips.go:15:2: note: previous definition of 'AF_APPLETALK' was here
>   AF_APPLETALK                         = 0x5
>   ^
> src/golang.org/x/sys/unix/zerrors_linux_mips_mipso32.go:17:2: error: redefinition of 'AF_ASH'
>   AF_ASH                               = 0x12
>   ^
> src/golang.org/x/sys/unix/zerrors_linux_mips.go:16:2: note: previous definition of 'AF_ASH' was here
>   AF_ASH                               = 0x12
>   ^
> src/golang.org/x/sys/unix/zerrors_linux_mips_mipso32.go:18:2: error: redefinition of 'AF_ATMPVC'
>   AF_ATMPVC                            = 0x8
>   ^
> src/golang.org/x/sys/unix/zerrors_linux_mips.go:17:2: note: previous definition of 'AF_ATMPVC' was here
>   AF_ATMPVC                            = 0x8
>   ^
> ...
>
>
>
> I've reproduced the FTBFS with 0.0~git20170731.0.b26b538-1,
> so that's likely triggered by some change elsewhere (gccgo 7?).
>

It should be caused by gcc-7 7.2.0-10 which fixed #876639
We need to revert the commits in golang/x/sys package,
https://anonscm.debian.org/cgit/pkg-go/packages/golang-golang-x-sys.git/commit/?id=bb8f8e16490ce03ce084c8e170ea4c9e79f53ba2


> _______________________________________________
> Pkg-go-maintainers mailing list
> Pkg-go-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers



-- 
Best regards,
Shengjing Zhu



More information about the Pkg-go-maintainers mailing list