Ticket #377 (closed defect: invalid)
cabal install puts .hi files in wrong directory
| Reported by: | cppljevans | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Cabal library | Version: | 1.2.3.0 |
| Severity: | normal | Keywords: | |
| Cc: | Difficulty: | normal | |
| GHC Version: | 6.8.3 | Platform: |
Description (last modified by duncan) (diff)
On my unbuntu OS, cabal install catagory-extras put the files as shown 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.
whereas with manual install, they're put as shown 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 # 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.
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:
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
Change History
Note: See
TracTickets for help on using
tickets.
