Skip to content

GO runtime: Can not compile on ARM #1858

@milanaleksic

Description

@milanaleksic

As presented in the reproduction scenario, current code that constitutes Go runtime the can't be compiled if target is linux + ARM architecture (no problem if I remove GOARCH=arm from the request below). Currently reproducible in my project wallabago, commit 48a5e22d2336c12fe24ab410ab260c79809623b4.

milan@dell /opt/go/src/github.com/milanaleksic/wallabago/cmd/main → GOARCH=arm go build -o wallabago
# github.com/milanaleksic/wallabago/vendor/github.com/antlr/antlr4/runtime/Go/antlr
../../vendor/github.com/antlr/antlr4/runtime/Go/antlr/utils.go:368: constant 3432918353 overflows int
../../vendor/github.com/antlr/antlr4/runtime/Go/antlr/utils.go:374: constant 3864292196 overflows int
../../vendor/github.com/antlr/antlr4/runtime/Go/antlr/utils.go:381: constant 2246822507 overflows int
../../vendor/github.com/antlr/antlr4/runtime/Go/antlr/utils.go:383: constant 3266489909 overflows int

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions