[Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems

Thomas Hartman thomas.hartman at db.com
Wed Aug 29 10:05:03 EDT 2007

Ah ok, so I did 

echo ":main build -v3" | /usr/local/bin/ghci-6.7.20070816 Setup.hs 
1>build.out 2>build.err 

and this does indeed seem more informative. advice?


[1 of 1] Compiling Main             ( Setup.hs, interpreted )
ghc-6.6.1: unrecognised flags: -I
Usage: For basic information, try the `--help' option.
compiling dist/build/Database/HDBC/ODBC/Connection_hsc_make.c failed
command was: ghc -c -I dist/build/Database/HDBC/ODBC/Connection_hsc_make.c 
-o dist/build/Database/HDBC/ODBC/Connection_hsc_make.o


GHCi, version 6.7.20070816: http://www.haskell.org/ghc/  :? for help
Loading package base ... linking ... done.
Ok, modules loaded: Main.
*Main> Loading package array-0.1 ... linking ... done.
Loading package containers-0.1 ... linking ... done.
Loading package old-locale-1.0 ... linking ... done.
Loading package old-time-1.0 ... linking ... done.
Loading package filepath-1.0 ... linking ... done.
Loading package directory-1.0 ... linking ... done.
Loading package unix-2.0 ... linking ... done.
Loading package process-1.0 ... linking ... done.
Loading package pretty-1.0 ... linking ... done.
Loading package Cabal-1.1.7 ... linking ... done.
Reading parameters from 
Creating dist/build (and its parents)
Creating dist/build/autogen (and its parents)
Preprocessing library HDBC-odbc-
Creating dist/build/Database/HDBC/ODBC (and its parents)
*** Exception: exit: ExitFailure 1
*Main> Leaving GHCi.

Duncan Coutts <duncan.coutts at worc.ox.ac.uk> 
08/28/2007 08:08 PM

Thomas Hartman/ext/dbcom at DBAmericas
haskell-cafe at haskell.org
Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag 
causes problems

On Tue, 2007-08-28 at 18:19 -0400, Thomas Hartman wrote:
> Well, I built with -v3 as suggested, but the ouptut doesn't seem that
> helpful to me. ghc compile commands, at any rate, do not appear to be
> outputted 

Sorry, I meant to pass -v3 to cabal, not to ghc compiling/running

> $ echo ":main build" | /usr/local/bin/ghci-6.7.20070816 -v3 Setup.hs
> 1>build.out 2>build.err 


runghc Setup.hs build -v3



This e-mail may contain confidential and/or privileged information. If you 
are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070829/fef1ed71/attachment-0001.htm

More information about the Haskell-Cafe mailing list