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

Thomas Hartman thomas.hartman at db.com
Tue Aug 28 18:19:41 EDT 2007


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


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

build.out: 

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 
/home/hartthoma/installs/HDBC-odbc-1.0.1.0/HDBC-odbc.buildinfo
Preprocessing library HDBC-odbc-1.0.1.0...
*** Exception: exit: ExitFailure 1
*Main> Leaving GHCi.

build.err: 

Glasgow Haskell Compiler, Version 6.7.20070816, for Haskell 98, stage 2 
booted by GHC version 6.6.1
Using package config file: /usr/local/lib/ghc-6.7.20070816/package.conf
hiding package regex-base-0.72 to avoid conflict with later version 
regex-base-0.91
hiding package HDBC-1.0.1 to avoid conflict with later version HDBC-1.1.2
wired-in package base mapped to base-2.1
wired-in package rts mapped to rts-1.0
wired-in package haskell98 mapped to haskell98-1.0
wired-in package template-haskell mapped to template-haskell-0.1
wired-in package ndp not found.
Hsc static flags: -static
*** Parser:
*** Desugar:
*** Simplify:
*** CorePrep:
*** ByteCodeGen:
*** Parser:
*** Desugar:
*** Simplify:
*** CorePrep:
*** ByteCodeGen:
*** Parser:
*** Desugar:
*** Simplify:
*** CorePrep:
*** ByteCodeGen:
*** Chasing dependencies:
Chasing modules from: 
Stable obj: []
Stable BCO: []
unload: retaining objs []
unload: retaining bcos []
Ready for upsweep []
Upsweep completely successful.
*** Deleting temp files:
Deleting: 
*** Chasing dependencies:
Chasing modules from: Setup.hs
Stable obj: []
Stable BCO: []
unload: retaining objs []
unload: retaining bcos []
Ready for upsweep
  [NONREC
      ModSummary {
         ms_hs_date = Mon Aug 20 09:49:47 EDT 2007
         ms_mod = main:Main,
         ms_imps = [System.Exit, Distribution.PackageDescription,
                    Distribution.Simple.Utils, Data.List, System.Info,
                    Distribution.Simple]
         ms_srcimps = []
      }]
compile: input file Setup.hs
*** Checking old interface for main:Main:
[1 of 1] Compiling Main             ( Setup.hs, interpreted )
*** Parser:
*** Renamer/typechecker:
*** Desugar:
    Result size = 435
*** Simplify:
    Result size = 464
    Result size = 437
*** Tidy Core:
    Result size = 437
*** CorePrep:
    Result size = 491
*** ByteCodeGen:
*** Deleting temp files:
Deleting: 
Upsweep completely successful.
*** Deleting temp files:
Deleting: 
*** Parser:
*** Desugar:
*** Simplify:
*** CorePrep:
*** ByteCodeGen:
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
*** Deleting temp files:
Deleting: 
*** Deleting temp dirs:
Deleting: 








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

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






On Mon, 2007-08-20 at 13:10 -0400, Thomas Hartman wrote:
> 
> problemw with the -I flag to ghc are causing cabal install to fail for
> hdbc-odbc (darcs head). 

> Any tips on debugging this cabal install would be appreciated. 

> $ runghc Setup.hs configure; runghc Setup.hs build 

Try with -v3 is:

runghc Setup.hs build -v3

this will give extremely verbose output. We'd like to see the last bit
to see what ghc command line exactly is failing. It'll show the command
line arguments in Haskell show format eg ["-I", "/"]

Duncan





---

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/20070828/47ada858/attachment-0001.htm


More information about the Haskell-Cafe mailing list