Comments (12)
(I'm on commit 4ab9cb9cf274e88eababfaba85103e3890a96afc
of tensorflow/haskell
.)
from haskell.
@grwlf, do you know the answer?
from haskell.
It looks like you're using something somewhere on nixpkgs master; I recommend for reproducibility that you provide a git commit of nixpkgs master, then one can invoke nix-shell specifically with that commit for total reproducibility.
from haskell.
I managed to build it with
env NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/7d36ae33df.tar.gz nix-shell tools/userchroot.nix --pure
stack --stack-root $PWD/stack-root build --system-ghc
3 changes here to what's in the README:
- Gave explicit nixpkgs version (that one is one recent one from nixpkgs unstable, the 17.03 version didn't work)
--stack-root
to have it not use my user's~/.stack
that may contain things I built before for other projects that don't work inside the nix environment, with errors like/host/raid/stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2: error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory
--pure
so that external environment variables can't mess with it being reproducible
from haskell.
@nh2 please turn this into a PR?
from haskell.
@grwlf You added Nix support a short while ago, can you confirm if it builds fine with the nixpkgs commit that I use above?
from haskell.
Hi, Sorry for delay, I'll check the problem soon.
from haskell.
Yes, the problem was caused by incompatible nixpkgs tree. Thanks for the suggestions, they all make sense. I'll check nixpkgs version you have provided in a couple of days.
from haskell.
I think the --stack-root
issue is better handled with an export STACK_ROOT=$PWD/stack-root
shell hook in tools/userchroot
. However I believe a simpler solution would be to use stack --nix
instead, I've create #168 . stack --nix foo
also makes sure that nix- and non-nix-built packages aren't mixed up.
from haskell.
Is there a guide to build with nix? (I could build but the test suite fails, see #169)
@nmattia I see that your PR is still not merged after all this time. Is it obsolete?
from haskell.
It shouldn't be obsolete. I think we're waiting for a review from @grwlf .
from haskell.
The nix code has been updated quiet a bit, hopefully this is fixed now. Re-open if not.
from haskell.
Related Issues (20)
- GradientTape usage in Haskell HOT 5
- Reverse-mode automatic differentiation HOT 1
- 404 on instructions Stack + Docker + GPU HOT 1
- SIGSEGV when computing gradients for reduceMean using placeholders
- tensorflow-core-ops won't compile HOT 6
- Why is tensorflow-mnist-input-data not on Hackage? HOT 5
- tensorflow-ops compile error HOT 1
- Fail on Debian Build HOT 2
- Stack install - Symbolic link dest not found... HOT 6
- Package won't install. HOT 2
- gpu container cannot be created HOT 1
- tensorflow-core-ops compilation error HOT 2
- tensorflow-core-ops doesn't compile with tensorflor-2.4 HOT 3
- TensorData decoding problem with Nix package
- Re-add blackgnezdo HOT 1
- Library won't compile. HOT 2
- Tensorflow 2.9 Compatibility HOT 2
- Running a loaded TF2 SavedModel gives TensorfFlowException TF_INVALID_ARGUMENT HOT 2
- Nvidia (3000 series) Ampere Architecture Support - Update TensorFlow to v2.4.0 HOT 2
- Any plans to update the Hackage?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haskell.