<br><font size=2 face="sans-serif">problemw with the -I flag to ghc are
causing cabal install to fail for hdbc-odbc (darcs head).</font>
<br>
<br><font size=2 face="sans-serif">man ghc still reports that -I is a valid
flag after installing ghc 6.7 from darcs head a couple days ago.</font>
<br>
<br><font size=2 face="sans-serif">I think the problem might be the space
after the -I flag (which is bad for both 6.6.1 and 6.7)</font>
<br>
<br><font size=2 face="sans-serif">hartthoma@linuxpt:~/installs/HDBC-odbc-head/hdbc-odbc&gt;/usr/local/bin/ghc-6.7.20070816
&nbsp; -I. -e '' Setup.hs</font>
<br><font size=2 face="sans-serif">hartthoma@linuxpt:~/installs/HDBC-odbc-head/hdbc-odbc&gt;/usr/local/bin/ghc-6.7.20070816
&nbsp; -I/ -e '' Setup.hs</font>
<br><font size=2 face="sans-serif">hartthoma@linuxpt:~/installs/HDBC-odbc-head/hdbc-odbc&gt;/usr/local/bin/ghc-6.7.20070816
&nbsp; -I / -e '' Setup.hs</font>
<br><font size=2 face="sans-serif">ghc-6.7.20070816: unrecognised flags:
-I</font>
<br>
<br><font size=2 face="sans-serif">just a guess... </font>
<br>
<br><font size=2 face="sans-serif">anothing thing is it seems like there's
a new INCLUDE pragma in 6.7. perhaps this should be used in one of the
source files to get it to compile. but which one? I couldn't figure out
what was causing </font>
<br>
<br><font size=2 face="sans-serif">&nbsp; ghc -c -I dist/build/Database/HDBC/ODBC/Connection_hsc_make.c
-o dist/build/Database/HDBC/ODBC/Connection_hsc_make.o</font>
<br>
<br><font size=2 face="sans-serif">to be run. (I did try grepping on ghc
but no luck, below.)</font>
<br>
<br><font size=2 face="sans-serif">Any tips on debugging this cabal install
would be appreciated.</font>
<br>
<br><font size=2 face="sans-serif">thanks,</font>
<br>
<br><font size=2 face="sans-serif">thomas</font>
<br>
<br><font size=2 face="sans-serif">*************</font>
<br>
<br><font size=2 face="sans-serif">$ runghc Setup.hs configure; runghc
Setup.hs build</font>
<br>
<br><font size=2 face="sans-serif">.....</font>
<br>
<br><font size=2 face="sans-serif">configure: Using tar found on system
at: /bin/tar</font>
<br><font size=2 face="sans-serif">Reading parameters from /home/hartthoma/installs/HDBC-odbc-head/hdbc-odbc/HDBC-odbc.buildinfo</font>
<br><font size=2 face="sans-serif">Preprocessing library HDBC-odbc-1.1.2hartthoma@linuxpt:~/installs/HDBC-odbc-head/hdbc-odbc&gt;darcs
whatsnew.0...</font>
<br><font size=2 face="sans-serif">ghc-6.7.20070816: unrecognised flags:
-I</font>
<br><font size=2 face="sans-serif">Usage: For basic information, try the
`--help' option.</font>
<br><font size=2 face="sans-serif">compiling dist/build/Database/HDBC/ODBC/Connection_hsc_make.c
failed</font>
<br><font size=2 face="sans-serif">command was: ghc -c -I dist/build/Database/HDBC/ODBC/Connection_hsc_make.c
-o dist/build/Database/HDBC/ODBC/Connection_hsc_make.o</font>
<br>
<br><font size=2 face="sans-serif">........</font>
<br>
<br>
<br><font size=2 face="sans-serif">hartthoma@linuxpt:~/installs/HDBC-odbc-head/hdbc-odbc&gt;darcs
whatsnew</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif">hunk ./Setup.hs 8</font>
<br><font size=2 face="sans-serif">-main = defaultMainWithHooks defaultUserHooks{preConf
= conf, postConf = ok}</font>
<br><font size=2 face="sans-serif">- &nbsp; &nbsp; &nbsp; where ok _ _
_ _ = return ExitSuccess</font>
<br><font size=2 face="sans-serif">+--main = defaultMainWithHooks defaultUserHooks{preConf
= conf, postConf = ok}</font>
<br><font size=2 face="sans-serif">+-- &nbsp; &nbsp; &nbsp; where ok _
_ _ _ = return ExitSuccess</font>
<br><font size=2 face="sans-serif">+main = do</font>
<br><font size=2 face="sans-serif">+ &nbsp;let ok _ _ _ _ = do return ExitSuccess</font>
<br><font size=2 face="sans-serif">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return ()</font>
<br><font size=2 face="sans-serif">+ &nbsp; &nbsp;in defaultMainWithHooks
defaultUserHooks{preConf = conf, postConf = ok}</font>
<br><font size=2 face="sans-serif">+ &nbsp;return ()</font>
<br><font size=2 face="sans-serif">+</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">.....</font>
<br>
<br><font size=2 face="sans-serif">hartthoma@linuxpt:~/installs/HDBC-odbc-head/hdbc-odbc&gt;grep
-i ghc *</font>
<br><font size=2 face="sans-serif">HDBC-odbc.buildinfo:ghc-prof-options:</font>
<br><font size=2 face="sans-serif">HDBC-odbc.buildinfo:ghc-options:</font>
<br><font size=2 face="sans-serif">HDBC-odbc.cabal:GHC-Options: -O2</font>
<br><font size=2 face="sans-serif">Makefile:GHCPARMS := -fglasgow-exts</font>
<br><font size=2 face="sans-serif">Makefile:all: setup &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # GHC build</font>
<br><font size=2 face="sans-serif">Makefile: &nbsp; &nbsp; &nbsp; ghc -package
Cabal Setup.hs -o setup</font>
<br><font size=2 face="sans-serif">Makefile: &nbsp; &nbsp; &nbsp; cd testsrc
&amp;&amp; ghc --make -package mtl -package HUnit -package MissingH -package
HDBC -lodbc $(GHCPARMS) -o runtests &nbsp;-i../dist/build:.. ../d\</font>
<br><font size=2 face="sans-serif">ist/build/hdbc-odbc-helper.o runtests.hs</font>
<br><font size=2 face="sans-serif">Makefile:test-ghc6: testsrc/runtests</font>
<br><font size=2 face="sans-serif">Makefile:interact-ghci: all</font>
<br><font size=2 face="sans-serif">Makefile: &nbsp; &nbsp; &nbsp; ghci
-idist/build -Ldist/build $(GHCPARMS)</font>
<br><font size=2 face="sans-serif">Makefile:test: test-ghc6 test-hugs</font>
<br><font size=2 face="sans-serif">README.txt:You'll need either GHC 6.4.1
or above, or Hugs 2005xx or above. &nbsp;If</font>
<br><font size=2 face="sans-serif">README.txt:2) ghc --make -o setup Setup.lhs</font>
<br><font size=2 face="sans-serif">README.txt:To use with GHC, you'll want
to use:</font>
<br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">---</span><br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">This e-mail may contain confidential and/or privileged information. If you </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">are not the intended recipient (or have received this e-mail in error) </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">please notify the sender immediately and destroy this e-mail. Any </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">unauthorized copying, disclosure or distribution of the material in this </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">e-mail is strictly forbidden.</span><br>