Skip to content
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

nix-shell -p haskellPackages.git fails #15935

Closed
seagreen opened this issue Jun 2, 2016 · 6 comments
Closed

nix-shell -p haskellPackages.git fails #15935

seagreen opened this issue Jun 2, 2016 · 6 comments

Comments

@seagreen
Copy link

seagreen commented Jun 2, 2016

NixOS version: 16.09.git.6d16979 (Flounder)
Command run: nix-shell -p haskellPackages.git
Output:

these derivations will be built:
  /nix/store/h96smc83qx520cdk3h3ymv9s1x4nsbid-git-0.1.drv
building path(s) ‘/nix/store/ssdcv9wrj4qznrqwrm0fnqsxdxv514mv-git-0.1’
setupCompilerEnvironmentPhase
Build with /nix/store/g2pi8g139zj3vja22g4bq8krn0z3lb10-ghc-7.10.3.
unpacking sources
unpacking source archive /nix/store/dxpm4nwgdfivpmz4p2whym4radafnlcj-git-0.1.tar.gz
source root is git-0.1
setting SOURCE_DATE_EPOCH to timestamp 1463933918 of file git-0.1/tests/Tests.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-git-0.1.drv-0/package.conf.d -j1 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /tmp/nix-build-git-0.1.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/ssdcv9wrj4qznrqwrm0fnqsxdxv514mv-git-0.1 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --with-gcc=gcc --package-db=/tmp/nix-build-git-0.1.drv-0/package.conf.d --ghc-option=-optl=-Wl,-rpath=/nix/store/ssdcv9wrj4qznrqwrm0fnqsxdxv514mv-git-0.1/lib/ghc-7.10.3/git-0.1 --enable-split-objs --disable-library-profiling --disable-executable-profiling --enable-shared --enable-library-vanilla --enable-executable-dynamic --enable-tests
Configuring git-0.1...
Flags chosen: debug=False, executable=False
Dependency base ==4.*: using base-4.8.2.0
Dependency byteable -any: using byteable-0.1.1
Dependency bytedump >=1.0: using bytedump-1.0
Dependency bytestring >=0.9: using bytestring-0.10.6.0
Dependency containers -any: using containers-0.5.6.2
Dependency cryptonite -any: using cryptonite-0.15
Dependency git -any: using git-0.1
Dependency hourglass >=0.2: using hourglass-0.2.10
Dependency memory >=0.13: using memory-0.13
Dependency mtl -any: using mtl-2.2.1
Dependency patience -any: using patience-0.1.1
Dependency random -any: using random-1.1
Dependency system-fileio -any: using system-fileio-0.3.16.3
Dependency system-filepath -any: using system-filepath-0.4.13.4
Dependency tasty -any: using tasty-0.11.0.3
Dependency tasty-quickcheck -any: using tasty-quickcheck-0.8.4
Dependency unix-compat -any: using unix-compat-0.4.1.4
Dependency utf8-string -any: using utf8-string-1.0.1.1
Dependency vector -any: using vector-0.11.0.0
Dependency zlib -any: using zlib-0.6.1.1
Dependency zlib-bindings ==0.1.*: using zlib-bindings-0.1.1.5
Using Cabal-1.22.5.0 compiled by ghc-7.10
Using compiler: ghc-7.10.3
Using install prefix: /nix/store/ssdcv9wrj4qznrqwrm0fnqsxdxv514mv-git-0.1
Binaries installed in: /nix/store/ssdcv9wrj4qznrqwrm0fnqsxdxv514mv-git-0.1/bin
Libraries installed in:
/nix/store/ssdcv9wrj4qznrqwrm0fnqsxdxv514mv-git-0.1/lib/ghc-7.10.3/git-0.1
Private binaries installed in:
/nix/store/ssdcv9wrj4qznrqwrm0fnqsxdxv514mv-git-0.1/libexec
Data files installed in:
/nix/store/ssdcv9wrj4qznrqwrm0fnqsxdxv514mv-git-0.1/share/x86_64-linux-ghc-7.10.3/git-0.1
Documentation installed in:
/nix/store/ssdcv9wrj4qznrqwrm0fnqsxdxv514mv-git-0.1/share/doc/x86_64-linux-ghc-7.10.3/git-0.1
Configuration files installed in:
/nix/store/ssdcv9wrj4qznrqwrm0fnqsxdxv514mv-git-0.1/etc
No alex found
Using ar found on system at:
/nix/store/86nvh9qjd4ny2cb9l9zqg8fzhxdra596-binutils-2.26/bin/ar
No c2hs found
No cpphs found
Using gcc version 5.3.0 given by user at:
/nix/store/ky489c7bahmr0spqqrqyfqicmsqn444w-gcc-wrapper-5.3.0/bin/gcc
Using ghc version 7.10.3 found on system at:
/nix/store/g2pi8g139zj3vja22g4bq8krn0z3lb10-ghc-7.10.3/bin/ghc
Using ghc-pkg version 7.10.3 found on system at:
/nix/store/g2pi8g139zj3vja22g4bq8krn0z3lb10-ghc-7.10.3/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.16.1 found on system at:
/nix/store/g2pi8g139zj3vja22g4bq8krn0z3lb10-ghc-7.10.3/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/g2pi8g139zj3vja22g4bq8krn0z3lb10-ghc-7.10.3/bin/hpc
Using hsc2hs version 0.67 found on system at:
/nix/store/g2pi8g139zj3vja22g4bq8krn0z3lb10-ghc-7.10.3/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/kgv9rig37rbndv2fibdfz7zsq70prbhx-hscolour-1.24/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/ky489c7bahmr0spqqrqyfqicmsqn444w-gcc-wrapper-5.3.0/bin/ld
No lhc found
No lhc-pkg found
No pkg-config found
Using strip version 2.26 found on system at:
/nix/store/86nvh9qjd4ny2cb9l9zqg8fzhxdra596-binutils-2.26/bin/strip
Using tar found on system at:
/nix/store/cfl5vfnfi1vxycliz2whzzp05nzp47s2-gnutar-1.28/bin/tar
No uhc found
building
Building git-0.1...
Preprocessing library git-0.1...
[ 1 of 24] Compiling Data.Git.Internal ( Data/Git/Internal.hs, dist/build/Data/Git/Internal.o )
[ 2 of 24] Compiling Data.Git.Imports ( Data/Git/Imports.hs, dist/build/Data/Git/Imports.o )
[ 3 of 24] Compiling Data.Git.OS      ( Data/Git/OS.hs, dist/build/Data/Git/OS.o )
[ 4 of 24] Compiling Data.Git.Storage.CacheFile ( Data/Git/Storage/CacheFile.hs, dist/build/Data/Git/Storage/CacheFile.o )
[ 5 of 24] Compiling Data.Git.Revision ( Data/Git/Revision.hs, dist/build/Data/Git/Revision.o )
[ 6 of 24] Compiling Data.Git.Ref     ( Data/Git/Ref.hs, dist/build/Data/Git/Ref.o )
[ 7 of 24] Compiling Data.Git.Path    ( Data/Git/Path.hs, dist/build/Data/Git/Path.o )
[ 8 of 24] Compiling Data.Git.Named   ( Data/Git/Named.hs, dist/build/Data/Git/Named.o )
[ 9 of 24] Compiling Data.Git.Config  ( Data/Git/Config.hs, dist/build/Data/Git/Config.o )
[10 of 24] Compiling Data.Git.Parser  ( Data/Git/Parser.hs, dist/build/Data/Git/Parser.o )
[11 of 24] Compiling Data.Git.Delta   ( Data/Git/Delta.hs, dist/build/Data/Git/Delta.o )
[12 of 24] Compiling Data.Git.Types   ( Data/Git/Types.hs, dist/build/Data/Git/Types.o )
[13 of 24] Compiling Data.Git.Storage.Object ( Data/Git/Storage/Object.hs, dist/build/Data/Git/Storage/Object.o )
[14 of 24] Compiling Data.Git.Storage.FileReader ( Data/Git/Storage/FileReader.hs, dist/build/Data/Git/Storage/FileReader.o )
[15 of 24] Compiling Data.Git.Storage.PackIndex ( Data/Git/Storage/PackIndex.hs, dist/build/Data/Git/Storage/PackIndex.o )
[16 of 24] Compiling Data.Git.Storage.Pack ( Data/Git/Storage/Pack.hs, dist/build/Data/Git/Storage/Pack.o )
[17 of 24] Compiling Data.Git.Storage.FileWriter ( Data/Git/Storage/FileWriter.hs, dist/build/Data/Git/Storage/FileWriter.o )
[18 of 24] Compiling Data.Git.Storage.Loose ( Data/Git/Storage/Loose.hs, dist/build/Data/Git/Storage/Loose.o )
[19 of 24] Compiling Data.Git.Storage ( Data/Git/Storage.hs, dist/build/Data/Git/Storage.o )
[20 of 24] Compiling Data.Git.Repository ( Data/Git/Repository.hs, dist/build/Data/Git/Repository.o )
[21 of 24] Compiling Data.Git.WorkTree ( Data/Git/WorkTree.hs, dist/build/Data/Git/WorkTree.o )
[22 of 24] Compiling Data.Git         ( Data/Git.hs, dist/build/Data/Git.o )
[23 of 24] Compiling Data.Git.Monad   ( Data/Git/Monad.hs, dist/build/Data/Git/Monad.o )
[24 of 24] Compiling Data.Git.Diff    ( Data/Git/Diff.hs, dist/build/Data/Git/Diff.o )
In-place registering git-0.1...
Preprocessing test suite 'test-unit' for git-0.1...
[1 of 1] Compiling Main             ( tests/Tests.hs, dist/build/test-unit/test-unit-tmp/Main.dyn_o )
Linking dist/build/test-unit/test-unit ...
Preprocessing test suite 'test-repository' for git-0.1...
[1 of 2] Compiling Monad            ( tests/Monad.hs, dist/build/test-repository/test-repository-tmp/Monad.dyn_o )
[2 of 2] Compiling Main             ( tests/Repo.hs, dist/build/test-repository/test-repository-tmp/Main.dyn_o )
Linking dist/build/test-repository/test-repository ...
running tests
Running 2 test suites...
Test suite test-unit: RUNNING...
Test suite test-unit: PASS
Test suite logged to: dist/test/git-0.1-test-unit.log
Test suite test-repository: RUNNING...
cannot run this test without repository. clone the original repository for test
 test/git/monad [FAILED]
 - not a git repository
