[Haskell-cafe] Error when building executable with profiling enabled

Krzysztof Skrzętnicki gtener at gmail.com
Fri Apr 5 16:57:43 CEST 2013

You are using TemplateHaskell (-fth switch) which can be tricky. Please see
this documentation on profiling with TH:
Other than following the documentation I would recommend using Cabal
which handles the necessary flags and double-compilation process itself.

Best regards,
Krzysztof Skrzętnicki

On Fri, Apr 5, 2013 at 4:41 PM, Nikolaos Bezirgiannis <bezirg at gmail.com>wrote:

> Hello,
> i have an executable where i want to run profiling on.
> I do:
> ghc --make -prof -auto-all -fth Custom.hs
> but it does not built and the output is:
> bench\HLogo\Custom\Custom.hs:1:1:
>     Dynamic linking required, but this is a non-standard build (eg. prof).
>     You need to build the program twice: once the normal way, and then
>     in the desired way using -osuf to set the object file suffix.
> I tried googling on the error with no success. What can I do to
> compile this file for profiling?
> Cheers,
> Nikos
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130405/7a81da86/attachment.htm>

More information about the Haskell-Cafe mailing list