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

Nikolaos Bezirgiannis bezirg at gmail.com
Sat Apr 6 18:02:48 CEST 2013


I switched to profiling through Cabal as you suggested, but now I have
the error:

bench\HLogo\Custom\Custom.hs:1:1:
    cannot find normal object file `dist\build\custom\custom-tmp\Framework\Keyword.o'
    while linking an interpreted expression

So, I removed managing the executables directly from Cabal
(--enable-executable-profiling) , and only enabled library profiling.  

Then I manually compiled each executable twice as:

ghc --make Custom.hs
ghc --make -prof -osuf p_o  Custom.hs

Profiling now works. Thank you.

Regards,
Nikos



More information about the Haskell-Cafe mailing list