[Hackage] #383: Hsc2hs preprocessor does not ensure that gcc has been found.

Hackage trac at galois.com
Wed Oct 29 10:49:44 EDT 2008


#383: Hsc2hs preprocessor does not ensure that gcc has been found.
----------------------------+-----------------------------------------------
  Reporter:  nominolo       |        Owner:        
      Type:  defect         |       Status:  new   
  Priority:  normal         |    Milestone:        
 Component:  Cabal library  |      Version:  HEAD  
  Severity:  normal         |     Keywords:        
Difficulty:  normal         |   Ghcversion:  6.10.1
  Platform:                 |  
----------------------------+-----------------------------------------------
 When trying to configure with an inplace GHC on Windows, Cabal dies with
 an irrefutable pattern match error.  The offending line is:
 {{{
     Just gccProg = lookupProgram  gccProgram (withPrograms lbi)
 }}}
 in {{{D.S.PreProcess.ppHsc2hs}}}.

 The problem was that configure didn't find gcc in its expected place
 ({{{ghcBase </> "gcc.exe"}}}) and Cabal didn't check that it did before
 running the preprocessor.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/383>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list