Skip to content

Installation failure on 32bit architecture #4097

@equalsgibson

Description

@equalsgibson

Version

1.30.0

What happened?

Summary

When using sqlc in CI/CD on 32bit architecture (linux/386), go install fails to complete with the error shown below:

$ go install github.com/sqlc-dev/sqlc/cmd/sqlc@v1.30.0
go: downloading github.com/sqlc-dev/sqlc v1.30.0
go: downloading github.com/cubicdaiya/gonp v1.0.4
go: downloading github.com/go-sql-driver/mysql v1.9.3
go: downloading github.com/google/cel-go v0.26.1
go: downloading github.com/spf13/cobra v1.9.1
go: downloading github.com/jackc/pgx/v5 v5.7.5
go: downloading github.com/spf13/pflag v1.0.7
go: downloading golang.org/x/sync v0.16.0
go: downloading google.golang.org/grpc v1.75.0
go: downloading google.golang.org/protobuf v1.36.8
go: downloading modernc.org/sqlite v1.38.2
go: downloading filippo.io/edwards25519 v1.1.0
go: downloading github.com/tetratelabs/wazero v1.9.0
go: downloading github.com/riza-io/grpc-go v0.2.0
go: downloading cel.dev/expr v0.24.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20250707201910-8d1bb00bc6a7
go: downloading golang.org/x/text v0.26.0
go: downloading github.com/fatih/structtag v1.2.0
go: downloading github.com/jinzhu/inflection v1.0.0
go: downloading github.com/pingcap/tidb/pkg/parser v0.0.0-20250324122243-d51e00e5bbf0
go: downloading github.com/pganalyze/pg_query_go/v6 v6.1.0
go: downloading github.com/antlr4-go/antlr/v4 v4.13.1
go: downloading golang.org/x/net v0.41.0
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7
go: downloading github.com/stoewer/go-strcase v1.2.0
go: downloading github.com/jackc/pgpassfile v1.0.0
go: downloading github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761
go: downloading golang.org/x/crypto v0.39.0
go: downloading github.com/jackc/puddle/v2 v2.2.2
go: downloading github.com/pingcap/errors v0.11.5-0.20240311024730-e056997136bb
go: downloading github.com/pingcap/failpoint v0.0.0-20240528011301-b51a646c7c86
go: downloading golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b
go: downloading golang.org/x/sys v0.34.0
go: downloading github.com/pingcap/log v1.1.0
go: downloading go.uber.org/zap v1.27.0
go: downloading go.uber.org/atomic v1.11.0
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.2.1
go: downloading go.uber.org/multierr v1.11.0
go: downloading modernc.org/libc v1.66.3
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
# github.com/pingcap/tidb/pkg/parser
/go/pkg/mod/github.com/pingcap/tidb/pkg/parser@v0.0.0-20250324122243-d51e00e5bbf0/hintparser.go:1358:69: cannot use math.MaxInt64 (untyped int constant 9223372036854775807) as int value in argument to ErrWarnMemoryQuotaOverflow.GenWithStackByArgs (overflows)

Reproduction steps:

  1. Using docker, pull and start the official Go 1.25.1 image:
    docker pull golang:1.25.1-bookworm@sha256:13c97c7426c9310c604cec10f18b29c74f975584ad249f73f6ed5289b274f7bc
  2. Start the image, and access the console.
  3. Follow the suggested installation instructions
    go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
    OR
    go install github.com/sqlc-dev/sqlc/cmd/sqlc@v1.29.0 || @v1.30.0

Notice that you receive an error during the installation.

References

I have raised an issue in the TiDB repository for this as well, as it appears to be an issue with the parser dependency: pingcap/tidb#63427

Relevant log output

Docker Image details: 

Using docker image sha256:af91cb2f1afd9c597b4e225488c1ce5abf5aeab697689934694683459ba34b75 for golang:1.25.1-bookworm@sha256:13c97c7426c9310c604cec10f18b29c74f975584ad249f73f6ed5289b274f7bc with digest golang@sha256:13c97c7426c9310c604cec10f18b29c74f975584ad249f73f6ed5289b274f7bc

Installation log: 
$ go install github.com/sqlc-dev/sqlc/cmd/sqlc@v1.30.0
go: downloading github.com/sqlc-dev/sqlc v1.30.0
go: downloading github.com/cubicdaiya/gonp v1.0.4
go: downloading github.com/go-sql-driver/mysql v1.9.3
go: downloading github.com/google/cel-go v0.26.1
go: downloading github.com/spf13/cobra v1.9.1
go: downloading github.com/jackc/pgx/v5 v5.7.5
go: downloading github.com/spf13/pflag v1.0.7
go: downloading golang.org/x/sync v0.16.0
go: downloading google.golang.org/grpc v1.75.0
go: downloading google.golang.org/protobuf v1.36.8
go: downloading modernc.org/sqlite v1.38.2
go: downloading filippo.io/edwards25519 v1.1.0
go: downloading github.com/tetratelabs/wazero v1.9.0
go: downloading github.com/riza-io/grpc-go v0.2.0
go: downloading cel.dev/expr v0.24.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20250707201910-8d1bb00bc6a7
go: downloading golang.org/x/text v0.26.0
go: downloading github.com/fatih/structtag v1.2.0
go: downloading github.com/jinzhu/inflection v1.0.0
go: downloading github.com/pingcap/tidb/pkg/parser v0.0.0-20250324122243-d51e00e5bbf0
go: downloading github.com/pganalyze/pg_query_go/v6 v6.1.0
go: downloading github.com/antlr4-go/antlr/v4 v4.13.1
go: downloading golang.org/x/net v0.41.0
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7
go: downloading github.com/stoewer/go-strcase v1.2.0
go: downloading github.com/jackc/pgpassfile v1.0.0
go: downloading github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761
go: downloading golang.org/x/crypto v0.39.0
go: downloading github.com/jackc/puddle/v2 v2.2.2
go: downloading github.com/pingcap/errors v0.11.5-0.20240311024730-e056997136bb
go: downloading github.com/pingcap/failpoint v0.0.0-20240528011301-b51a646c7c86
go: downloading golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b
go: downloading golang.org/x/sys v0.34.0
go: downloading github.com/pingcap/log v1.1.0
go: downloading go.uber.org/zap v1.27.0
go: downloading go.uber.org/atomic v1.11.0
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.2.1
go: downloading go.uber.org/multierr v1.11.0
go: downloading modernc.org/libc v1.66.3
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
# github.com/pingcap/tidb/pkg/parser
/go/pkg/mod/github.com/pingcap/tidb/pkg/parser@v0.0.0-20250324122243-d51e00e5bbf0/hintparser.go:1358:69: cannot use math.MaxInt64 (untyped int constant 9223372036854775807) as int value in argument to ErrWarnMemoryQuotaOverflow.GenWithStackByArgs (overflows)

Database schema

N/A

SQL queries

N/A

Configuration

N/A

Playground URL

No response

What operating system are you using?

OS/ARCH

  • Linux/386 (32 bit)

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions