Re: [Nix-dev] For go-wizards: Building the geth using buildGoPackage
On 17-04-26 12:18pm, Sergey Mironov wrote: > Upstream maintainer pointed out to > https://github.com/golang/go/issues/14669 problem. I've tried adding > > preBuild='' > export CGO_CFLAGS='-O0' > ''; > > without success.. You will have to poke a bit. I’d read the definition of `buildGoPackage` now, which can be found in `pkgs/development/go-modules/generic/default.nix`. Another idea would be preConfigure = "set -x" to make bash output everything it calls. -- 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. ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] For go-wizards: Building the geth using buildGoPackage
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: > 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 ` 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. ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] For go-wizards: Building the geth using buildGoPackage
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 ` 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. ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] For go-wizards: Building the geth using buildGoPackage
Hi. I'm trying to build the latest version of the geth package. Unfortunately, the current (v1.3.0) expression doesn't work anymore, so I tried to use the buildGoPackage function. The build process starts but the compiler issues errors listed below, all regarding github.com/karalade/hid dependency. I'm not a Go expert so may miss some vital knowledge. Could you please recommend me a possible next move regarding the problem? Maybe changing Go compiler or specifying some build flags? Note, I'm using quite old version of nixpkgs so may miss some newer fix. Regards, Sergey # 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 ^ go/src/github.com/ethereum/go-ethereum/vendor/github.com/karalabe/hid/wchar.go:52:8: error: enumerator value for '__cgo_enum__7' is not an integer constant case 2: ^ go/src/github.com/ethereum/go-ethereum/vendor/github.com/karalabe/hid/wchar.go:60:2: error: initializer element is not constant go/src/github.com/ethereum/go-ethereum/vendor/github.com/karalabe/hid/wchar.go:60:2: note: (near initialization for '__cgodebug_data[0]') go/src/github.com/ethereum/go-ethereum/vendor/github.com/karalabe/hid/wchar.go:67:2: error: initializer element is not constant ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev