### First
* one
* two
* three
2017年3月4日 星期六
2017年2月15日 星期三
fail to build ghc in nix
Problem: fail to build ghc in nix
Linux: Slackware 14.2
Nix: 1.11.4 built from SlackBuilds.org
I can successfully build the following packages:
cabal-install-1.24.0.2
cabal2nix-2.0.4
nix-1.11.6
nix-repl-1.11.6-2016-02-28
these derivations will be built:
/nix/store/69g778wg2awshpiczvhcaik3i32lgmzd-hs-scrape-0.1.0.0.drv
/nix/store/n3f5f4sz7zk9jbmb99vcif8pb5k9im66-ghc-8.0.1-with-packages.drv
building path(s) ‘/nix/store/6rd4nhc7l0pavqjr83qwsy11p231fwr7-hs-scrape-0.1.0.0’
setupCompilerEnvironmentPhase
Build with /nix/store/w5kpgswqs8xz9abrvpkidgi671wa4562-ghc-8.0.1.
unpacking sources
unpacking source archive /nix/store/p44xinf1fz2jwpwyjcqz42ji3l2k54rg-hs-scrape-0.1.0.0.tar.gz
source root is hs-scrape-0.1.0.0
setting SOURCE_DATE_EPOCH to timestamp 1419834779 of file hs-scrape-0.1.0.0/tests/Tests.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-hs-scrape-0.1.0.0.drv-0/package.conf.d -j4 -threaded
[1 of 1] Compiling Main ( Setup.hs, /tmp/nix-build-hs-scrape-0.1.0.0.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/6rd4nhc7l0pavqjr83qwsy11p231fwr7-hs-scrape-0.1.0.0 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --with-gcc=gcc --package-db=/tmp/nix-build-hs-scrape-0.1.0.0.drv-0/package.conf.d --ghc-option=-optl=-Wl,-rpath=/nix/store/6rd4nhc7l0pavqjr83qwsy11p231fwr7-hs-scrape-0.1.0.0/lib/ghc-8.0.1/hs-scrape-0.1.0.0 --enable-split-objs --disable-library-profiling --disable-profiling --enable-shared --enable-library-vanilla --enable-executable-dynamic --enable-tests
Configuring hs-scrape-0.1.0.0...
Setup: Encountered missing dependencies:
base ==4.7.*, lens ==4.4.0.2, wreq ==0.2.0.0
builder for ‘/nix/store/69g778wg2awshpiczvhcaik3i32lgmzd-hs-scrape-0.1.0.0.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/n3f5f4sz7zk9jbmb99vcif8pb5k9im66-ghc-8.0.1-with-packages.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/n3f5f4sz7zk9jbmb99vcif8pb5k9im66-ghc-8.0.1-with-packages.drv’ failed
Linux: Slackware 14.2
Nix: 1.11.4 built from SlackBuilds.org
I can successfully build the following packages:
cabal-install-1.24.0.2
cabal2nix-2.0.4
nix-1.11.6
nix-repl-1.11.6-2016-02-28
command i use
$ nix-env -i ghc
i later plan to further use input: nix-env -iA nixpkgs.haskell.myHaskellEnv
(i use the above in another system about 1 year ago, and successfull use it when ghc was 7.10)
console output:
installing ‘ghc-8.0.1-with-packages’these derivations will be built:
/nix/store/69g778wg2awshpiczvhcaik3i32lgmzd-hs-scrape-0.1.0.0.drv
/nix/store/n3f5f4sz7zk9jbmb99vcif8pb5k9im66-ghc-8.0.1-with-packages.drv
building path(s) ‘/nix/store/6rd4nhc7l0pavqjr83qwsy11p231fwr7-hs-scrape-0.1.0.0’
setupCompilerEnvironmentPhase
Build with /nix/store/w5kpgswqs8xz9abrvpkidgi671wa4562-ghc-8.0.1.
unpacking sources
unpacking source archive /nix/store/p44xinf1fz2jwpwyjcqz42ji3l2k54rg-hs-scrape-0.1.0.0.tar.gz
source root is hs-scrape-0.1.0.0
setting SOURCE_DATE_EPOCH to timestamp 1419834779 of file hs-scrape-0.1.0.0/tests/Tests.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-hs-scrape-0.1.0.0.drv-0/package.conf.d -j4 -threaded
[1 of 1] Compiling Main ( Setup.hs, /tmp/nix-build-hs-scrape-0.1.0.0.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/6rd4nhc7l0pavqjr83qwsy11p231fwr7-hs-scrape-0.1.0.0 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --with-gcc=gcc --package-db=/tmp/nix-build-hs-scrape-0.1.0.0.drv-0/package.conf.d --ghc-option=-optl=-Wl,-rpath=/nix/store/6rd4nhc7l0pavqjr83qwsy11p231fwr7-hs-scrape-0.1.0.0/lib/ghc-8.0.1/hs-scrape-0.1.0.0 --enable-split-objs --disable-library-profiling --disable-profiling --enable-shared --enable-library-vanilla --enable-executable-dynamic --enable-tests
Configuring hs-scrape-0.1.0.0...
Setup: Encountered missing dependencies:
base ==4.7.*, lens ==4.4.0.2, wreq ==0.2.0.0
builder for ‘/nix/store/69g778wg2awshpiczvhcaik3i32lgmzd-hs-scrape-0.1.0.0.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/n3f5f4sz7zk9jbmb99vcif8pb5k9im66-ghc-8.0.1-with-packages.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/n3f5f4sz7zk9jbmb99vcif8pb5k9im66-ghc-8.0.1-with-packages.drv’ failed
訂閱:
文章 (Atom)