Skip to content

Overflow when building for linux arm #2135

Closed
@cmendible

Description

@cmendible

Description

Building with:

CGO_ENABLED=0 GOOS=linux GOARCH=arm go build

Results in:

# github.com/xuri/excelize/v2
Error: ../../../go/pkg/mod/github.com/xuri/excelize/v2@v2.9.1/file.go:214:47: math.MaxUint32 (untyped int constant 4294967295) overflows int
Error: ../../../go/pkg/mod/github.com/xuri/excelize/v2@v2.9.1/file.go:231:48: math.MaxUint32 (untyped int constant 4294967295) overflows int
Error: Process completed with exit code 1.

Steps to reproduce the issue

Building with:

CGO_ENABLED=0 GOOS=linux GOARCH=arm go build

Describe the results you received

Results in:

# github.com/xuri/excelize/v2
Error: ../../../go/pkg/mod/github.com/xuri/excelize/v2@v2.9.1/file.go:214:47: math.MaxUint32 (untyped int constant 4294967295) overflows int
Error: ../../../go/pkg/mod/github.com/xuri/excelize/v2@v2.9.1/file.go:231:48: math.MaxUint32 (untyped int constant 4294967295) overflows int
Error: Process completed with exit code 1.

Also check: https://github.com/Azure/azqr/actions/runs/15023313985/job/42217738830?pr=456

Describe the results you expected

Successful build

Go version

1.24.3

Excelize version or commit ID

v2.9.1

Environment

Linux Ubuntu

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions