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

OPA 0.14 fails to compile on 386 #1815

Closed
jpreese opened this issue Oct 4, 2019 · 0 comments · Fixed by #1829
Closed

OPA 0.14 fails to compile on 386 #1815

jpreese opened this issue Oct 4, 2019 · 0 comments · Fixed by #1829
Assignees
Labels

Comments

@jpreese
Copy link
Member

jpreese commented Oct 4, 2019

Expected Behavior

Importing the topdown package allows the project to compile successfully

Actual Behavior

Compilation fails

Steps to Reproduce the Problem

  1. Import the topdown package into a project
  2. set GOARCH=386
  3. go build

Additional Info

stack trace

$ go build
# github.com/open-policy-agent/opa/topdown
C:\Users\jpree\go\pkg\mod\github.com\open-policy-agent\opa@v0.14.0\topdown\parse_bytes.go:84:5: constant 1000000000000 overflows multiplier
C:\Users\jpree\go\pkg\mod\github.com\open-policy-agent\opa@v0.14.0\topdown\parse_bytes.go:86:5: constant 1099511627776 overflows multiplier

go env

$ go env
set GO111MODULE=
set GOARCH=386
set GOBIN=C:\Go\bin
set GOCACHE=C:\Users\jpree\AppData\Local\go-build
set GOENV=C:\Users\jpree\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\jpree\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set GO386=sse2
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=C:\k2\conftest\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m32 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\jpree\AppData\Local\Temp\go-build389625958=/tmp/go-build -gno-record-gcc-switches
@tsandall tsandall added the bug label Oct 7, 2019
@tsandall tsandall self-assigned this Oct 7, 2019
tsandall added a commit to tsandall/opa that referenced this issue Oct 7, 2019
Fixes open-policy-agent#1815

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
tsandall added a commit that referenced this issue Oct 7, 2019
Fixes #1815

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants