[Haskell-cafe] cabal-dev: installing/running with profiling enabled
Ömer Sinan Ağacan
omeragacan at gmail.com
Tue Jul 2 08:07:18 CEST 2013
Hi Rogan,
Thanks for your reply.
> I don'th think the -prof flag is necessary; but if it is, then it may also
> be misinterpreted by cabal-dev; generally, you need to pass flags that only
> use a single leading "-" to cabal-dev with the --flags=... option. (eg:
> 'cabal-dev install --enable-library-profiling --enable-executable-profiling
> --flags=-prof'
>
>
> This command worked for me:
>
> $ cabal-dev install --enable-library-profiling --enable-executable-profiling
OK, so I removed `cabal-dev` directory, and installed again with this
command. But it still failed with same error message("the flag -p
requires the program to be built with -prof").
Then I also tried removing cabal-dev again and installing again but
this time with extra `--flags=-prof` parameter. Failed with same
error.
Just to be sure I created a new cabal project with only one file:
'Hello.hs' with contents 'main = putStrLn "hello"' and tried to
install it with cabal-dev. And `./cabal-dev-/bin/Hello +RTS -p` failed
with same error again.
Maybe something wrong with my system? My first thought was maybe
cabal-dev is using some pre-installed library, and it's not
recompiling the whole world for each sandbox. But I don't know how to
check this.
Any ideas on that?
Thanks,
---
Ömer Sinan Ağacan
http://osa1.net
More information about the Haskell-Cafe
mailing list