commercialhaskell / stack-ide

Stack-based JSON interface to ide-backend
98 stars 23 forks source link

Build Failure (Arch Linux) #61

Closed balajisivaraman closed 9 years ago

balajisivaraman commented 9 years ago

I installed haskell=stack from the AUR, which is on Version 0.1.4.0 (Git revision 165db5bd77cc88745e0ec8e143275575e5a75d93 (1723 commits) X86_64) right now. I also installed GHC using Stack, which gave me GHC 7.10.2, which is also on the System Path now. I uninstalled GHC from the AUR as well, though I understand there's no conflict between the two.

Then I followed the instructions given in the README to build stack-ide, which resulted in the following errors.

[1 of 1] Compiling Main             ( /tmp/stack27748/Setup.hs, /tmp/stack27748/Setup.o )
Linking /home/balaji/.stack/setup-exe-cache/tmp-setup-Simple-Cabal-1.22.4.0-x86_64-linux-ghc-7.10.2 ...
ide-backend-common-0.10.0-77283ca8a5979100eaeac0dc62b1b192: unregistering (likely unregistering due to a version change)
auto-update-0.1.2.2: download
auto-update-0.1.2.2: configure
bytestring-builder-0.10.6.0.0: download
ansi-terminal-0.6.2.1: download
Cabal-ide-backend-1.23.0.0: download
auto-update-0.1.2.2: build
ansi-terminal-0.6.2.1: configure
ansi-terminal-0.6.2.1: build
bytestring-builder-0.10.6.0.0: configure
bytestring-builder-0.10.6.0.0: build
bytestring-builder-0.10.6.0.0: install
auto-update-0.1.2.2: install
Cabal-ide-backend-1.23.0.0: configure
bytestring-trie-0.2.4.1: download
cereal-0.4.1.1: download
ansi-terminal-0.6.2.1: install
ansi-wl-pprint-0.6.7.2: download
Cabal-ide-backend-1.23.0.0: build
bytestring-trie-0.2.4.1: configure
bytestring-trie-0.2.4.1: build
cereal-0.4.1.1: configure
cereal-0.4.1.1: build
ansi-wl-pprint-0.6.7.2: configure
ansi-wl-pprint-0.6.7.2: build
ansi-wl-pprint-0.6.7.2: install
bytestring-trie-0.2.4.1: install
data-accessor-0.2.2.6: download
data-accessor-0.2.2.6: configure
data-accessor-0.2.2.6: build
dlist-0.7.1.1: download
dlist-0.7.1.1: configure
data-accessor-0.2.2.6: install
dlist-0.7.1.1: build
dlist-0.7.1.1: install
entropy-0.3.7: download
entropy-0.3.7: configure
entropy-0.3.7: build
executable-path-0.0.3: download
executable-path-0.0.3: configure
executable-path-0.0.3: build
entropy-0.3.7: install
cereal-0.4.1.1: install
executable-path-0.0.3: install
file-embed-0.0.8.2: download
ghc-paths-0.1.0.9: download
ghc-paths-0.1.0.9: configure
fingertree-0.1.1.0: download
ghc-paths-0.1.0.9: build
fingertree-0.1.1.0: configure
fingertree-0.1.1.0: build
file-embed-0.0.8.2: configure
file-embed-0.0.8.2: build
ghc-paths-0.1.0.9: install
file-embed-0.0.8.2: install
haddock-library-1.2.1: download
haskell-lexer-1.0: download
haskell-lexer-1.0: configure
fingertree-0.1.1.0: install
haskell-lexer-1.0: build
haddock-library-1.2.1: configure
haddock-library-1.2.1: build
mmorph-1.0.4: download
mmorph-1.0.4: configure
mmorph-1.0.4: build
mmorph-1.0.4: install
monad-loops-0.4.3: download
monad-loops-0.4.3: configure
monad-loops-0.4.3: build
monad-loops-0.4.3: install
mtl-2.2.1: download
mtl-2.2.1: configure
mtl-2.2.1: build
mtl-2.2.1: install
data-accessor-mtl-0.2.0.4: download
data-accessor-mtl-0.2.0.4: configure
data-accessor-mtl-0.2.0.4: build
data-accessor-mtl-0.2.0.4: install
haddock-library-1.2.1: install
happy-1.19.5: download
haddock-api-2.16.1: download
happy-1.19.5: configure
haskell-lexer-1.0: install
happy-1.19.5: build
haddock-api-2.16.1: configure
haddock-api-2.16.1: build
network-2.6.2.1: download
network-2.6.2.1: configure
network-2.6.2.1: build
happy-1.19.5: install
network-2.6.2.1: install
old-locale-1.0.0.7: download
old-locale-1.0.0.7: configure
pretty-show-1.6.8.2: download
old-locale-1.0.0.7: build
old-locale-1.0.0.7: install
pretty-show-1.6.8.2: configure
pretty-show-1.6.8.2: build
old-time-1.1.0.3: download
old-time-1.1.0.3: configure
old-time-1.1.0.3: build
pretty-show-1.6.8.2: install
primitive-0.6: download
primitive-0.6: configure
primitive-0.6: build
haddock-api-2.16.1: install
old-time-1.1.0.3: install
primitive-0.6: install
random-1.1: download
random-1.1: configure
stm-2.4.4: download
random-1.1: build
stm-2.4.4: configure
syb-0.5.1: download
stm-2.4.4: build
syb-0.5.1: configure
syb-0.5.1: build
stm-2.4.4: install
async-2.0.2: download
async-2.0.2: configure
random-1.1: install
syb-0.5.1: install
async-2.0.2: build
async-2.0.2: install
stm-chans-3.0.0.4: download
tagged-0.8.1: download
stm-chans-3.0.0.4: configure
stm-chans-3.0.0.4: build
tagged-0.8.1: configure
tagged-0.8.1: build
tar-0.4.2.1: download
tar-0.4.2.1: configure
stm-chans-3.0.0.4: install
tar-0.4.2.1: build
tagged-0.8.1: install
text-1.2.1.3: download
crypto-api-0.13.2: download
crypto-api-0.13.2: configure
crypto-api-0.13.2: build
text-1.2.1.3: configure
text-1.2.1.3: build
tar-0.4.2.1: install
transformers-compat-0.4.0.4: download
transformers-compat-0.4.0.4: configure
transformers-compat-0.4.0.4: build
transformers-compat-0.4.0.4: install
exceptions-0.8.0.2: download
exceptions-0.8.0.2: configure
exceptions-0.8.0.2: build
crypto-api-0.13.2: install
exceptions-0.8.0.2: install
optparse-applicative-0.11.0.2: download
pureMD5-2.1.2.1: download
pureMD5-2.1.2.1: configure
pureMD5-2.1.2.1: build
optparse-applicative-0.11.0.2: configure
optparse-applicative-0.11.0.2: build
pureMD5-2.1.2.1: install
optparse-applicative-0.11.0.2: install
temporary-1.2.0.3: download
temporary-1.2.0.3: configure
temporary-1.2.0.3: build
temporary-1.2.0.3: install
transformers-base-0.4.4: download
transformers-base-0.4.4: configure
transformers-base-0.4.4: build
transformers-base-0.4.4: install
unix-compat-0.4.1.4: download
unix-compat-0.4.1.4: configure
unix-compat-0.4.1.4: build
monad-control-1.0.0.4: download
unix-compat-0.4.1.4: install
monad-control-1.0.0.4: configure
monad-control-1.0.0.4: build
monad-control-1.0.0.4: install
filemanip-0.3.6.3: download
filemanip-0.3.6.3: configure
filemanip-0.3.6.3: build
lifted-base-0.2.3.6: download
lifted-base-0.2.3.6: configure
lifted-base-0.2.3.6: build
filemanip-0.3.6.3: install
lifted-base-0.2.3.6: install
utf8-string-1: download
utf8-string-1: configure
utf8-string-1: build
resourcet-1.1.6: download
resourcet-1.1.6: configure
resourcet-1.1.6: build
resourcet-1.1.6: install
Cabal-ide-backend-1.23.0.0: install
Progress: 48/69
--  While building package utf8-string-1 using:
      /home/balaji/.stack/setup-exe-cache/setup-Simple-Cabal-1.22.4.0-x86_64-linux-ghc-7.10.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/ build --ghc-options -hpcdir .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/hpc/.hpc/ -ddump-hi -ddump-to-file
    Process exited with code: ExitFailure (-6)
    Logs have been written to: /home/balaji/Projects/haskell/stack-ide/.stack-work/logs/utf8-string-1.log

    Configuring utf8-string-1...
    Building utf8-string-1...
    Preprocessing library utf8-string-1...
    [1 of 5] Compiling Codec.Binary.UTF8.String ( Codec/Binary/UTF8/String.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Codec/Binary/UTF8/String.o )
    [2 of 5] Compiling Codec.Binary.UTF8.Generic ( Codec/Binary/UTF8/Generic.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Codec/Binary/UTF8/Generic.o )
    [3 of 5] Compiling Data.String.UTF8 ( Data/String/UTF8.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/String/UTF8.o )
    [4 of 5] Compiling Data.ByteString.UTF8 ( Data/ByteString/UTF8.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/ByteString/UTF8.o )
    [5 of 5] Compiling Data.ByteString.Lazy.UTF8 ( Data/ByteString/Lazy/UTF8.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/ByteString/Lazy/UTF8.o )
    ghc: internal error: evacuate: stack frame at 0x7f3f7abdb5d0

        (GHC version 7.10.2 for x86_64_unknown_linux)
        Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

--  While building package text-1.2.1.3 using:
      /home/balaji/.stack/setup-exe-cache/setup-Simple-Cabal-1.22.4.0-x86_64-linux-ghc-7.10.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/ build --ghc-options -hpcdir .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/hpc/.hpc/ -ddump-hi -ddump-to-file
    Process exited with code: ExitFailure (-6)
    Logs have been written to: /home/balaji/Projects/haskell/stack-ide/.stack-work/logs/text-1.2.1.3.log

    Configuring text-1.2.1.3...
    Building text-1.2.1.3...
    Preprocessing library text-1.2.1.3...
    [ 1 of 44] Compiling Data.Text.Internal.Read ( Data/Text/Internal/Read.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Read.o )

    Data/Text/Internal/Read.hs:21:1: Warning:
        The import of ‘Control.Applicative’ is redundant
          except perhaps to import instances from ‘Control.Applicative’
        To import instances alone, use: import Control.Applicative()
    [ 2 of 44] Compiling Data.Text.Internal.Encoding.Utf32 ( Data/Text/Internal/Encoding/Utf32.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Encoding/Utf32.o )
    [ 3 of 44] Compiling Data.Text.Internal.Builder.RealFloat.Functions ( Data/Text/Internal/Builder/RealFloat/Functions.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Builder/RealFloat/Functions.o )
    [ 4 of 44] Compiling Data.Text.Internal.Builder.Int.Digits ( Data/Text/Internal/Builder/Int/Digits.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Builder/Int/Digits.o )
    [ 5 of 44] Compiling Data.Text.Encoding.Error ( Data/Text/Encoding/Error.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Encoding/Error.o )

    Data/Text/Encoding/Error.hs:3:14: Warning:
        ‘Data.Text.Encoding.Error’ is marked as Trustworthy but has been inferred as safe!
    [ 6 of 44] Compiling Data.Text.Internal.Unsafe.Shift ( Data/Text/Internal/Unsafe/Shift.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Unsafe/Shift.o )
    [ 7 of 44] Compiling Data.Text.Internal.Encoding.Utf16 ( Data/Text/Internal/Encoding/Utf16.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Encoding/Utf16.o )
    [ 8 of 44] Compiling Data.Text.Internal.Functions ( Data/Text/Internal/Functions.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Functions.o )
    [ 9 of 44] Compiling Data.Text.Internal.Unsafe ( Data/Text/Internal/Unsafe.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Unsafe.o )
    [10 of 44] Compiling Data.Text.Array  ( Data/Text/Array.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Array.o )
    [11 of 44] Compiling Data.Text.Internal.Unsafe.Char ( Data/Text/Internal/Unsafe/Char.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Unsafe/Char.o )
    [12 of 44] Compiling Data.Text.Internal ( Data/Text/Internal.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal.o )
    [13 of 44] Compiling Data.Text.Internal.Fusion.Size ( Data/Text/Internal/Fusion/Size.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Fusion/Size.o )
    [14 of 44] Compiling Data.Text.Internal.Fusion.Types ( Data/Text/Internal/Fusion/Types.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Fusion/Types.o )
    [15 of 44] Compiling Data.Text.Internal.Fusion.CaseMapping ( Data/Text/Internal/Fusion/CaseMapping.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Fusion/CaseMapping.o )
    [16 of 44] Compiling Data.Text.Internal.Fusion.Common ( Data/Text/Internal/Fusion/Common.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Fusion/Common.o )
    [17 of 44] Compiling Data.Text.Unsafe ( Data/Text/Unsafe.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Unsafe.o )
    [18 of 44] Compiling Data.Text.Internal.Private ( Data/Text/Internal/Private.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Private.o )
    [19 of 44] Compiling Data.Text.Internal.Fusion ( Data/Text/Internal/Fusion.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Fusion.o )
    [20 of 44] Compiling Data.Text.Show   ( Data/Text/Show.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Show.o )
    [21 of 44] Compiling Data.Text.Internal.Encoding.Fusion.Common ( Data/Text/Internal/Encoding/Fusion/Common.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Encoding/Fusion/Common.o )
    [22 of 44] Compiling Data.Text.Internal.Encoding.Utf8 ( Data/Text/Internal/Encoding/Utf8.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Encoding/Utf8.o )
    [23 of 44] Compiling Data.Text.Internal.Encoding.Fusion ( Data/Text/Internal/Encoding/Fusion.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Encoding/Fusion.o )
    [24 of 44] Compiling Data.Text.Encoding ( Data/Text/Encoding.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Encoding.o )
    [25 of 44] Compiling Data.Text.Internal.Lazy.Encoding.Fusion ( Data/Text/Internal/Lazy/Encoding/Fusion.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Lazy/Encoding/Fusion.o )
    [26 of 44] Compiling Data.Text.Internal.Search ( Data/Text/Internal/Search.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Search.o )
    [27 of 44] Compiling Data.Text.Foreign ( Data/Text/Foreign.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Foreign.o )
    [28 of 44] Compiling Data.Text        ( Data/Text.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text.o )
    [29 of 44] Compiling Data.Text.Internal.IO ( Data/Text/Internal/IO.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/IO.o )
    [30 of 44] Compiling Data.Text.IO     ( Data/Text/IO.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/IO.o )
    [31 of 44] Compiling Data.Text.Internal.Lazy ( Data/Text/Internal/Lazy.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Lazy.o )
    [32 of 44] Compiling Data.Text.Internal.Lazy.Fusion ( Data/Text/Internal/Lazy/Fusion.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Lazy/Fusion.o )
    [33 of 44] Compiling Data.Text.Internal.Lazy.Search ( Data/Text/Internal/Lazy/Search.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Internal/Lazy/Search.o )
    [34 of 44] Compiling Data.Text.Lazy.Internal ( Data/Text/Lazy/Internal.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Lazy/Internal.o )
    [35 of 44] Compiling Data.Text.Lazy.Encoding ( Data/Text/Lazy/Encoding.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Text/Lazy/Encoding.o )

    Data/Text/Lazy/Encoding.hs:65:1: Warning:
        The import of ‘Data.Monoid’ is redundant
          except perhaps to import instances from ‘Data.Monoid’
        To import instances alone, use: import Data.Monoid()
    ghc: internal error: evacuate: strange closure type 8
        (GHC version 7.10.2 for x86_64_unknown_linux)
        Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Since this is on a fairly fresh installation of stack, I am not sure whether there's something else I should be doing. The same set of commands worked for me like a charm on OSX Yosemite though. brew install stack followed by stack build worked like a charm there.

mgsloan commented 9 years ago

Hi, thanks for the report! As far as I can tell you didn't do anything wrong here (and even if you had, this would be a very poor way to report it!). This is either a stack or ghc bug, and something very similar also was reported here: https://github.com/commercialhaskell/stack/issues/906

I'm closing this in favor of that issue.