Closed clojurians-org closed 3 years ago
i modify the "cabalPackageName" attribute to project name, the build can continue now
it still can't be built:
[larluo@nixos-larluo:~/my-repo/static-haskell-nix/static-stack2nix-builder]$ $(nix-build -v --no-out-link -A static-build-script)
...
/nix/store/y2znppbr9mz06qvzjzjn55gk57jf1hgs-interpolatedstring-perl6-1.0.0.drv
/nix/store/zjdfrdig8jd1s6hx2jzrjw54i09y4fas-lens-aeson-1.0.2.drv
/nix/store/l60y9ixw4sixppih6l2jpf0np9qlgnnr-postgrest-5.2.0.drv
building '/nix/store/l0imqllzra0d0xvvw696zljx41wlq5lm-ghc-7.10.3-binary.drv'...
unpacking sources
unpacking source archive /nix/store/r4dhq1zjnm0iw8l794nfgw7k906lb5qk-ghc-7.10.3b-x86_64-deb8-linux.tar.bz2
source root is ghc-7.10.3
patching script interpreter paths in ghc-7.10.3/utils/
ghc-7.10.3/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd-bindist: interpreter directive changed from "/bin/bash" to "/nix/store/v2hmssglxm87bxg29227zpgjnr2j98vn-bash-4.4-p23/bin/bash"
ghc-7.10.3/utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist: interpreter directive changed from "/bin/bash" to "/nix/store/v2hmssglxm87bxg29227zpgjnr2j98vn-bash-4.4-p23/bin/bas
h"
patching script interpreter paths in ghc-7.10.3/configure
ghc-7.10.3/configure: interpreter directive changed from " /bin/sh" to "/nix/store/v2hmssglxm87bxg29227zpgjnr2j98vn-bash-4.4-p23/bin/sh"
missing ELF header
not an ELF executable
not an ELF executable
cannot find section .interp
cannot find section .interp
...
...
/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/ghc_0AG9TOjDEtx4Ji3wSwHOBe
"/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/bin/ghc-pkg" --force --global-package-db "/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/li
b/ghc-7.10.3/package.conf.d" update rts/dist/package.conf.install
Reading package info from "rts/dist/package.conf.install" ... done.
"utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" register libraries/ghc-prim dist-install "/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/bin/gh
c" "/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/bin/ghc-pkg" "/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3" '' '/nix/st
ore/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary' '/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3' '/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-
7.10.3-binary/share/doc/ghc/html/libraries' NO
Warning: cannot determine version of
/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/bin/ghc
:
""
ghc-cabal:
'/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/bin/ghc'
exited with an error:
Error loading shared library ld-linux-x86-64.so.2: No such file or directory
(needed by
/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/bin/../rts/libHSrts_thr-ghc7.10.3.so)
make[1]: *** [ghc.mk:926: install_packages] Error 1
make: *** [Makefile:24: install] Error 2
builder for '/nix/store/l0imqllzra0d0xvvw696zljx41wlq5lm-ghc-7.10.3-binary.drv' failed with exit code 2
cannot build derivation '/nix/store/c2fy5xm4vn4yqgzgmzqmdlgmhry6pdaw-ghc-8.0.2.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/l60y9ixw4sixppih6l2jpf0np9qlgnnr-postgrest-5.2.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/l60y9ixw4sixppih6l2jpf0np9qlgnnr-postgrest-5.2.0.drv' failed
postgrest
is now building fine, it was added to be part of CI in PR #98.
this is my procedure for build stack project: postgrest, but it failed finally: BTW, what's the best way to build stackage project?