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
constant 10737418240 overflows int #4700
Comments
From the logs: 32-bit builds aren't supported |
Yeah we define https://github.com/coreos/etcd/blob/master/storage/backend/backend.go#L41 with over int32 max. |
Maybe we should document that in backend package? |
@gyuho We can fix the build. But there might be other issues for 32bit. Basically, go has some additional requirement for 32bit to work well (padding when you want to access data atomically). We have a lot of dependencies and we cannot make sure everyone takes care of this additional requirement. So we say we do not really support 32bit. |
/cc @heyitsanthony |
Probably should have a better 32-bit build failure indicator than |
@heyitsanthony |
@hongchaodeng the sort of fix I have in mind would still be a build failure, just a less confusing one |
Got it compiled on both // backend.go
InitialMmapSize int64 = 10 * 1024 * 1024 * 1024
// boltoption_unix.go
InitialMmapSize: int(InitialMmapSize), WDYT? I may send a PR if it fixes the problem. |
@luxas We can fix the build, that is simple. But the thing is that there might be data races in 32 bit even if it builds and we are not going to fix them. |
@luxas In another word, we do not officially support or extensively test etcd on 32 bit. |
@xiang90 What about I really do understand you, but I would be glad if the community would be allowed to make |
@luxas I think arm64 can build as it is today. No? If you want to make it "builds". That is fine. Send a PR to us? |
Yeah, @xiang90 How about the cross-build CI just for automatically knowing on which platforms it compiles, so any |
Now 32bit builds and complaints when starts, closing this. |
I have a PR which failed with following message:
Full log is here.
Note that I am perfectly fine while using Go 1.5
The text was updated successfully, but these errors were encountered: