-
Notifications
You must be signed in to change notification settings - Fork 130
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
wchar.go:44:8: error: enumerator value for '__cgo_enum__0' is not an integer constant #2
Comments
Could you try with updating to Go 1.8.1? These error messages seem originate from Go's compiler, not this library golang/go#14669 |
I've tried go1.8 compiler (the latest available on NixOS so far). Errors are still here, but the text is a bit different. As far as I understand the golang/go#14669, one could workaround errors by passing '-O0'. I'll try to do that.
|
Another NixOS user here - I also ran into this and have been attempting to debug it. It seems to be indeed unrelated to geth and a general problem with the go compiler under NixOS. I have filed a separate issue here: NixOS/nixpkgs#25599 . |
Thanks to @javaGH, looks like we used gcc instead of clang. So it is really a NixOS issue. Closing this one now. |
Indeed, the issue was that under NixOS the Go compiler is built using clang, but then while trying to build geth the C compiler was set to gcc. I have an updated NixOS package for geth 1.6.1 over here which works for me: https://github.com/javgh/nixpkgs/blob/master/pkgs/applications/altcoins/go-ethereum.nix . Cheers! |
I just wanted to pop in to say I'm seeing this too (via Nix) and this was a hard issue to track down. |
Just as a FYI: The original guess regarding the compiler mixup was actually incorrect. Everything is built using gcc by default on Nix - including the Go compiler. Switching to clang still helps though as a workaround. The root cause is still unsolved though, as far as I know. This is the most recent issue about it: NixOS/nixpkgs#25959 . |
Hi. I am building the latest release of geth which depends on hid. Unfortunately, I have the topic error, more of it below. Probably, it is a build environment problem (I'm using NixOS linux distro which is quite unusual).
My go is version 1.7.1.
Could you please suggest a hint regarding the error?
The text was updated successfully, but these errors were encountered: