[web-devel] Problem installing hamlet 0.7.2 series

Gregory Collins greg at gregorycollins.net
Wed Apr 6 23:39:35 CEST 2011


This is an annoying bug for sure!

Another workaround:

1) cabal configure; cabal build  (non-profiling mode)
2) cabal configure --enable-library-profiling; cabal build

As long as you don't clean between 1) and 2), the .o file from the
first compilation will stick around so that template haskell can load
the code at compile time.

G

On Wed, Apr 6, 2011 at 11:26 PM, Blake Rain <blake.rain at gmail.com> wrote:
> [Bah, always forget to "Reply to All"]
>
> Well, the problem is that you are compiling with profiling, so when it
> comes to building the profiling library for hamlet, GHC tries to find a
> file with the ".o" extension... only they all have ".p_o" :(
>
> Only fix I know is to disable profiling by either commenting out or
> setting to "False" the "library-profiling" variable in your cabal
> configuration (~/.cabal/config).
>
> On Wed, 2011-04-06 at 23:40 +0300, Aur Saraf wrote:
>> This happens with hamlet 0.7.2*:
>>
>>
>> [sonoflilit at localhost fr]$ cabal install hamlet-0.7.2
>> Resolving dependencies...
>> Downloading hamlet-0.7.2...
>> Configuring hamlet-0.7.2...
>> Preprocessing library hamlet-0.7.2...
>> Preprocessing executables for hamlet-0.7.2...
>> Building hamlet-0.7.2...
>> [1 of 9] Compiling Text.MkSizeType  ( Text/MkSizeType.hs,
>> dist/build/Text/MkSizeType.o )
>>
>> Text/MkSizeType.hs:44:8:
>>     Warning: This binding for `show' shadows the existing binding
>>                imported from Prelude
>> [2 of 9] Compiling Text.Shakespeare ( Text/Shakespeare.hs,
>> dist/build/Text/Shakespeare.o )
>> [3 of 9] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs,
>> dist/build/Text/Hamlet/Parse.o )
>> [4 of 9] Compiling Text.Hamlet.Quasi ( Text/Hamlet/Quasi.hs,
>> dist/build/Text/Hamlet/Quasi.o )
>>
>> Text/Hamlet/Quasi.hs:34:43:
>>     Warning: In the use of `string'
>>              (imported from Text.Blaze, but defined in Text.Blaze.Internal):
>>              Deprecated: "Use Blaze.Html.toHtml"
>>
>> Text/Hamlet/Quasi.hs:129:4:
>>     Warning: Fields of `QuasiQuoter' not initialised: quotePat
>>     In the expression: QuasiQuoter {quoteExp = hamletFromString set}
>>     In the definition of `hamletWithSettings':
>>         hamletWithSettings set
>>                              = QuasiQuoter {quoteExp = hamletFromString set}
>>
>> Text/Hamlet/Quasi.hs:138:4:
>>     Warning: Fields of `QuasiQuoter' not initialised: quotePat
>>     In the expression:
>>         QuasiQuoter
>>           {quoteExp = \ s -> do { x <- hamletFromString set s;
>>                                   .... }}
>>     In the definition of `hamletWithSettings'':
>>         hamletWithSettings' set
>>                               = QuasiQuoter {quoteExp = \ s -> do { ... }}
>> [5 of 9] Compiling Text.Cassius     ( Text/Cassius.hs,
>> dist/build/Text/Cassius.o )
>> Loading package ghc-prim ... linking ... done.
>> Loading package integer-gmp ... linking ... done.
>> Loading package base ... linking ... done.
>> Loading package syb-0.1.0.2 ... linking ... done.
>> Loading package base-3.0.3.2 ... linking ... done.
>> Loading package parsec-2.1.0.1 ... linking ... done.
>> Loading package bytestring-0.9.1.7 ... linking ... done.
>> Loading package array-0.3.0.1 ... linking ... done.
>> Loading package containers-0.3.0.0 ... linking ... done.
>> Loading package deepseq-1.1.0.2 ... linking ... done.
>> Loading package text-0.11.0.6 ... linking ... done.
>> Loading package blaze-builder-0.2.1.4 ... linking ... done.
>> Loading package transformers-0.2.2.0 ... linking ... done.
>> Loading package enumerator-0.4.9.1 ... linking ... done.
>> Loading package blaze-builder-enumerator-0.2.0.2 ... linking ... done.
>> Loading package json-types-0.1 ... linking ... done.
>> Loading package json-enumerator-0.0.1.1 ... linking ... done.
>> Loading package failure-0.1.0.1 ... linking ... done.
>> Loading package blaze-html-0.4.1.0 ... linking ... done.
>> Loading package extensible-exceptions-0.1.1.1 ... linking ... done.
>> Loading package filepath-1.1.0.4 ... linking ... done.
>> Loading package old-locale-1.0.0.2 ... linking ... done.
>> Loading package old-time-1.0.0.5 ... linking ... done.
>> Loading package unix-2.4.0.2 ... linking ... done.
>> Loading package directory-1.0.1.1 ... linking ... done.
>> Loading package pretty-1.0.1.1 ... linking ... done.
>> Loading package process-1.0.1.3 ... linking ... done.
>> Loading package Cabal-1.8.0.6 ... linking ... done.
>> Loading package ghc-binary-0.5.0.2 ... linking ... done.
>> Loading package bin-package-db-0.0.0.0 ... linking ... done.
>> Loading package hpc-0.5.0.5 ... linking ... done.
>> Loading package template-haskell ... linking ... done.
>> Loading package ghc-6.12.3 ... linking ... done.
>> Loading package mtl-2.0.1.0 ... linking ... done.
>> Loading package time-1.1.4 ... linking ... done.
>> Loading package random-1.0.0.2 ... linking ... done.
>> Loading package QuickCheck-2.4.0.1 ... linking ... done.
>> Loading package ffi-1.0 ... linking ... done.
>>
>> Text/Cassius.hs:202:4:
>>     Warning: This binding for `parseComment' shadows the existing binding
>>                defined at Text/Cassius.hs:148:0
>>
>> Text/Cassius.hs:213:10:
>>     Warning: Fields of `QuasiQuoter' not initialised: quotePat
>>     In the expression: QuasiQuoter {quoteExp = cassiusFromString}
>>     In the definition of `cassius':
>>         cassius = QuasiQuoter {quoteExp = cassiusFromString}
>>
>> Text/Cassius.hs:319:16:
>>     Warning: Pattern match(es) are non-exhaustive
>>              In a case alternative:
>>                  Patterns not matched:
>>                      []
>>                      (ghc-prim:GHC.Types.C# #x) : _
>>                      with
>>                      #x `notElem` ['c', 'e', 'i', 'm', 'p', '%']
>>                      [ghc-prim:GHC.Types.C# 'c']
>>                      (ghc-prim:GHC.Types.C# 'c') :
>> ((ghc-prim:GHC.Types.C# #x) : _)
>>                      with
>>                      #x `notElem` ['m']
>>                      ...
>> [6 of 9] Compiling Text.Julius      ( Text/Julius.hs, dist/build/Text/Julius.o )
>>
>> Text/Julius.hs:100:9:
>>     Warning: Fields of `QuasiQuoter' not initialised: quotePat
>>     In the expression: QuasiQuoter {quoteExp = juliusFromString}
>>     In the definition of `julius':
>>         julius = QuasiQuoter {quoteExp = juliusFromString}
>> [7 of 9] Compiling Text.Hamlet.RT   ( Text/Hamlet/RT.hs,
>> dist/build/Text/Hamlet/RT.o )
>> [8 of 9] Compiling Text.Hamlet.Debug ( Text/Hamlet/Debug.hs,
>> dist/build/Text/Hamlet/Debug.o )
>> [9 of 9] Compiling Text.Hamlet      ( Text/Hamlet.hs, dist/build/Text/Hamlet.o )
>> [1 of 9] Compiling Text.MkSizeType  ( Text/MkSizeType.hs,
>> dist/build/Text/MkSizeType.p_o )
>>
>> Text/MkSizeType.hs:44:8:
>>     Warning: This binding for `show' shadows the existing binding
>>                imported from Prelude
>> [2 of 9] Compiling Text.Shakespeare ( Text/Shakespeare.hs,
>> dist/build/Text/Shakespeare.p_o )
>> [3 of 9] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs,
>> dist/build/Text/Hamlet/Parse.p_o )
>> [4 of 9] Compiling Text.Hamlet.Quasi ( Text/Hamlet/Quasi.hs,
>> dist/build/Text/Hamlet/Quasi.p_o )
>>
>> Text/Hamlet/Quasi.hs:34:43:
>>     Warning: In the use of `string'
>>              (imported from Text.Blaze, but defined in Text.Blaze.Internal):
>>              Deprecated: "Use Blaze.Html.toHtml"
>>
>> Text/Hamlet/Quasi.hs:129:4:
>>     Warning: Fields of `QuasiQuoter' not initialised: quotePat
>>     In the expression: QuasiQuoter {quoteExp = hamletFromString set}
>>     In the definition of `hamletWithSettings':
>>         hamletWithSettings set
>>                              = QuasiQuoter {quoteExp = hamletFromString set}
>>
>> Text/Hamlet/Quasi.hs:138:4:
>>     Warning: Fields of `QuasiQuoter' not initialised: quotePat
>>     In the expression:
>>         QuasiQuoter
>>           {quoteExp = \ s -> do { x <- hamletFromString set s;
>>                                   .... }}
>>     In the definition of `hamletWithSettings'':
>>         hamletWithSettings' set
>>                               = QuasiQuoter {quoteExp = \ s -> do { ... }}
>> [5 of 9] Compiling Text.Cassius     ( Text/Cassius.hs,
>> dist/build/Text/Cassius.p_o )
>> Loading package ghc-prim ... linking ... done.
>> Loading package integer-gmp ... linking ... done.
>> Loading package base ... linking ... done.
>> Loading package syb-0.1.0.2 ... linking ... done.
>> Loading package base-3.0.3.2 ... linking ... done.
>> Loading package parsec-2.1.0.1 ... linking ... done.
>> Loading package bytestring-0.9.1.7 ... linking ... done.
>> Loading package array-0.3.0.1 ... linking ... done.
>> Loading package containers-0.3.0.0 ... linking ... done.
>> Loading package deepseq-1.1.0.2 ... linking ... done.
>> Loading package text-0.11.0.6 ... linking ... done.
>> Loading package blaze-builder-0.2.1.4 ... linking ... done.
>> Loading package transformers-0.2.2.0 ... linking ... done.
>> Loading package enumerator-0.4.9.1 ... linking ... done.
>> Loading package blaze-builder-enumerator-0.2.0.2 ... linking ... done.
>> Loading package json-types-0.1 ... linking ... done.
>> Loading package json-enumerator-0.0.1.1 ... linking ... done.
>> Loading package failure-0.1.0.1 ... linking ... done.
>> Loading package blaze-html-0.4.1.0 ... linking ... done.
>> Loading package extensible-exceptions-0.1.1.1 ... linking ... done.
>> Loading package filepath-1.1.0.4 ... linking ... done.
>> Loading package old-locale-1.0.0.2 ... linking ... done.
>> Loading package old-time-1.0.0.5 ... linking ... done.
>> Loading package unix-2.4.0.2 ... linking ... done.
>> Loading package directory-1.0.1.1 ... linking ... done.
>> Loading package pretty-1.0.1.1 ... linking ... done.
>> Loading package process-1.0.1.3 ... linking ... done.
>> Loading package Cabal-1.8.0.6 ... linking ... done.
>> Loading package ghc-binary-0.5.0.2 ... linking ... done.
>> Loading package bin-package-db-0.0.0.0 ... linking ... done.
>> Loading package hpc-0.5.0.5 ... linking ... done.
>> Loading package template-haskell ... linking ... done.
>> Loading package ghc-6.12.3 ... linking ... done.
>> Loading package mtl-2.0.1.0 ... linking ... done.
>> Loading package time-1.1.4 ... linking ... done.
>> Loading package random-1.0.0.2 ... linking ... done.
>> Loading package QuickCheck-2.4.0.1 ... linking ... done.
>> Loading package ffi-1.0 ... linking ... done.
>>
>> Text/Cassius.hs:202:4:
>>     Warning: This binding for `parseComment' shadows the existing binding
>>                defined at Text/Cassius.hs:148:0
>>
>> Text/Cassius.hs:213:10:
>>     Warning: Fields of `QuasiQuoter' not initialised: quotePat
>>     In the expression: QuasiQuoter {quoteExp = cassiusFromString}
>>     In the definition of `cassius':
>>         cassius = QuasiQuoter {quoteExp = cassiusFromString}
>>
>> Text/Cassius.hs:319:16:
>>     Warning: Pattern match(es) are non-exhaustive
>>              In a case alternative:
>>                  Patterns not matched:
>>                      []
>>                      (ghc-prim:GHC.Types.C# #x) : _
>>                      with
>>                      #x `notElem` ['c', 'e', 'i', 'm', 'p', '%']
>>                      [ghc-prim:GHC.Types.C# 'c']
>>                      (ghc-prim:GHC.Types.C# 'c') :
>> ((ghc-prim:GHC.Types.C# #x) : _)
>>                      with
>>                      #x `notElem` ['m']
>>                      ...
>> [6 of 9] Compiling Text.Julius      ( Text/Julius.hs,
>> dist/build/Text/Julius.p_o )
>>
>> Text/Julius.hs:100:9:
>>     Warning: Fields of `QuasiQuoter' not initialised: quotePat
>>     In the expression: QuasiQuoter {quoteExp = juliusFromString}
>>     In the definition of `julius':
>>         julius = QuasiQuoter {quoteExp = juliusFromString}
>> [7 of 9] Compiling Text.Hamlet.RT   ( Text/Hamlet/RT.hs,
>> dist/build/Text/Hamlet/RT.p_o )
>> [8 of 9] Compiling Text.Hamlet.Debug ( Text/Hamlet/Debug.hs,
>> dist/build/Text/Hamlet/Debug.p_o )
>> [9 of 9] Compiling Text.Hamlet      ( Text/Hamlet.hs,
>> dist/build/Text/Hamlet.p_o )
>> Registering hamlet-0.7.2...
>> [ 1 of 11] Compiling Text.Shakespeare ( Text/Shakespeare.hs,
>> dist/build/hamlet6to7/hamlet6to7-tmp/Text/Shakespeare.p_o )
>> [ 2 of 11] Compiling Old.Utf8         ( Old/Utf8.hs,
>> dist/build/hamlet6to7/hamlet6to7-tmp/Old/Utf8.p_o )
>> [ 3 of 11] Compiling Text.MkSizeType  ( Text/MkSizeType.hs,
>> dist/build/hamlet6to7/hamlet6to7-tmp/Text/MkSizeType.p_o )
>> [ 4 of 11] Compiling Text.Hamlet.Parse ( Text/Hamlet/Parse.hs,
>> dist/build/hamlet6to7/hamlet6to7-tmp/Text/Hamlet/Parse.p_o )
>> [ 5 of 11] Compiling Text.Hamlet.Quasi ( Text/Hamlet/Quasi.hs,
>> dist/build/hamlet6to7/hamlet6to7-tmp/Text/Hamlet/Quasi.p_o )
>>
>> Text/Hamlet/Quasi.hs:34:43:
>>     Warning: In the use of `string'
>>              (imported from Text.Blaze, but defined in Text.Blaze.Internal):
>>              Deprecated: "Use Blaze.Html.toHtml"
>>
>> Text/Hamlet/Quasi.hs:129:4:
>>     Warning: Fields of `QuasiQuoter' not initialised: quotePat
>>     In the expression: QuasiQuoter {quoteExp = hamletFromString set}
>>     In the definition of `hamletWithSettings':
>>         hamletWithSettings set
>>                              = QuasiQuoter {quoteExp = hamletFromString set}
>>
>> Text/Hamlet/Quasi.hs:138:4:
>>     Warning: Fields of `QuasiQuoter' not initialised: quotePat
>>     In the expression:
>>         QuasiQuoter
>>           {quoteExp = \ s -> do { x <- hamletFromString set s;
>>                                   .... }}
>>     In the definition of `hamletWithSettings'':
>>         hamletWithSettings' set
>>                               = QuasiQuoter {quoteExp = \ s -> do { ... }}
>> [ 6 of 11] Compiling Text.Cassius     ( Text/Cassius.hs,
>> dist/build/hamlet6to7/hamlet6to7-tmp/Text/Cassius.p_o )
>> Loading package ghc-prim ... linking ... done.
>> Loading package integer-gmp ... linking ... done.
>> Loading package base ... linking ... done.
>> Loading package syb-0.1.0.2 ... linking ... done.
>> Loading package base-3.0.3.2 ... linking ... done.
>> Loading package parsec-2.1.0.1 ... linking ... done.
>> Loading package bytestring-0.9.1.7 ... linking ... done.
>> Loading package array-0.3.0.1 ... linking ... done.
>> Loading package containers-0.3.0.0 ... linking ... done.
>> Loading package deepseq-1.1.0.2 ... linking ... done.
>> Loading package text-0.11.0.6 ... linking ... done.
>> Loading package blaze-builder-0.2.1.4 ... linking ... done.
>> Loading package transformers-0.2.2.0 ... linking ... done.
>> Loading package enumerator-0.4.9.1 ... linking ... done.
>> Loading package blaze-builder-enumerator-0.2.0.2 ... linking ... done.
>> Loading package json-types-0.1 ... linking ... done.
>> Loading package json-enumerator-0.0.1.1 ... linking ... done.
>> Loading package failure-0.1.0.1 ... linking ... done.
>> Loading package blaze-html-0.4.1.0 ... linking ... done.
>> Loading package extensible-exceptions-0.1.1.1 ... linking ... done.
>> Loading package filepath-1.1.0.4 ... linking ... done.
>> Loading package old-locale-1.0.0.2 ... linking ... done.
>> Loading package old-time-1.0.0.5 ... linking ... done.
>> Loading package unix-2.4.0.2 ... linking ... done.
>> Loading package directory-1.0.1.1 ... linking ... done.
>> Loading package pretty-1.0.1.1 ... linking ... done.
>> Loading package process-1.0.1.3 ... linking ... done.
>> Loading package Cabal-1.8.0.6 ... linking ... done.
>> Loading package ghc-binary-0.5.0.2 ... linking ... done.
>> Loading package bin-package-db-0.0.0.0 ... linking ... done.
>> Loading package hpc-0.5.0.5 ... linking ... done.
>> Loading package template-haskell ... linking ... done.
>> Loading package ghc-6.12.3 ... linking ... done.
>> Loading package mtl-2.0.1.0 ... linking ... done.
>> Loading package time-1.1.4 ... linking ... done.
>> Loading package random-1.0.0.2 ... linking ... done.
>> Loading package QuickCheck-2.4.0.1 ... linking ... done.
>> Loading package ffi-1.0 ... linking ... done.
>> Text/Cassius.hs:1:0:
>>     cannot find normal object file
>> `dist/build/hamlet6to7/hamlet6to7-tmp/Text/MkSizeType.o'
>>     while linking an interpreted expression
>> cabal: Error: some packages failed to install:
>> hamlet-0.7.2 failed during the building phase. The exception was:
>> ExitFailure 1
>>
>>
>> I need this to be able to convert my app to 0.7...
>>
>>
>> Can anyone help?
>>
>>
>> Thanks,
>>   Aur
>>
>> _______________________________________________
>> web-devel mailing list
>> web-devel at haskell.org
>> http://www.haskell.org/mailman/listinfo/web-devel
>
>
>
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel
>



-- 
Gregory Collins <greg at gregorycollins.net>



More information about the web-devel mailing list