[Hackage] #377: cabal install puts .hi files in wrong directory

Hackage trac at galois.com
Mon Oct 20 21:30:42 EDT 2008


#377: cabal install puts .hi files in wrong directory
----------------------------+-----------------------------------------------
  Reporter:  cppljevans     |        Owner:         
      Type:  defect         |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:  1.2.3.0
  Severity:  normal         |     Keywords:         
Difficulty:  normal         |   Ghcversion:  6.8.3  
  Platform:                 |  
----------------------------+-----------------------------------------------
 On my unbuntu OS, cabal install catagory-extras put the files as shown
 here:
 <---cut here---
 [ 99 of 100] Compiling Control.Morphism.Exo ( src/Control/Morphism/Exo.hs,
 dist/build/Control/Morphism/Exo.o )
 [100 of 100] Compiling Control.Morphism.Meta.Erwig (
 src/Control/Morphism/Meta/Erwig.hs,
 dist/build/Control/Morphism/Meta/Erwig.o )
 /usr/bin/ar: creating dist/build/libHScategory-extras-0.53.5.a
 Installing library in /root/.cabal/lib/category-extras-0.53.5/ghc-6.8.2
 Registering category-extras-0.53.5...
 Reading package info from "dist/installed-pkg-config" ... done.
 Saving old package config file... done.
 Writing new package config file... done.
 <---cut here---
 whereas with manual install, they're put as shown here:
 <---cut here---
 [12 of 12] Compiling Data.Generics.UniplateOn (
 Data/Generics/UniplateOn.hs, dist/build/Data/Generics/UniplateOn.o )
 /usr/bin/ar: creating dist/build/libHSuniplate-1.2.0.1.a
 /home/evansl/download/haskell/libs/uniplate-1.2.0.1 # runhaskell Setup
 install
 Installing library in /usr/local/lib/uniplate-1.2.0.1/ghc-6.8.2
 Registering uniplate-1.2.0.1...
 Reading package info from "dist/installed-pkg-config" ... done.
 Saving old package config file... done.
 Writing new package config file... done.
 >---cut here---
 When I compile with ghc, ghc cannot find the /root/.cabal files.  If the
 -i
 flag is used, the files are found; however, another error occurs:
 <---cut here---
 > make
 > ghc -i/root/.cabal/lib/category-extras-0.53.5/ghc-6.8.2 -c
 catamorphism.example.hs
 >
 > catamorphism.example.hs:19:0:
 >     Bad interface file: /root/.cabal/lib/category-
 extras-0.53.5/ghc-6.8.2/Control/Functor/Fix.hi
 >         Something is amiss; requested module  main:Control.Functor.Fix
 differs from name found in the interface file category-
 extras-0.53.5:Control.Functor.Fix
 > make: *** [all] Error 1

 >---cut here---

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


More information about the cabal-devel mailing list