[Nix-dev] For go-wizards: Building the geth using buildGoPackage
Sergey Mironov
grrwlf at gmail.com
Wed Apr 26 11:18:20 CEST 2017
I recently tried to upgrade the go compiler up to 1.8 by
cherry-picking all related commits. The error now looks like the
following:
# github.com/ethereum/go-ethereum/vendor/github.com/karalabe/hid
cgo-dwarf-inference:2:8: error: enumerator value for '__cgo_enum__0'
is not an integer constant
cgo-dwarf-inference:10:8: error: enumerator value for '__cgo_enum__7'
is not an integer constant
cgo-dwarf-inference:18:2: error: initializer element is not constant
cgo-dwarf-inference:18:2: note: (near initialization for '__cgodebug_data[0]')
cgo-dwarf-inference:25:2: error: initializer element is not constant
cgo-dwarf-inference:25:2: note: (near initialization for '__cgodebug_data[7]')
Upstream maintainer pointed out to
https://github.com/golang/go/issues/14669 problem. I've tried adding
preBuild=''
export CGO_CFLAGS='-O0'
'';
without success..
Regards, Sergey
2017-04-21 0:40 GMT+03:00 Profpatsch <mail at profpatsch.de>:
> On 17-04-19 09:50pm, Sergey Mironov wrote:
>> building the geth
>
> I had a short fear of sentinent AI robots, but it’s (just?)
> a go package.
>
>> # github.com/ethereum/go-ethereum/vendor/github.com/karalabe/hid
>> go/src/github.com/ethereum/go-ethereum/vendor/github.com/karalabe/hid/wchar.go:44:8:
>> error: enumerator value for '__cgo_enum__0' is not an integer constant
>> return stringToWchar4(s) // Unix
>> ^
>
> That’s normal go compile errors.
> Are you using a very old version of the go compiler?
>
> Have you tried building it on unstable/master?
> You can check out nixpkgs with git
> and run `nix-build -A <package>` from there.
>
> --
> Proudly written in Mutt with Vim on NixOS.
> Q: Why is this email five sentences or less?
> A: http://five.sentenc.es
> May take up to five days to read your message. If it’s urgent, call me.
More information about the nix-dev
mailing list