Skip to content

Instantly share code, notes, and snippets.

@ddellacosta
Created February 18, 2019 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddellacosta/788407aa6568ec77e26b07c82fbfe96d to your computer and use it in GitHub Desktop.
Save ddellacosta/788407aa6568ec77e26b07c82fbfe96d to your computer and use it in GitHub Desktop.
ghc compilation failure
/nix/store/nimcbxz5wipgvd768lq1k1794bq0kpmj-coreutils-8.30/bin/install -c -m 755 utils/runghc/dist-install/build/tmp/runghc inplace/lib/bin/runghc
"rm" -f inplace/bin/runghc
echo '#!/bin/sh' >> inplace/bin/runghc
echo 'executablename="/build/ghc-8.4.4/inplace/lib/bin/runghc"' >> inplace/bin/runghc
echo 'datadir="/build/ghc-8.4.4/inplace/lib"' >> inplace/bin/runghc
echo 'bindir="/build/ghc-8.4.4/inplace/bin"' >> inplace/bin/runghc
echo 'topdir="/build/ghc-8.4.4/inplace/lib"' >> inplace/bin/runghc
echo 'pgmgcc="/nix/store/bzxfiz7l38g7b4d8rdlf4wc43fklah5h-gcc-wrapper-7.4.0/bin/cc"' >> inplace/bin/runghc
echo 'ghcprog="ghc-stage2"' >> "inplace/bin/runghc"
echo 'export LD_LIBRARY_PATH="/build/ghc-8.4.4/libraries/process/dist-install/build:/build/ghc-8.4.4/libraries/directory/dist-install/build:/build/ghc-8.4.4/libraries/unix/dist-install/build:/build/ghc-8.4.4/libraries/filepath/dist-install/build:/build/ghc-8.4.4/libraries/time/dist-install/build:/build/ghc-8.4.4/libraries/bytestring/dist-install/build:/build/ghc-8.4.4/libraries/deepseq/dist-install/build:/build/ghc-8.4.4/libraries/array/dist-install/build:/build/ghc-8.4.4/libraries/base/dist-install/build:/build/ghc-8.4.4/libraries/integer-gmp/dist-install/build:/nix/store/38j1yww2crj0zpsn4lnkjcpgd4rjlsyv-gmp-6.1.2/lib:/build/ghc-8.4.4/libraries/ghc-prim/dist-install/build:/build/ghc-8.4.4/rts/dist/build${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"' >> inplace/bin/runghc
cat utils/runghc/runghc.wrapper >> inplace/bin/runghc
chmod +x inplace/bin/runghc
/nix/store/gahx1w92ldx16a3nacdhi4z050ikzii1-python3.7-sphinx-1.8.3/bin/sphinx-build -b html -d docs/users_guide/.doctrees-html -D latex_paper_size=letter docs/users_guide docs/users_guide/build-html/users_guide
Running Sphinx v1.8.3
Extension error:
The 'ghc-flag' directive is already registered to domain std
make[1]: *** [docs/users_guide/ghc.mk:16: docs/users_guide/build-html/users_guide/index.html] Error 2
make: *** [Makefile:127: all] Error 2
builder for '/nix/store/hc37mvicvrpaxibnwis4b9ah218wazqb-ghc-8.4.4.drv' failed with exit code 2
error: build of '/nix/store/hc37mvicvrpaxibnwis4b9ah218wazqb-ghc-8.4.4.drv', '/nix/store/kxr8ap6jdygq3wd4rknnmb53nwc4nbn3-ghc-8.4.4-with-packages.drv' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment