Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of net/http causes build failures due to redeclaration [arm6l] [v1.12.5] #32382

Closed
rvprasad opened this issue Jun 2, 2019 · 2 comments
Closed
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@rvprasad
Copy link

rvprasad commented Jun 2, 2019

Please file a new issue at golang.org/issue/new using this template:

Please answer these questions before submitting your issue. Thanks!

What did you do?

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

https://play.golang.org/p/wdFUb7EqkCh fails to build on Raspberry Pi 3B model. The issue occurred in go v1.12.5 but not in go v1.12.4 or v1.11.10.

What did you expect to see?

I expected the creation of an executable named temp in folder temp.

What did you see instead?

The build failed with the following errors.

$ go build
# crypto/rc4
/opt/go/src/crypto/rc4/rc4_asm.go:15:18: (*Cipher).XORKeyStream redeclared in this block
        previous declaration at /opt/go/src/crypto/rc4/rc4.go:61:6
# crypto/cipher
/opt/go/src/crypto/cipher/xor_generic.go:16:6: xorBytes redeclared in this block
        previous declaration at /opt/go/src/crypto/cipher/xor.go:58:33
/opt/go/src/crypto/cipher/xor_generic.go:27:15: too many arguments in call to fastXORBytes
        have ([]byte, []byte, []byte, int)
        want ([]byte, []byte, []byte)
/opt/go/src/crypto/cipher/xor_generic.go:34:15: too many arguments in call to safeXORBytes
        have ([]byte, []byte, []byte, int)
        want ([]byte, []byte, []byte)
/opt/go/src/crypto/cipher/xor_generic.go:39:7: wordSize redeclared in this block
        previous declaration at /opt/go/src/crypto/cipher/xor.go:12:44
/opt/go/src/crypto/cipher/xor_generic.go:40:7: supportsUnaligned redeclared in this block
        previous declaration at /opt/go/src/crypto/cipher/xor.go:13:161
/opt/go/src/crypto/cipher/xor_generic.go:45:6: fastXORBytes redeclared in this block
        previous declaration at /opt/go/src/crypto/cipher/xor.go:17:37
/opt/go/src/crypto/cipher/xor_generic.go:65:6: safeXORBytes redeclared in this block
        previous declaration at /opt/go/src/crypto/cipher/xor.go:45:37
/opt/go/src/crypto/cipher/xor_generic.go:73:6: fastXORWords redeclared in this block
        previous declaration at /opt/go/src/crypto/cipher/xor.go:73:31
/opt/go/src/crypto/cipher/xor_generic.go:85:6: xorWords redeclared in this block
        previous declaration at /opt/go/src/crypto/cipher/xor.go:83:27
# bytes
/opt/go/src/bytes/bytes_decl.go:10:6: IndexByte redeclared in this block
        previous declaration at /opt/go/src/bytes/bytes.go:101:34
/opt/go/src/bytes/bytes_decl.go:17:6: Equal redeclared in this block
        previous declaration at /opt/go/src/bytes/bytes.go:18:25
/opt/go/src/bytes/bytes_decl.go:24:6: Compare redeclared in this block
        previous declaration at /opt/go/src/bytes/bytes.go:37:27
# strings
/opt/go/src/strings/strings_decl.go:8:6: IndexByte redeclared in this block
        previous declaration at /opt/go/src/strings/strings.go:150:34

System details

go version go1.12.5 linux/arm
GOARCH="arm"
GOBIN=""
GOCACHE="/home/life/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/life/go"
GOPROXY=""
GORACE=""
GOROOT="/opt/go"
GOTMPDIR=""
GOTOOLDIR="/opt/go/pkg/tool/linux_arm"
GCCGO="gccgo"
GOARM="6"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
uname -sr: Linux 4.14.34-hypriotos-v7+
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 9.9 (stretch)
Release:	9.9
Codename:	stretch
/lib/arm-linux-gnueabihf/libc.so.6: GNU C Library (Debian GLIBC 2.24-11+deb9u4) stable release version 2.24, by Roland McGrath et al.
@agnivade
Copy link
Contributor

agnivade commented Jun 2, 2019

I am unable to reproduce this by cross-compiling.

These type of errors usually occur when you have multiple conflicting Go installations. Have you tried wiping your entire GOROOT (/opt/go) and try installing Go 1.12.5 again ?

@agnivade agnivade added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Jun 2, 2019
@rvprasad
Copy link
Author

rvprasad commented Jun 2, 2019

Wiping the entire GOROOT and reinstalling fixed the issue. Sorry about the false alarm and thank you :)

@rvprasad rvprasad closed this as completed Jun 2, 2019
@golang golang locked and limited conversation to collaborators Jun 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants