Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Windows 32-bit system #1295

Open
5 tasks
rts-gordon opened this issue Sep 17, 2024 · 0 comments
Open
5 tasks

Support Windows 32-bit system #1295

rts-gordon opened this issue Sep 17, 2024 · 0 comments

Comments

@rts-gordon
Copy link

rts-gordon commented Sep 17, 2024

Description

Hi there,

Our system must build to a 32-bit execute program that run in Windows, we use golang 32-bit, MingW-W64 32-bit to build it and get a error, can you please take a look at this, many thanks.

GOOS=windows GOARCH=386 go build 
# github.com/confluentinc/confluent-kafka-go/v2/kafka
C:\Users\username\go\pkg\mod\github.com\confluentinc\confluent-kafka-go\[email protected]\kafka\message.go:212:31: invalid array length 1 << 31 (untyped int constant 2147483648)

if keyLen > 0 {
	copy((*[1 << 30]byte)(payload)[valueLen:allocLen], msg.Key)
	keyp = unsafe.Pointer(&((*[1 << 31]byte)(payload)[valueLen]))
}

Checklist

Please provide the following information:

  • confluent-kafka-go (v2.3.0) and librdkafka version (``):
  • Apache Kafka broker version: v3.5
  • Operating system: Windows 10
  • Golang v1.22.1 32-bit
  • MinGW-W64-builds-5.0.0 32-bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant