[Haskell-cafe] Yesod with lts-10.4

Yotam Ohad yotam2206 at gmail.com
Mon Feb 5 08:55:36 UTC 2018


Hi all,
The problem was corrupted files, after removing `~/.stack` the build was
successful.

Thank you

‫בתאריך יום ב׳, 5 בפבר׳ 2018 ב-1:04 מאת ‪Adam Bergmark‬‏ <‪adam at bergmark.nl
‬‏>:‬

> Hi Yotam,
>
> My guess is that some file has been corrupted. I'd remove `~/.stack` (you
> don't have to remove all of it, but i'm not sure exactly which parts need
> to go) and your project's `.stack-work` to do a clean rebuild. Heavy
> handed, but it should work.
>
> HTH,
> Adam
>
>
>
>
> On Sun, 4 Feb 2018 at 22:50 Sibi <sibi at psibi.in> wrote:
>
>> Is there any reason why you are trying to install rather than do a build?
>>
>> Regards,
>>
>>
>> On Mon, Feb 5, 2018, 1:54 AM Yotam Ohad <yotam2206 at gmail.com> wrote:
>>
>>> Hi,
>>> I'm trying to install yesod using stack and lts-10.4, but I get the
>>> following result:
>>> stack install yesod
>>> aeson-1.2.3.0: configure
>>> aeson-1.2.3.0: build
>>> Progress: 1/26
>>> --  While building custom Setup.hs for package aeson-1.2.3.0 using:
>>>
>>> /home/yotam/.stack/setup-exe-cache/i386-linux-nopie/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2
>>> --builddir=.stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0 build
>>> --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
>>>     Process exited with code: ExitFailure 1
>>>     Logs have been written to:
>>> /home/yotam/TheMafsidan/.stack-work/logs/aeson-1.2.3.0.log
>>>
>>>     Configuring aeson-1.2.3.0...
>>>     Preprocessing library for aeson-1.2.3.0..
>>>     Building library for aeson-1.2.3.0..
>>>     [ 1 of 24] Compiling Data.Aeson.Compat ( Data/Aeson/Compat.hs,
>>> .stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0/build/Data/Aeson/Compat.o )
>>>     [ 2 of 24] Compiling Data.Aeson.Internal.Functions (
>>> Data/Aeson/Internal/Functions.hs,
>>> .stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0/build/Data/Aeson/Internal/Functions.o
>>> )
>>>     [ 3 of 24] Compiling Data.Aeson.Parser.UnescapePure (
>>> pure/Data/Aeson/Parser/UnescapePure.hs,
>>> .stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0/build/Data/Aeson/Parser/UnescapePure.o
>>> )
>>>     [ 4 of 24] Compiling Data.Aeson.Parser.Unescape (
>>> Data/Aeson/Parser/Unescape.hs,
>>> .stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0/build/Data/Aeson/Parser/Unescape.o
>>> )
>>>     [ 5 of 24] Compiling Data.Aeson.Types.Generic (
>>> Data/Aeson/Types/Generic.hs,
>>> .stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0/build/Data/Aeson/Types/Generic.o
>>> )
>>>     [ 6 of 24] Compiling Data.Aeson.Types.Internal (
>>> Data/Aeson/Types/Internal.hs,
>>> .stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0/build/Data/Aeson/Types/Internal.o
>>> )
>>>     [ 7 of 24] Compiling Data.Aeson.Parser.Internal (
>>> Data/Aeson/Parser/Internal.hs,
>>> .stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0/build/Data/Aeson/Parser/Internal.o
>>> )
>>>     [ 8 of 24] Compiling Data.Aeson.Parser ( Data/Aeson/Parser.hs,
>>> .stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0/build/Data/Aeson/Parser.o )
>>>     [ 9 of 24] Compiling Data.Attoparsec.Time.Internal (
>>> attoparsec-iso8601/Data/Attoparsec/Time/Internal.hs,
>>> .stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0/build/Data/Attoparsec/Time/Internal.o
>>> )
>>>     [10 of 24] Compiling Data.Attoparsec.Time (
>>> attoparsec-iso8601/Data/Attoparsec/Time.hs,
>>> .stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0/build/Data/Attoparsec/Time.o
>>> )
>>>     [11 of 24] Compiling Data.Aeson.Parser.Time (
>>> Data/Aeson/Parser/Time.hs,
>>> .stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0/build/Data/Aeson/Parser/Time.o
>>> )
>>>     [12 of 24] Compiling Data.Aeson.Types.FromJSON (
>>> Data/Aeson/Types/FromJSON.hs,
>>> .stack-work/dist/i386-linux-nopie/Cabal-2.0.1.0/build/Data/Aeson/Types/FromJSON.o
>>> )
>>>
>>>     /tmp/stack15763/aeson-1.2.3.0/Data/Aeson/Types/FromJSON.hs:108:1:
>>> error:
>>>         Bad interface file:
>>> /home/yotam/.stack/snapshots/i386-linux-nopie/lts-10.4/8.2.2/lib/i386-linux-ghc-8.2.2/time-locale-compat-0.1.1.3-EeYCrKbfyeWLGJYmfXhrGy/Data/Time/Locale/Compat.hi
>>>             Data.Binary.getPrim: end of file
>>>         |
>>>     108 | import Data.Time.Locale.Compat (defaultTimeLocale)
>>>         | ^^
>>>
>>> Is this a matter of just waiting for packages to update to 8.2.2 or is
>>> it something I can change myself?
>>>
>>> Yotam
>>> _______________________________________________
>>> Haskell-Cafe mailing list
>>> To (un)subscribe, modify options or view archives go to:
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>>> Only members subscribed via the mailman list are allowed to post.
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> To (un)subscribe, modify options or view archives go to:
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>> Only members subscribed via the mailman list are allowed to post.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180205/14699f6f/attachment.html>


More information about the Haskell-Cafe mailing list