Skip to content

current platform is not supported-->mips64 #417

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

Closed
w345731923 opened this issue Jul 29, 2020 · 2 comments
Closed

current platform is not supported-->mips64 #417

w345731923 opened this issue Jul 29, 2020 · 2 comments

Comments

@w345731923
Copy link
Contributor

[root@localhost bin]# go get github.com/wrouesnel/postgres_exporter
go: github.com/wrouesnel/postgres_exporter upgrade => v0.8.0
go: finding module for package github.com/magefile/mage/mg
go: finding module for package github.com/mholt/archiver
go: finding module for package github.com/magefile/mage/sh
go: finding module for package github.com/magefile/mage/target
go: found github.com/magefile/mage/mg in github.com/magefile/mage v1.10.0
go: found github.com/mholt/archiver in github.com/mholt/archiver v3.1.1+incompatible
go: finding module for package github.com/golang/snappy
go: finding module for package github.com/xi2/xz
go: finding module for package github.com/nwaples/rardecode
go: finding module for package github.com/pierrec/lz4
go: finding module for package github.com/ulikunitz/xz
go: finding module for package github.com/dsnet/compress/bzip2
go: found github.com/dsnet/compress/bzip2 in github.com/dsnet/compress v0.0.1
go: found github.com/golang/snappy in github.com/golang/snappy v0.0.1
go: found github.com/nwaples/rardecode in github.com/nwaples/rardecode v1.1.0
go: found github.com/pierrec/lz4 in github.com/pierrec/lz4 v2.5.2+incompatible
go: found github.com/ulikunitz/xz in github.com/ulikunitz/xz v0.5.7
go: found github.com/xi2/xz in github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8
can't load package: package github.com/wrouesnel/postgres_exporter: build constraints exclude all Go files in /root/GOPATH/pkg/mod/github.com/wrouesnel/[email protected]

the environment variables
[root@localhost go]# go env
GO111MODULE="on"
GOARCH="mips64le"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="mips64le"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/GOPATH"
GOPRIVATE=""
GOPROXY="https://goproxy.io"
GOROOT="/opt/go/go1.14.6"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/go/go1.14.6/pkg/tool/linux_mips64le"
GCCGO="gccgo"
GOMIPS64="hardfloat"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -mabi=64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build437617026=/tmp/go-build -gno-record-gcc-switches"

Hos can I solve this problem,thanks

@w345731923
Copy link
Contributor Author

I cleared out GOPROXY and it's ok,but run show error....

[root@localhost postgres_exporter]# go run mage.go binary
2020/07/29 13:24:41 exec: git rev-parse --abbrev-ref HEAD
2020/07/29 13:24:41 exec: git rev-parse HEAD
2020/07/29 13:24:41 exec: git describe --dirty
2020/07/29 13:24:41 exec: git describe --abbrev=0
2020/07/29 13:24:41 exec: go list ./...
Error: current platform is not supported
exit status 1

I find the source code.
Supported platforms in the source code has no mips64, mips64le, mips, mipsle
The MIPS instruction set, big- and little-endian, 64- and 32-bit.

If I want to compile the MIPS64,
What should I do?

@w345731923 w345731923 changed the title go get github.com/wrouesnel/postgres_exporter show error current platform is not supported-->mips64 Jul 29, 2020
@w345731923
Copy link
Contributor Author

lol,solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant