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

cannot build stack because 'fatal: not a git repository' #4382

Closed
bonds opened this issue Nov 1, 2018 · 2 comments
Closed

cannot build stack because 'fatal: not a git repository' #4382

bonds opened this issue Nov 1, 2018 · 2 comments

Comments

@bonds
Copy link

bonds commented Nov 1, 2018

Steps to reproduce

  1. mkdir trythisout
  2. cd trythisout
  3. cabal sandbox init
  4. cabal install stack

Expected

Stack should build successfully.

Actual

The build failed with a git error when trying to build the latest stack, v1.9.1. Trying this same way of building but with the previous version succeeds, i.e. cabal install stack-1.7.1

$ cabal install stack
Resolving dependencies...
Notice: installing into a sandbox located at
/home/scott/tryitout/.cabal-sandbox
Configuring annotated-wl-pprint-0.7.0...
Configuring auto-update-0.1.4...
Configuring base-orphans-0.8...
Configuring base-compat-0.10.5...
Building annotated-wl-pprint-0.7.0...
Building auto-update-0.1.4...
Building base-orphans-0.8...
Building base-compat-0.10.5...
Installed auto-update-0.1.4
Configuring base-prelude-1.3...
Installed annotated-wl-pprint-0.7.0
Configuring base16-bytestring-0.1.1.6...
Building base-prelude-1.3...
Building base16-bytestring-0.1.1.6...
Installed base-orphans-0.8
Configuring base64-bytestring-1.0.0.1...
Installed base-prelude-1.3
Configuring basement-0.0.8...
Building base64-bytestring-1.0.0.1...
Installed base16-bytestring-0.1.1.6
Configuring bindings-uname-0.1...
Building basement-0.0.8...
Building bindings-uname-0.1...
Installed bindings-uname-0.1
Configuring bitarray-0.0.1.1...
Installed base64-bytestring-1.0.0.1
Configuring byteable-0.1.1...
Building bitarray-0.0.1.1...
Building byteable-0.1.1...
Installed byteable-0.1.1
Configuring call-stack-0.1.0...
Building call-stack-0.1.0...
Installed bitarray-0.0.1.1
Configuring cereal-0.5.7.0...
Installed call-stack-0.1.0
Configuring clock-0.7.2...
Building cereal-0.5.7.0...
Building clock-0.7.2...
Installed base-compat-0.10.5
Configuring cmdargs-0.10.20...
Building cmdargs-0.10.20...
Installed clock-0.7.2
Configuring colour-2.3.4...
Building colour-2.3.4...
Installed colour-2.3.4
Configuring cryptohash-sha256-0.11.101.0...
Building cryptohash-sha256-0.11.101.0...
Installed cryptohash-sha256-0.11.101.0
Configuring data-default-class-0.1.2.0...
Installed cereal-0.5.7.0
Configuring digest-0.0.1.2...
Building data-default-class-0.1.2.0...
Building digest-0.0.1.2...
Installed data-default-class-0.1.2.0
Configuring dlist-0.8.0.5...
Building dlist-0.8.0.5...
Installed digest-0.0.1.2
Configuring easy-file-0.2.2...
Installed cmdargs-0.10.20
Configuring echo-0.1.3...
Building easy-file-0.2.2...
Building echo-0.1.3...
Installed dlist-0.8.0.5
Configuring ed25519-0.0.5.0...
Building ed25519-0.0.5.0...
Installed echo-0.1.3
Configuring erf-2.0.0.0...
Installed easy-file-0.2.2
Configuring file-embed-0.0.11...
Building erf-2.0.0.0...
Building file-embed-0.0.11...
Installed erf-2.0.0.0
Configuring filelock-0.1.1.2...
Building filelock-0.1.1.2...
Installed file-embed-0.0.11
Configuring githash-0.1.2.0...
Building githash-0.1.2.0...
Installed filelock-0.1.1.2
Configuring hourglass-0.2.12...
Building hourglass-0.2.12...
Installed ed25519-0.0.5.0
Configuring hspec-discover-2.5.8...
Installed githash-0.1.2.0
Configuring integer-logarithms-1.0.2.2...
Building hspec-discover-2.5.8...
Building integer-logarithms-1.0.2.2...
Installed integer-logarithms-1.0.2.2
Configuring microlens-0.4.9.1...
Building microlens-0.4.9.1...
Installed hspec-discover-2.5.8
Configuring mintty-0.1.2...
Installed microlens-0.4.9.1
Configuring monad-loops-0.4.3...
Building mintty-0.1.2...
Building monad-loops-0.4.3...
Installed mintty-0.1.2
Configuring mtl-2.2.2...
Building mtl-2.2.2...
Installed monad-loops-0.4.3
Configuring network-2.8.0.0...
Installed hourglass-0.2.12
Configuring old-locale-1.0.0.7...
Building old-locale-1.0.0.7...
Installed mtl-2.2.2
Configuring open-browser-0.2.1.0...
Installed old-locale-1.0.0.7
Configuring parser-combinators-1.0.0...
Building open-browser-0.2.1.0...
Building parser-combinators-1.0.0...
Installed basement-0.0.8
Configuring primitive-0.6.4.0...
Building primitive-0.6.4.0...
Installed parser-combinators-1.0.0
Configuring random-1.1...
Building network-2.8.0.0...
Building random-1.1...
Installed open-browser-0.2.1.0
Configuring regex-applicative-0.3.3...
Building regex-applicative-0.3.3...
Installed regex-applicative-0.3.3
Configuring safe-0.3.17...
Building safe-0.3.17...
Installed random-1.1
Configuring semigroups-0.18.5...
Building semigroups-0.18.5...
Installed semigroups-0.18.5
Configuring setenv-0.1.1.3...
Installed safe-0.3.17
Configuring silently-1.2.5...
Building setenv-0.1.1.3...
Building silently-1.2.5...
Installed setenv-0.1.1.3
Configuring split-0.2.3.3...
Installed silently-1.2.5
Downloading stm-2.5.0.0...
Building split-0.2.3.3...
Configuring stm-2.5.0.0...
Installed network-2.8.0.0
Configuring syb-0.7...
Building stm-2.5.0.0...
Installed primitive-0.6.4.0
Configuring tagged-0.8.6...
Building syb-0.7...
Installed split-0.2.3.3
Configuring tar-0.5.1.0...
Building tagged-0.8.6...
Building tar-0.5.1.0...
Installed stm-2.5.0.0
Configuring text-1.2.3.1...
Installed tagged-0.8.6
Configuring th-abstraction-0.2.8.0...
Building text-1.2.3.1...
Installed syb-0.7
Configuring time-locale-compat-0.1.1.5...
Building th-abstraction-0.2.8.0...
Building time-locale-compat-0.1.1.5...
Installed time-locale-compat-0.1.1.5
Configuring transformers-compat-0.6.2...
Building transformers-compat-0.6.2...
Installed tar-0.5.1.0
Configuring unix-compat-0.5.1...
Building unix-compat-0.5.1...
Installed transformers-compat-0.6.2
Configuring unliftio-core-0.1.2.0...
Installed th-abstraction-0.2.8.0
Configuring void-0.7.2...
Building unliftio-core-0.1.2.0...
Building void-0.7.2...
Installed void-0.7.2
Configuring zlib-0.6.2...
Installed unliftio-core-0.1.2.0
Configuring HUnit-1.6.0.0...
Installed unix-compat-0.5.1
Configuring gitrev-1.3.1...
Building zlib-0.6.2...
Building HUnit-1.6.0.0...
Building gitrev-1.3.1...
Installed gitrev-1.3.1
Configuring extra-1.6.13...
Building extra-1.6.13...
Installed HUnit-1.6.0.0
Configuring ansi-terminal-0.8.2...
Building ansi-terminal-0.8.2...
Installed zlib-0.6.2
Configuring logict-0.6.0.2...
Building logict-0.6.0.2...
Installed extra-1.6.13
Configuring old-time-1.1.0.3...
Installed ansi-terminal-0.8.2
Configuring memory-0.14.18...
Building memory-0.14.18...
Installed logict-0.6.0.2
Configuring socks-0.5.6...
Building socks-0.5.6...
Building old-time-1.1.0.3...
Installed old-time-1.1.0.3
Configuring vector-0.12.0.1...
Building vector-0.12.0.1...
Installed socks-0.5.6
Configuring tf-random-0.5...
Installed memory-0.14.18
Configuring StateVar-1.1.1.1...
Building tf-random-0.5...
Building StateVar-1.1.1.1...
Installed StateVar-1.1.1.1
Configuring th-expand-syns-0.4.4.0...
Building th-expand-syns-0.4.4.0...
Installed tf-random-0.5
Configuring transformers-base-0.4.5.2...
Installed th-expand-syns-0.4.4.0
Configuring exceptions-0.10.0...
Building transformers-base-0.4.5.2...
Building exceptions-0.10.0...
Installed transformers-base-0.4.5.2
Configuring Glob-0.9.3...
Building Glob-0.9.3...
Installed exceptions-0.10.0
Configuring th-lift-0.7.11...
Building th-lift-0.7.11...
Installed Glob-0.9.3
Configuring microlens-th-0.4.2.3...
Installed th-lift-0.7.11
Configuring generic-deriving-1.12.2...
Building microlens-th-0.4.2.3...
Building generic-deriving-1.12.2...
Installed microlens-th-0.4.2.3
Configuring hspec-expectations-0.8.2...
Building hspec-expectations-0.8.2...
Installed hspec-expectations-0.8.2
Configuring ansi-wl-pprint-0.6.8.2...
Building ansi-wl-pprint-0.6.8.2...
Installed ansi-wl-pprint-0.6.8.2
Configuring smallcheck-1.1.5...
Building smallcheck-1.1.5...
Installed smallcheck-1.1.5
Configuring unix-time-0.3.8...
Installed text-1.2.3.1
Configuring pem-0.2.4...
Building pem-0.2.4...
Building unix-time-0.3.8...
Installed pem-0.2.4
Configuring cryptonite-0.25...
Installed unix-time-0.3.8
Configuring asn1-types-0.3.2...
Building cryptonite-0.25...
Building asn1-types-0.3.2...
Installed asn1-types-0.3.2
Configuring contravariant-1.5...
Building contravariant-1.5...
Installed generic-deriving-1.12.2
Configuring QuickCheck-2.12.6.1...
Building QuickCheck-2.12.6.1...
Installed contravariant-1.5
Configuring th-reify-many-0.1.8...
Building th-reify-many-0.1.8...
Installed th-reify-many-0.1.8
Configuring monad-control-1.0.2.3...
Building monad-control-1.0.2.3...
Installed monad-control-1.0.2.3
Downloading temporary-1.3...
Configuring temporary-1.3...
Building temporary-1.3...
Installed temporary-1.3
Configuring retry-0.7.7.0...
Building retry-0.7.7.0...
Installed retry-0.7.7.0
Configuring resourcet-1.2.2...
Building resourcet-1.2.2...
Installed resourcet-1.2.2
Configuring optparse-applicative-0.14.3.0...
Building optparse-applicative-0.14.3.0...
Installed QuickCheck-2.12.6.1
Configuring unicode-transforms-0.3.4...
Building unicode-transforms-0.3.4...
Installed optparse-applicative-0.14.3.0
Configuring store-core-0.4.4...
Building store-core-0.4.4...
Installed store-core-0.4.4
Configuring regex-applicative-text-0.1.0.1...
Building regex-applicative-text-0.1.0.1...
Installed regex-applicative-text-0.1.0.1
Configuring path-pieces-0.2.1...
Building path-pieces-0.2.1...
Installed path-pieces-0.2.1
Configuring parsec-3.1.13.0...
Building parsec-3.1.13.0...
Installed vector-0.12.0.1
Configuring mime-types-0.1.0.8...
Building mime-types-0.1.0.8...
Installed mime-types-0.1.0.8
Configuring hashable-1.2.7.0...
Building hashable-1.2.7.0...
Installed parsec-3.1.13.0
Configuring cookie-0.4.4...
Installed unicode-transforms-0.3.4
Configuring blaze-builder-0.4.1.0...
Building cookie-0.4.4...
Building blaze-builder-0.4.1.0...
Installed hashable-1.2.7.0
Configuring fast-logger-2.4.11...
Installed cookie-0.4.4
Configuring asn1-encoding-0.9.5...
Building fast-logger-2.4.11...
Building asn1-encoding-0.9.5...
Installed fast-logger-2.4.11
Configuring lifted-base-0.2.3.12...
Installed blaze-builder-0.4.1.0
Configuring quickcheck-io-0.2.0...
Installed asn1-encoding-0.9.5
Configuring optparse-simple-0.1.0...
Building lifted-base-0.2.3.12...
Building quickcheck-io-0.2.0...
Building optparse-simple-0.1.0...
Installed quickcheck-io-0.2.0
Configuring vector-algorithms-0.8.0.1...
Installed optparse-simple-0.1.0
Configuring th-lift-instances-0.1.11...
Building vector-algorithms-0.8.0.1...
Installed lifted-base-0.2.3.12
Configuring text-metrics-0.3.0...
Building th-lift-instances-0.1.11...
Building text-metrics-0.3.0...
Installed th-lift-instances-0.1.11
Configuring network-uri-2.6.1.0...
Building network-uri-2.6.1.0...
Installed cryptonite-0.25
Downloading Cabal-2.4.0.1...
Installed text-metrics-0.3.0
Configuring uuid-types-1.0.3...
Building uuid-types-1.0.3...
Configuring Cabal-2.4.0.1...
Installed network-uri-2.6.1.0
Configuring unordered-containers-0.2.9.0...
Building Cabal-2.4.0.1...
Installed uuid-types-1.0.3
Configuring scientific-0.3.6.2...
Building unordered-containers-0.2.9.0...
Building scientific-0.3.6.2...
Installed scientific-0.3.6.2
Configuring resource-pool-0.2.3.2...
Building resource-pool-0.2.3.2...
Installed resource-pool-0.2.3.2
Configuring case-insensitive-1.2.0.11...
Building case-insensitive-1.2.0.11...
Installed vector-algorithms-0.8.0.1
Configuring async-2.2.1...
Installed case-insensitive-1.2.0.11
Configuring blaze-markup-0.8.2.2...
Building async-2.2.1...
Installed unordered-containers-0.2.9.0
Configuring asn1-parse-0.9.4...
Building blaze-markup-0.8.2.2...
Building asn1-parse-0.9.4...
Installed async-2.2.1
Configuring hspec-core-2.5.8...
Installed asn1-parse-0.9.4
Configuring th-orphans-0.13.6...
Building hspec-core-2.5.8...
Building th-orphans-0.13.6...
Installed blaze-markup-0.8.2.2
Configuring cryptohash-0.11.9...
Installed th-orphans-0.13.6
Configuring infer-license-0.2.0...
Building cryptohash-0.11.9...
Building infer-license-0.2.0...
Installed infer-license-0.2.0
Configuring attoparsec-0.13.2.2...
Building attoparsec-0.13.2.2...
Installed cryptohash-0.11.9
Configuring megaparsec-7.0.3...
Installed hspec-core-2.5.8
Configuring http-types-0.12.2...
Building megaparsec-7.0.3...
Building http-types-0.12.2...
Installed http-types-0.12.2
Configuring mono-traversable-1.0.9.0...
Building mono-traversable-1.0.9.0...
Installed megaparsec-7.0.3
Configuring unliftio-0.2.8.1...
Building unliftio-0.2.8.1...
Installed unliftio-0.2.8.1
Configuring typed-process-0.2.3.0...
Building typed-process-0.2.3.0...
Installed typed-process-0.2.3.0
Configuring streaming-commons-0.2.1.0...
Building streaming-commons-0.2.1.0...
Installed attoparsec-0.13.2.2
Configuring fsnotify-0.3.0.1...
Building fsnotify-0.3.0.1...
Installed mono-traversable-1.0.9.0
Configuring x509-1.7.4...
Installed fsnotify-0.3.0.1
Configuring blaze-html-0.9.1.1...
Building x509-1.7.4...
Installed streaming-commons-0.2.1.0
Configuring th-utilities-0.2.0.1...
Building blaze-html-0.9.1.1...
Building th-utilities-0.2.0.1...
Installed x509-1.7.4
Configuring hspec-smallcheck-0.5.2...
Installed th-utilities-0.2.0.1
Configuring hspec-2.5.8...
Building hspec-smallcheck-0.5.2...
Building hspec-2.5.8...
Installed hspec-smallcheck-0.5.2
Configuring neat-interpolation-0.3.2.4...
Installed hspec-2.5.8
Configuring rio-0.1.5.0...
Building neat-interpolation-0.3.2.4...
Building rio-0.1.5.0...
Installed blaze-html-0.9.1.1
Configuring attoparsec-iso8601-1.0.1.0...
Building attoparsec-iso8601-1.0.1.0...
Installed neat-interpolation-0.3.2.4
Configuring aeson-1.4.1.0...
Building aeson-1.4.1.0...
Installed attoparsec-iso8601-1.0.1.0
Configuring conduit-1.3.1...
Building conduit-1.3.1...
Installed rio-0.1.5.0
Configuring http-client-0.5.13.1...
Building http-client-0.5.13.1...
Installed conduit-1.3.1
Configuring x509-store-1.6.6...
Building x509-store-1.6.6...
Installed x509-store-1.6.6
Configuring conduit-extra-1.3.0...
Installed http-client-0.5.13.1
Configuring x509-validation-1.6.10...
Building conduit-extra-1.3.0...
Building x509-validation-1.6.10...
Installed x509-validation-1.6.10
Configuring x509-system-1.6.6...
Building x509-system-1.6.6...
Installed x509-system-1.6.6
Configuring tls-1.4.1...
Building tls-1.4.1...
Installed conduit-extra-1.3.0
Configuring project-template-0.2.0.1...
Building project-template-0.2.0.1...
Installed project-template-0.2.0.1
Configuring cryptonite-conduit-0.2.2...
Building cryptonite-conduit-0.2.2...
Installed cryptonite-conduit-0.2.2
Installed tls-1.4.1
Configuring connection-0.2.8...
Building connection-0.2.8...
Installed connection-0.2.8
Configuring http-client-tls-0.3.5.3...
Building http-client-tls-0.3.5.3...
Installed http-client-tls-0.3.5.3
Installed aeson-1.4.1.0
Configuring http-conduit-2.3.2...
Configuring path-0.6.1...
Configuring yaml-0.10.4.0...
Building path-0.6.1...
Building http-conduit-2.3.2...
Building yaml-0.10.4.0...
Installed http-conduit-2.3.2
Configuring aeson-compat-0.3.9...
Installed path-0.6.1
Configuring path-io-1.4.0...
Building aeson-compat-0.3.9...
Building path-io-1.4.0...
Installed aeson-compat-0.3.9
Installed path-io-1.4.0
Installed yaml-0.10.4.0
Installed Cabal-2.4.0.1
Configuring stm-chans-3.0.0.4...
Configuring cabal-doctest-1.0.6...
Configuring zip-archive-0.3.3...
Configuring hackage-security-0.5.3.0...
Building cabal-doctest-1.0.6...
Building hackage-security-0.5.3.0...
Installed cabal-doctest-1.0.6
Configuring http-api-data-0.3.10...
Building zip-archive-0.3.3...
Building stm-chans-3.0.0.4...
Building http-api-data-0.3.10...
Installed stm-chans-3.0.0.4
Configuring distributive-0.6...
Installed zip-archive-0.3.3
Configuring monad-logger-0.3.30...
Installed hackage-security-0.5.3.0
Building monad-logger-0.3.30...
Installed monad-logger-0.3.30
Building distributive-0.6...
Installed distributive-0.6
Configuring comonad-5.0.4...
Installed http-api-data-0.3.10
Downloading persistent-2.9.0...
Configuring persistent-2.9.0...
Building persistent-2.9.0...
Building comonad-5.0.4...
Installed comonad-5.0.4
Configuring bifunctors-5.5.3...
Building bifunctors-5.5.3...
Installed bifunctors-5.5.3
Configuring profunctors-5.3...
Configuring semigroupoids-5.3.1...
Configuring hpack-0.31.0...
Building hpack-0.31.0...
Building profunctors-5.3...
Installed profunctors-5.3
Installed persistent-2.9.0
Downloading persistent-sqlite-2.9.0...
Configuring persistent-template-2.5.4...
Building semigroupoids-5.3.1...
Building persistent-template-2.5.4...
Configuring persistent-sqlite-2.9.0...
Building persistent-sqlite-2.9.0...
Installed semigroupoids-5.3.1
Configuring free-5.1...
Building free-5.1...
Installed persistent-template-2.5.4
Configuring either-5.0.1...
Building either-5.0.1...
Installed either-5.0.1
Configuring mustache-2.3.0...
Building mustache-2.3.0...
Installed free-5.1
Configuring store-0.5.0.1...
Building store-0.5.0.1...
Installed mustache-2.3.0
Installed hpack-0.31.0
Installed persistent-sqlite-2.9.0
Installed store-0.5.0.1
Downloading stack-1.9.1...
Configuring stack-1.9.1...
Building stack-1.9.1...
Failed to install stack-1.9.1
Build log ( /home/scott/tryitout/.cabal-sandbox/logs/ghc-8.2.2/stack-1.9.1-JqI3LOTCx3dCvq3AxXxIqn.log ):
cabal: Entering directory '/usr/local/cabal/build/cabal-tmp-52611/stack-1.9.1'
[1 of 1] Compiling Main             ( /usr/local/cabal/build/cabal-tmp-52611/stack-1.9.1/dist/dist-sandbox-540c844/setup/setup.hs, /usr/local/cabal/build/cabal-tmp-52611/stack-1.9.1/dist/dist-sandbox-540c844/setup/Main.o )
Linking /usr/local/cabal/build/cabal-tmp-52611/stack-1.9.1/dist/dist-sandbox-540c844/setup/setup ...
Configuring stack-1.9.1...
Preprocessing library for stack-1.9.1..
Building library for stack-1.9.1..
[  1 of 127] Compiling Network.HTTP.StackClient ( src/Network/HTTP/StackClient.hs, dist/dist-sandbox-540c844/build/Network/HTTP/StackClient.o )
[  2 of 127] Compiling Hackage.Security.Client.Repository.HttpLib.HttpClient ( src/Hackage/Security/Client/Repository/HttpLib/HttpClient.hs, dist/dist-sandbox-540c844/build/Hackage/Security/Client/Repository/HttpLib/HttpClient.o )
[  3 of 127] Compiling Path.Extra       ( src/Path/Extra.hs, dist/dist-sandbox-540c844/build/Path/Extra.o )
[  4 of 127] Compiling Paths_stack      ( dist/dist-sandbox-540c844/build/autogen/Paths_stack.hs, dist/dist-sandbox-540c844/build/Paths_stack.o )
[  5 of 127] Compiling Stack.Prelude    ( src/Stack/Prelude.hs, dist/dist-sandbox-540c844/build/Stack/Prelude.o )
[  6 of 127] Compiling Stack.Options.Utils ( src/Stack/Options/Utils.hs, dist/dist-sandbox-540c844/build/Stack/Options/Utils.o )
[  7 of 127] Compiling Stack.Options.LogLevelParser ( src/Stack/Options/LogLevelParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/LogLevelParser.o )
[  8 of 127] Compiling Stack.Ghci.Script ( src/Stack/Ghci/Script.hs, dist/dist-sandbox-540c844/build/Stack/Ghci/Script.o )
[  9 of 127] Compiling Stack.FileWatch  ( src/Stack/FileWatch.hs, dist/dist-sandbox-540c844/build/Stack/FileWatch.o )
[ 10 of 127] Compiling Path.Find        ( src/Path/Find.hs, dist/dist-sandbox-540c844/build/Path/Find.o )
[ 11 of 127] Compiling Options.Applicative.Complicated ( src/Options/Applicative/Complicated.hs, dist/dist-sandbox-540c844/build/Options/Applicative/Complicated.o )
[ 12 of 127] Compiling Options.Applicative.Builder.Extra ( src/Options/Applicative/Builder/Extra.hs, dist/dist-sandbox-540c844/build/Options/Applicative/Builder/Extra.o )
[ 13 of 127] Compiling Stack.Options.SolverParser ( src/Stack/Options/SolverParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/SolverParser.o )
[ 14 of 127] Compiling Data.Store.VersionTagged ( src/Data/Store/VersionTagged.hs, dist/dist-sandbox-540c844/build/Data/Store/VersionTagged.o )
[ 15 of 127] Compiling Data.Monoid.Map  ( src/Data/Monoid/Map.hs, dist/dist-sandbox-540c844/build/Data/Monoid/Map.o )
[ 16 of 127] Compiling Data.IORef.RunOnce ( src/Data/IORef/RunOnce.hs, dist/dist-sandbox-540c844/build/Data/IORef/RunOnce.o )
[ 17 of 127] Compiling Data.Attoparsec.Combinators ( src/Data/Attoparsec/Combinators.hs, dist/dist-sandbox-540c844/build/Data/Attoparsec/Combinators.o )
[ 18 of 127] Compiling Data.Attoparsec.Args ( src/Data/Attoparsec/Args.hs, dist/dist-sandbox-540c844/build/Data/Attoparsec/Args.o )
[ 19 of 127] Compiling Options.Applicative.Args ( src/Options/Applicative/Args.hs, dist/dist-sandbox-540c844/build/Options/Applicative/Args.o )
[ 20 of 127] Compiling Data.Aeson.Extended ( src/Data/Aeson/Extended.hs, dist/dist-sandbox-540c844/build/Data/Aeson/Extended.o )
[ 21 of 127] Compiling Stack.StaticBytes ( src/Stack/StaticBytes.hs, dist/dist-sandbox-540c844/build/Stack/StaticBytes.o )
[ 22 of 127] Compiling Stack.Types.CompilerBuild ( src/Stack/Types/CompilerBuild.hs, dist/dist-sandbox-540c844/build/Stack/Types/CompilerBuild.o )
[ 23 of 127] Compiling Stack.Options.GhcBuildParser ( src/Stack/Options/GhcBuildParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/GhcBuildParser.o )
[ 24 of 127] Compiling Stack.Types.FlagName ( src/Stack/Types/FlagName.hs, dist/dist-sandbox-540c844/build/Stack/Types/FlagName.o )
[ 25 of 127] Compiling Stack.Types.GhcPkgId ( src/Stack/Types/GhcPkgId.hs, dist/dist-sandbox-540c844/build/Stack/Types/GhcPkgId.o )
[ 26 of 127] Compiling Stack.Types.Image ( src/Stack/Types/Image.hs, dist/dist-sandbox-540c844/build/Stack/Types/Image.o )
[ 27 of 127] Compiling Stack.Types.Nix  ( src/Stack/Types/Nix.hs, dist/dist-sandbox-540c844/build/Stack/Types/Nix.o )
[ 28 of 127] Compiling Stack.Types.PackageName ( src/Stack/Types/PackageName.hs, dist/dist-sandbox-540c844/build/Stack/Types/PackageName.o )
[ 29 of 127] Compiling Stack.Types.NamedComponent ( src/Stack/Types/NamedComponent.hs, dist/dist-sandbox-540c844/build/Stack/Types/NamedComponent.o )
[ 30 of 127] Compiling Stack.Types.Config.Build ( src/Stack/Types/Config/Build.hs, dist/dist-sandbox-540c844/build/Stack/Types/Config/Build.o )
[ 31 of 127] Compiling Stack.Options.PackageParser ( src/Stack/Options/PackageParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/PackageParser.o )
[ 32 of 127] Compiling Stack.Types.Sig  ( src/Stack/Types/Sig.hs, dist/dist-sandbox-540c844/build/Stack/Types/Sig.o )
[ 33 of 127] Compiling Stack.Sig.GPG    ( src/Stack/Sig/GPG.hs, dist/dist-sandbox-540c844/build/Stack/Sig/GPG.o )
[ 34 of 127] Compiling Stack.Types.TemplateName ( src/Stack/Types/TemplateName.hs, dist/dist-sandbox-540c844/build/Stack/Types/TemplateName.o )
[ 35 of 127] Compiling Stack.Types.Urls ( src/Stack/Types/Urls.hs, dist/dist-sandbox-540c844/build/Stack/Types/Urls.o )
[ 36 of 127] Compiling Stack.Config.Urls ( src/Stack/Config/Urls.hs, dist/dist-sandbox-540c844/build/Stack/Config/Urls.o )
[ 37 of 127] Compiling Stack.Types.Version ( src/Stack/Types/Version.hs, dist/dist-sandbox-540c844/build/Stack/Types/Version.o )
[ 38 of 127] Compiling Stack.Types.PackageIdentifier ( src/Stack/Types/PackageIdentifier.hs, dist/dist-sandbox-540c844/build/Stack/Types/PackageIdentifier.o )
[ 39 of 127] Compiling Stack.Types.PackageIndex ( src/Stack/Types/PackageIndex.hs, dist/dist-sandbox-540c844/build/Stack/Types/PackageIndex.o )
[ 40 of 127] Compiling Stack.Types.PackageDump ( src/Stack/Types/PackageDump.hs, dist/dist-sandbox-540c844/build/Stack/Types/PackageDump.o )
[ 41 of 127] Compiling Control.Concurrent.Execute ( src/Control/Concurrent/Execute.hs, dist/dist-sandbox-540c844/build/Control/Concurrent/Execute.o )
[ 42 of 127] Compiling Stack.Types.Compiler ( src/Stack/Types/Compiler.hs, dist/dist-sandbox-540c844/build/Stack/Types/Compiler.o )
[ 43 of 127] Compiling Stack.Types.Resolver ( src/Stack/Types/Resolver.hs, dist/dist-sandbox-540c844/build/Stack/Types/Resolver.o )
[ 44 of 127] Compiling Stack.Options.ResolverParser ( src/Stack/Options/ResolverParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/ResolverParser.o )
[ 45 of 127] Compiling Stack.Constants  ( src/Stack/Constants.hs, dist/dist-sandbox-540c844/build/Stack/Constants.o )
[ 46 of 127] Compiling Stack.Types.Docker ( src/Stack/Types/Docker.hs, dist/dist-sandbox-540c844/build/Stack/Types/Docker.o )
[ 47 of 127] Compiling Data.Attoparsec.Interpreter ( src/Data/Attoparsec/Interpreter.hs, dist/dist-sandbox-540c844/build/Data/Attoparsec/Interpreter.o )
[ 48 of 127] Compiling Stack.Types.VersionIntervals ( src/Stack/Types/VersionIntervals.hs, dist/dist-sandbox-540c844/build/Stack/Types/VersionIntervals.o )
[ 49 of 127] Compiling Stack.Types.BuildPlan ( src/Stack/Types/BuildPlan.hs, dist/dist-sandbox-540c844/build/Stack/Types/BuildPlan.o )
[ 50 of 127] Compiling System.Process.PagerEditor ( src/System/Process/PagerEditor.hs, dist/dist-sandbox-540c844/build/System/Process/PagerEditor.o )
[ 51 of 127] Compiling System.Terminal  ( dist/dist-sandbox-540c844/build/System/Terminal.hs, dist/dist-sandbox-540c844/build/System/Terminal.o )
[ 52 of 127] Compiling Stack.Types.Runner ( src/Stack/Types/Runner.hs, dist/dist-sandbox-540c844/build/Stack/Types/Runner.o )
[ 53 of 127] Compiling Stack.DefaultColorWhen ( src/unix/Stack/DefaultColorWhen.hs, dist/dist-sandbox-540c844/build/Stack/DefaultColorWhen.o )
[ 54 of 127] Compiling Stack.Config.Nix ( src/Stack/Config/Nix.hs, dist/dist-sandbox-540c844/build/Stack/Config/Nix.o )
[ 55 of 127] Compiling Text.PrettyPrint.Leijen.Extended ( src/Text/PrettyPrint/Leijen/Extended.hs, dist/dist-sandbox-540c844/build/Text/PrettyPrint/Leijen/Extended.o )
[ 56 of 127] Compiling Stack.PrettyPrint ( src/Stack/PrettyPrint.hs, dist/dist-sandbox-540c844/build/Stack/PrettyPrint.o )
[ 57 of 127] Compiling Network.HTTP.Download.Verified ( src/Network/HTTP/Download/Verified.hs, dist/dist-sandbox-540c844/build/Network/HTTP/Download/Verified.o )
[ 58 of 127] Compiling Network.HTTP.Download ( src/Network/HTTP/Download.hs, dist/dist-sandbox-540c844/build/Network/HTTP/Download.o )
[ 59 of 127] Compiling Stack.PackageIndex ( src/Stack/PackageIndex.hs, dist/dist-sandbox-540c844/build/Stack/PackageIndex.o )
[ 60 of 127] Compiling Stack.Types.Config ( src/Stack/Types/Config.hs, dist/dist-sandbox-540c844/build/Stack/Types/Config.o )
[ 61 of 127] Compiling Stack.Upload     ( src/Stack/Upload.hs, dist/dist-sandbox-540c844/build/Stack/Upload.o )
[ 62 of 127] Compiling Stack.Types.Package ( src/Stack/Types/Package.hs, dist/dist-sandbox-540c844/build/Stack/Types/Package.o )
[ 63 of 127] Compiling Stack.Types.Build ( src/Stack/Types/Build.hs, dist/dist-sandbox-540c844/build/Stack/Types/Build.o )
[ 64 of 127] Compiling Stack.GhcPkg     ( src/Stack/GhcPkg.hs, dist/dist-sandbox-540c844/build/Stack/GhcPkg.o )
[ 65 of 127] Compiling Stack.PackageDump ( src/Stack/PackageDump.hs, dist/dist-sandbox-540c844/build/Stack/PackageDump.o )
[ 66 of 127] Compiling Stack.Setup.Installed ( src/Stack/Setup/Installed.hs, dist/dist-sandbox-540c844/build/Stack/Setup/Installed.o )
[ 67 of 127] Compiling Stack.Options.TestParser ( src/Stack/Options/TestParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/TestParser.o )
[ 68 of 127] Compiling Stack.Options.HaddockParser ( src/Stack/Options/HaddockParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/HaddockParser.o )
[ 69 of 127] Compiling Stack.Options.GhcVariantParser ( src/Stack/Options/GhcVariantParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/GhcVariantParser.o )
[ 70 of 127] Compiling Stack.Options.BenchParser ( src/Stack/Options/BenchParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/BenchParser.o )
[ 71 of 127] Compiling Stack.Docker.GlobalDB ( src/Stack/Docker/GlobalDB.hs, dist/dist-sandbox-540c844/build/Stack/Docker/GlobalDB.o )
[ 72 of 127] Compiling Stack.Constants.Config ( src/Stack/Constants/Config.hs, dist/dist-sandbox-540c844/build/Stack/Constants/Config.o )
[ 73 of 127] Compiling Stack.Image      ( src/Stack/Image.hs, dist/dist-sandbox-540c844/build/Stack/Image.o )
[ 74 of 127] Compiling Stack.Config.Docker ( src/Stack/Config/Docker.hs, dist/dist-sandbox-540c844/build/Stack/Config/Docker.o )
[ 75 of 127] Compiling Stack.Config.Build ( src/Stack/Config/Build.hs, dist/dist-sandbox-540c844/build/Stack/Config/Build.o )
[ 76 of 127] Compiling Stack.Build.Haddock ( src/Stack/Build/Haddock.hs, dist/dist-sandbox-540c844/build/Stack/Build/Haddock.o )
[ 77 of 127] Compiling Stack.Build.Cache ( src/Stack/Build/Cache.hs, dist/dist-sandbox-540c844/build/Stack/Build/Cache.o )
[ 78 of 127] Compiling Stack.Build.Installed ( src/Stack/Build/Installed.hs, dist/dist-sandbox-540c844/build/Stack/Build/Installed.o )
[ 79 of 127] Compiling Path.CheckInstall ( src/Path/CheckInstall.hs, dist/dist-sandbox-540c844/build/Path/CheckInstall.o )
[ 80 of 127] Compiling Stack.Path       ( src/Stack/Path.hs, dist/dist-sandbox-540c844/build/Stack/Path.o )
[ 81 of 127] Compiling Stack.New        ( src/Stack/New.hs, dist/dist-sandbox-540c844/build/Stack/New.o )
[ 82 of 127] Compiling Stack.Fetch      ( src/Stack/Fetch.hs, dist/dist-sandbox-540c844/build/Stack/Fetch.o )
[ 83 of 127] Compiling Stack.Package    ( src/Stack/Package.hs, dist/dist-sandbox-540c844/build/Stack/Package.o )
[ 84 of 127] Compiling Stack.Sig.Sign   ( src/Stack/Sig/Sign.hs, dist/dist-sandbox-540c844/build/Stack/Sig/Sign.o )
[ 85 of 127] Compiling Stack.Sig        ( src/Stack/Sig.hs, dist/dist-sandbox-540c844/build/Stack/Sig.o )
[ 86 of 127] Compiling Stack.PackageLocation ( src/Stack/PackageLocation.hs, dist/dist-sandbox-540c844/build/Stack/PackageLocation.o )
[ 87 of 127] Compiling Stack.Snapshot   ( src/Stack/Snapshot.hs, dist/dist-sandbox-540c844/build/Stack/Snapshot.o )
[ 88 of 127] Compiling Stack.Config     ( src/Stack/Config.hs, dist/dist-sandbox-540c844/build/Stack/Config.o )
[ 89 of 127] Compiling Stack.Nix        ( src/Stack/Nix.hs, dist/dist-sandbox-540c844/build/Stack/Nix.o )
[ 90 of 127] Compiling Stack.Options.NixParser ( src/Stack/Options/NixParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/NixParser.o )
[ 91 of 127] Compiling Stack.ConfigCmd  ( src/Stack/ConfigCmd.hs, dist/dist-sandbox-540c844/build/Stack/ConfigCmd.o )
[ 92 of 127] Compiling Stack.Clean      ( src/Stack/Clean.hs, dist/dist-sandbox-540c844/build/Stack/Clean.o )
[ 93 of 127] Compiling Stack.Options.CleanParser ( src/Stack/Options/CleanParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/CleanParser.o )
[ 94 of 127] Compiling Stack.Build.Target ( src/Stack/Build/Target.hs, dist/dist-sandbox-540c844/build/Stack/Build/Target.o )
[ 95 of 127] Compiling Stack.IDE        ( src/Stack/IDE.hs, dist/dist-sandbox-540c844/build/Stack/IDE.o )
[ 96 of 127] Compiling Stack.Coverage   ( src/Stack/Coverage.hs, dist/dist-sandbox-540c844/build/Stack/Coverage.o )
[ 97 of 127] Compiling Stack.BuildPlan  ( src/Stack/BuildPlan.hs, dist/dist-sandbox-540c844/build/Stack/BuildPlan.o )
[ 98 of 127] Compiling Stack.Build.Source ( src/Stack/Build/Source.hs, dist/dist-sandbox-540c844/build/Stack/Build/Source.o )
[ 99 of 127] Compiling Stack.Build.ConstructPlan ( src/Stack/Build/ConstructPlan.hs, dist/dist-sandbox-540c844/build/Stack/Build/ConstructPlan.o )
[100 of 127] Compiling Stack.Build.Execute ( src/Stack/Build/Execute.hs, dist/dist-sandbox-540c844/build/Stack/Build/Execute.o )
[101 of 127] Compiling Stack.Build      ( src/Stack/Build.hs, dist/dist-sandbox-540c844/build/Stack/Build.o )
[102 of 127] Compiling Stack.Setup      ( src/Stack/Setup.hs, dist/dist-sandbox-540c844/build/Stack/Setup.o )
[103 of 127] Compiling Stack.Upgrade    ( src/Stack/Upgrade.hs, dist/dist-sandbox-540c844/build/Stack/Upgrade.o )
[104 of 127] Compiling Stack.Solver     ( src/Stack/Solver.hs, dist/dist-sandbox-540c844/build/Stack/Solver.o )
[105 of 127] Compiling Stack.Init       ( src/Stack/Init.hs, dist/dist-sandbox-540c844/build/Stack/Init.o )
[106 of 127] Compiling Stack.SetupCmd   ( src/Stack/SetupCmd.hs, dist/dist-sandbox-540c844/build/Stack/SetupCmd.o )
[107 of 127] Compiling Stack.Docker     ( src/Stack/Docker.hs, dist/dist-sandbox-540c844/build/Stack/Docker.o )
[108 of 127] Compiling Stack.Options.DockerParser ( src/Stack/Options/DockerParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/DockerParser.o )
[109 of 127] Compiling Stack.SDist      ( src/Stack/SDist.hs, dist/dist-sandbox-540c844/build/Stack/SDist.o )
[110 of 127] Compiling Stack.Options.BuildMonoidParser ( src/Stack/Options/BuildMonoidParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/BuildMonoidParser.o )
[111 of 127] Compiling Stack.Options.ConfigParser ( src/Stack/Options/ConfigParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/ConfigParser.o )
[112 of 127] Compiling Stack.Options.GlobalParser ( src/Stack/Options/GlobalParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/GlobalParser.o )
[113 of 127] Compiling Stack.Options.NewParser ( src/Stack/Options/NewParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/NewParser.o )
[114 of 127] Compiling Stack.Ghci       ( src/Stack/Ghci.hs, dist/dist-sandbox-540c844/build/Stack/Ghci.o )
[115 of 127] Compiling Stack.Dot        ( src/Stack/Dot.hs, dist/dist-sandbox-540c844/build/Stack/Dot.o )
[116 of 127] Compiling Stack.Runners    ( src/Stack/Runners.hs, dist/dist-sandbox-540c844/build/Stack/Runners.o )
[117 of 127] Compiling Stack.Options.Completion ( src/Stack/Options/Completion.hs, dist/dist-sandbox-540c844/build/Stack/Options/Completion.o )
[118 of 127] Compiling Stack.Options.ScriptParser ( src/Stack/Options/ScriptParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/ScriptParser.o )
[119 of 127] Compiling Stack.Script     ( src/Stack/Script.hs, dist/dist-sandbox-540c844/build/Stack/Script.o )
[120 of 127] Compiling Stack.Options.HpcReportParser ( src/Stack/Options/HpcReportParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/HpcReportParser.o )
[121 of 127] Compiling Stack.Options.SDistParser ( src/Stack/Options/SDistParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/SDistParser.o )
[122 of 127] Compiling Stack.Options.ExecParser ( src/Stack/Options/ExecParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/ExecParser.o )
[123 of 127] Compiling Stack.Options.BuildParser ( src/Stack/Options/BuildParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/BuildParser.o )
[124 of 127] Compiling Stack.Options.GhciParser ( src/Stack/Options/GhciParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/GhciParser.o )
[125 of 127] Compiling Stack.Hoogle     ( src/Stack/Hoogle.hs, dist/dist-sandbox-540c844/build/Stack/Hoogle.o )
[126 of 127] Compiling Stack.Options.DotParser ( src/Stack/Options/DotParser.hs, dist/dist-sandbox-540c844/build/Stack/Options/DotParser.o )
[127 of 127] Compiling Stack.Ls         ( src/Stack/Ls.hs, dist/dist-sandbox-540c844/build/Stack/Ls.o )
Preprocessing executable 'stack' for stack-1.9.1..
Building executable 'stack' for stack-1.9.1..
[1 of 3] Compiling Build_stack      ( dist/dist-sandbox-540c844/build/global-autogen/Build_stack.hs, dist/dist-sandbox-540c844/build/stack/stack-tmp/Build_stack.o )
[2 of 3] Compiling Paths_stack      ( dist/dist-sandbox-540c844/build/stack/autogen/Paths_stack.hs, dist/dist-sandbox-540c844/build/stack/stack-tmp/Paths_stack.o )
[3 of 3] Compiling Main             ( src/main/Main.hs, dist/dist-sandbox-540c844/build/stack/stack-tmp/Main.o )

src/main/Main.hs:131:16: error:
    * Ambiguous type variable `a0' arising from a use of `show'
      prevents the constraint `(Show a0)' from being solved.
      Probable fix: use a type annotation to specify what `a0' should be.
      These potential instances exist:
        instance [safe] Show (Doc a)
          -- Defined in `Text.PrettyPrint.Annotated.Leijen'
        instance Show a => Show (ZipList a)
          -- Defined in `Control.Applicative'
        instance (Show b, Show a) => Show (Either a b)
          -- Defined in `Data.Either'
        ...plus 124 others
        ...plus 282 instances involving out-of-scope types
        (use -fprint-potential-instances to see them all)
    * In the first argument of `(++)', namely `show commitCount'
      In the second argument of `(++)', namely
        `show commitCount ++ " commits)"'
      In the expression: " (" ++ show commitCount ++ " commits)"
    |
131 |     , [" (" ++ show commitCount ++ " commits)" | commitCount /= 1]
    |                ^^^^^^^^^^^^^^^^

src/main/Main.hs:136:33: error:
    * Exception when trying to run compile-time code:
        GHEGitRunFailed "." ["rev-parse","--show-toplevel"] (ExitFailure 128) "" "fatal: not a git repository (or any parent up to mount point /usr)\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\n"
      Code: tGitInfoCwd
    * In the Template Haskell splice $$tGitInfoCwd
      In the first argument of `giCommitCount', namely `$$tGitInfoCwd'
      In the expression: giCommitCount $$tGitInfoCwd
    |
136 |     commitCount = giCommitCount $$tGitInfoCwd
    |                                 ^^^^^^^^^^^^^
cabal: Leaving directory '/usr/local/cabal/build/cabal-tmp-52611/stack-1.9.1'
cabal: Error: some packages failed to install:
stack-1.9.1-JqI3LOTCx3dCvq3AxXxIqn failed during the building phase. The
exception was:
ExitFailure 1

Some other info:

~/tryitout ❯❯❯ uname -a                                                               Thu 2018-11-01 10:34:31 -0700
OpenBSD rain.ggr.com 6.4 GENERIC.MP#364 amd64
~/tryitout ❯❯❯ ghc --version                                                          Thu 2018-11-01 10:34:34 -0700
The Glorious Glasgow Haskell Compilation System, version 8.2.2
~/tryitout ❯❯❯ cabal --version                                                        Thu 2018-11-01 10:34:41 -0700
cabal-install version 2.0.0.1
compiled using version 2.0.1.0 of the Cabal library
~/tryitout ❯❯❯                           

Stack version

1.9.1

Method of installation

cabal install

@bonds
Copy link
Author

bonds commented Nov 1, 2018

Maybe related to #4364

@mihaimaruseac
Copy link
Contributor

Duplicate of #4364

@mihaimaruseac mihaimaruseac marked this as a duplicate of #4364 Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants