Cabal, profiling, GHC 6.6.1

Peter Gammie peteg42 at gmail.com
Sun Apr 6 21:25:05 EDT 2008


Hello,

I've built some libraries using "-p" and installed them, resulting in  
e.g.:

mjollnir-debian ~$ ls ~/lib/hsql-postgresql-1.7/ghc-6.6.1/
Database  HShsql-postgresql-1.7.o  include  libHShsql-postgresql-1.7.a	 
libHShsql-postgresql_p-1.7.a

When I try to use them:

mjollnir-debian ~$ ghc -prof -auto-all  -Wall  -fglasgow-exts  -main- 
is Import.News.main --make -o news ghc_rts_opts.c Import.News
[..]
Linking news ...
/usr/bin/ld: cannot find -lHShsql-postgresql-1.7_p
collect2: ld returned 1 exit status
make: *** [news] Error 1

Note that Cabal created "libHShsql-postgresql_p-1.7.a" but GHC  
expected "libHShsql-postgresql-1.7_p.a".

Is this an issue with GHC 6.6.1 or Cabal?

cheers
peter



More information about the cabal-devel mailing list