Closed icexin closed 4 years ago
Output of go env:
go env
ARCH="arm" GOBIN="" GOCACHE="/home/pi/.cache/go-build" GOENV="/home/pi/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="arm" GOHOSTOS="linux" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/pi/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/home/pi/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/home/pi/local/go/pkg/tool/linux_arm" GCCGO="gccgo" GOARM="6" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build485950427=/tmp/go-build -gno-record-gcc-switches"
Steps to reproduce:
$ cd wagon/cmd/wasm-run && go build ../../exec/internal/compile/native.go:38:37: constant 4294967040 overflows int ../../exec/internal/compile/native.go:63:9: constant 4294967040 overflows int ../../exec/internal/compile/native_exec.go:16:23: undefined: jitcall ../../exec/internal/compile/scanner.go:95:15: undefined: AMD64Backend ../../exec/internal/compile/scanner.go:100:15: undefined: AMD64Backend
thanks for the issue. it's actually a more general 32b/64b build problem.
I've created #180 to fix the build issue (but some tests do fail.)
Output of
go env
:Steps to reproduce: