We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To summup I tried to buid an arm geth docker container
FROM golang:buster RUN apt-get update && apt-get -y upgrade && apt-get -y install --no-install-recommends bash git build-essential autoconf automake && git clone --depth 1 --recurse-submodules --shallow-submodules https://github.com/ethereum/go-ethereum.git /go-ethereum && cd /go-ethereum && make geth
And I got this error
env GO111MODULE=on go run build/ci.go install ./cmd/geth >>> /usr/local/go/bin/go build -ldflags -X main.gitCommit=e74bd587f730fcdb5a9b625390da8aa85a2cbbc8 -X main.gitDate=20210205 -trimpath -v -o /go-ethereum/build/bin/geth ./cmd/geth github.com/ethereum/go-ethereum/metrics # github.com/ethereum/go-ethereum/metrics metrics/cpu_syscall.go:34:47: invalid operation: (usage.Utime.Sec + usage.Stime.Sec) * 100 + int64(usage.Utime.Usec + usage.Stime.Usec) / 10000 (mismatched types int32 and int64) util.go:47: exit status 2 exit status 1 make: *** [Makefile:16: geth] Error 1
The code involved return (usage.Utime.Sec+usage.Stime.Sec)*100 + int64(usage.Utime.Usec+usage.Stime.Usec)/10000 //nolint:unconvert
return (usage.Utime.Sec+usage.Stime.Sec)*100 + int64(usage.Utime.Usec+usage.Stime.Usec)/10000 //nolint:unconvert
The code corrected return int64(usage.Utime.Sec+usage.Stime.Sec)*100 + int64(usage.Utime.Usec+usage.Stime.Usec)/10000 //nolint:unconvert
return int64(usage.Utime.Sec+usage.Stime.Sec)*100 + int64(usage.Utime.Usec+usage.Stime.Usec)/10000 //nolint:unconvert
The text was updated successfully, but these errors were encountered:
Yep, that's a regression, we already have a fix for it here: #22262
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
To summup I tried to buid an arm geth docker container
And I got this error
The code involved
return (usage.Utime.Sec+usage.Stime.Sec)*100 + int64(usage.Utime.Usec+usage.Stime.Usec)/10000 //nolint:unconvert
The code corrected
return int64(usage.Utime.Sec+usage.Stime.Sec)*100 + int64(usage.Utime.Usec+usage.Stime.Usec)/10000 //nolint:unconvert
The text was updated successfully, but these errors were encountered: