influxdata / influxdata/influxdb

Constant declaration causing GO Compiler to fail on x86 launcher.go

Open
#18,644 0 comments 0 reactions 0 assignees View on GitHub
area/packaging kind/bug
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

make project on any 32 bit system
Compiler will complain with the following
cmd/influxd/launcher/launcher.go:326:4: constant 9223372036854775807 overflows int
make: *** [Makefile:82: bin/linux/influxd] Error 2

Line 326 in Launcher.go is the following, Its specifying MaxInt64
Default: math.MaxInt64

Expected behavior:
Should handle 32 bit architectures

Actual behavior:
Fails to compile due to overflow on uint

Environment info:

Ubuntu 19.10 i386/x86
Node 14
Yarn 1.22
Go 1.13.12.linux-386

Contributor guide

Open the contributing guide

Research direction

Start with cmd/influxd/launcher/launcher.go around line 326 and reproduce the failure using the project build on a 32-bit system. Confirm that the existing build target compiles successfully for 32-bit architectures without the reported constant overflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.