Test suite test-repository: FAIL
Test suite logged to: dist/test/git-0.1-test-repository.log
1 of 2 test suites (1 of 2 test cases) passed.
builder for ‘/nix/store/h96smc83qx520cdk3h3ymv9s1x4nsbid-git-0.1.drv’ failed with exit code 1
error: build of ‘/nix/store/h96smc83qx520cdk3h3ymv9s1x4nsbid-git-0.1.drv’ failed
/run/current-system/sw/bin/nix-shell: failed to build all dependencies
@tdroxler
Copy link
Contributor

Hi,
Any news or workaround about this? I've got the exact same problem

@peti
Copy link
Member

peti commented Jun 27, 2016

The test suite fails ... IMHO this issue should be reported upstream since we cannot fix that, really. The best we can do is disable the test suite in our builds.

@tdroxler
Copy link
Contributor

One of my colleague just found a workaround. So in my configuration I had:

 environment.systemPackages = with pkgs; with haskellPackages; [
     ...
     git
    ...
];

the problem is that it tries to install the git package from pkgs AND haskellPackages. So using pgks.git in the above list works, because this is the git package of haskell that is broken.

@seagreen
Copy link
Author

@peti Agreed this isn't nixpkgs fault, I reported it upstream here: vincenthz/hit#33

@peti
Copy link
Member

peti commented Jul 3, 2016 via email

@seagreen
Copy link
Author

seagreen commented Jul 3, 2016

Thanks. It may be a while longer before I get a response from upstream, so I think as far as nixpkgs is concerned we can close this.

@seagreen seagreen closed this as completed Jul 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants