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
tensorflow-proto: build failure on NixOS #169
Comments
protoc is Google Protocol Buffers Compiler. Have you seen #168 which could use your review help ? |
The issue is ultimately caused by cabal2nix (which automatically generates the Haskell package sets) not recognizing protoc as a build tool with a nix name. It can be worked around by specifying the override:
... (and perhaps a few others in the same vein) in configuration-common.nix in the nixpkgs haskell modules. |
Hi Sarah (srhb) , i use NixOS and this file ~/.nixpkgs/config.nix to build a 'myHaskellEnv' , I also want to build tensorflow but i encounter the same missing compiler 'protoc' problem
thanks. |
@szehk Here's a small self-contained example. You can read about overlays in the nixpkgs manual in order to integrate it into your regular environment. Please note that this is specifically using NixOS 17.09 HEAD (as of today) since the version of tensorflow-proto in unstable is incompatible with the newer proto-lens. |
@srhb Thanks for that! Would you by any chance have succeeded with the
but unfortunately the configuration phase still cannot locate the C bindings for tensorflow. |
@jyp Sorry, haven't tried. Perhaps you can take a look at how the haskell tensorflow library uses the c bindings? https://github.com/tensorflow/haskell/blob/master/tools/userchroot.nix |
@srhb Thanks a bunch for the link. Additionally I had to use patchelf to point tensorflow to libs in the nix store. But then the test suite fails anyway:
|
If you are seeing an unknown enum value, the issue is likely that you are building the haskell code against one version of tensorflow's .proto files and then linking against another (newer) version of tensorflow. |
A little more detail: The repo was just updated to tensorflow1.8, so if you've pulled the latests commits and updated the |
@fkm3 Thanks! I was in fact building from the hackage uploads --- so there was definitely a mismatch. I'll try to build from the source repo. |
The nix code has been updated recently, so I assume this is fixed now. Re-open if not. |
Hi. tensorflow-proto from Hackage fails to build on NixOs with the following error
(full log https://hydra.nixos.org/build/53182954/nixlog/2).
Could you please give a clue of what the
protoc
is? What package does it belong to?Regards.
The text was updated successfully, but these errors were encountered: