making with profiling, 6.4.1, cabal-1.1.3

Isaac Jones ijones at syntaxpolice.org
Mon Oct 10 23:45:51 EDT 2005


"Serge D. Mechveliani" <mechvel at botik.ru> writes:

(snip)
> foo.cabal:
>   name:            foo
>   version:         1.0
>   build-depends:   base, haskell98, data
>   exposed-modules: M2
>   other-modules:   M1
>   ghc-options:     -prof -auto-all -hisuf p_hi -osuf p_o
>
> The aim is to build  foo  (of M2)  as a library, then to make Main 
> under the package  foo,  and with profiling.
(snip)
> runhaskell Setup.hs build
> Preprocessing library foo-1.0...
> Building foo-1.0...
> Chasing modules from: M2,M1
> Skipping  M1               ( M1.hs, dist/build/M1.p_o )
> Skipping  M2               ( M2.hs, dist/build/M2.p_o )
> /usr/bin/ar: creating dist/build/libHSfoo-1.0.a
> /usr/bin/ar: dist/build/M2.o: No such file or directory
> make: *** [build] Error 1

Lemmih's reply is correct.  Don't use ghc-options, cabal doesn't know
that it should now be looking for the .p_o file rather than the .o
file unless you tell to by configuring w/ profiling enabled.

peace,

  isaac



More information about the Libraries mailing list