dhiaayachi / temporal

Temporal service
https://docs.temporal.io
MIT License
0 stars 0 forks source link

Unable to build Temporal on 32-bit platforms #315

Open dhiaayachi opened 1 month ago

dhiaayachi commented 1 month ago

Expected Behavior

Unmodified build to succeed on any platform that Golang supports without any issues.

Actual Behavior

Compilation fails on 32-bit systems with the following error:

common/persistence/cassandra/errors.go:48:25: cannot use math.MaxInt64 (untyped int constant 9223372036854775807) as int value in variable declaration (overflows)

This is because the line in question specifies a variable without any type, which defaults to int [which is 4 bytes wide on 32-bit platforms] and thus cannot hold the value. This is a well-known issue. Assignments like this might be present elsewhere, this is just the place where the Go compiler stopped.

Steps to Reproduce the Problem

  1. Clone the repo normally
  2. Run make

Specifications

dhiaayachi commented 2 weeks ago

Thanks for reporting the issue. This is a known issue and has been addressed in Temporal v1.10.0. You can find more information about this fix in the Temporal Release Notes.

Please update to the latest version of Temporal and rebuild your project. If you still experience the issue after updating, please provide more context, such as your OS and Go version, and the exact command you are running.

dhiaayachi commented 2 weeks ago

Thanks for reporting this issue! This is a known issue and the team is working on a fix. You can find more information here: https://github.com/temporalio/temporal/issues/2809.