upgrading Cabal in ghc-6.4.1-pre
Serge D. Mechveliani
mechvel at botik.ru
Mon Aug 8 06:38:18 EDT 2005
Dear Cabal developers,
I have the following problem with upgrading Cabal in
ghc-6.4.1.20050806-i386-unknown-linux.
First, I have installed this ghc-6.4.1-pre binary to my home
directory.
> which ghc
/home/mechvel/ghc/6.4.1-aug-1/binary/inst/bin/ghc
Then, ghci -package Cabal
reports of Cabal-1.0.
I need to upgrade Cabal to 1.1.1.
To do this, I unfold new Cabal to
/home/mechvel/ghc/cabal/1.1.1/cabal/
Then I do
cd /home/mechvel/ghc/cabal/1.1.1/cabal/
and edit in GNUmakefile the two lines to
PREF=/home/mechvel/ghc/cabal/1.1.1/inst
HCBASE=/home/mechvel/ghc/6.4.1-aug-1/binary/inst/bin/
in order to install new Cabal to /home/mechvel/ghc/cabal/1.1.1/inst
.
Then I command
make setup
./setup configure --prefix=/home/mechvel/ghc/cabal/1.1.1/inst
./setup build
./setup install --user
Then, ghci -package Cabal
reports
---------------------------
GHC Interactive, version 6.4.1.20050806, for Haskell 98.
...
Loading package base-1.0 ... linking ... done.
Loading package mtl-1.0 ... linking ... done.
Loading package lang-1.0 ... linking ... done.
Loading package QuickCheck-1.0 ... linking ... done.
Loading package readline-1.0 ... linking ... done.
Loading package unix-1.0 ... linking ... done.
Loading package posix-1.0 ... linking ... done.
Loading package util-1.0 ... linking ... done.
Loading package Cabal-1.1.1 ... linking ... done.
--------------------------------------------------------
Then I go to my application Dumatel and try to make it with GHC:
~/dm/1.03/dm/source> runhaskell Setup configure --ghc --prefix=$dmSource/inst
------------------------------------------------------
Configuring dumatel-1.3...
configure: Using install prefix: /home/mechvel/dm/1.03/dm/source/inst
configure: Using compiler: /home/mechvel/ghc/6.4.1-aug-1/binary/inst/bin/ghc
configure: Compiler flavor: GHC
configure: Compiler version: 6.4.1.20050806
configure: Using package tool: /home/mechvel/ghc/6.4.1-aug-1/binary/inst/bin/ghc-pkg
configure: No haddock found
configure: Using happy: /usr/bin/happy
configure: Using alex: /usr/bin/alex
configure: Using hsc2hs: /home/mechvel/ghc/6.4.1-aug-1/binary/inst/bin/hsc2hs
configure: No c2hs found
configure: No cpphs found
configure: No greencard found
configure: Dependency data-any: using data-1.0
--------------------------------------------------------------------
This looks all right.
runhaskell Setup build
---------------------------------------------------
Preprocessing library dumatel-1.3...
Building dumatel-1.3...
Chasing modules from: Dumatel,Dumatel.Prelude,Dumatel.Prelude5,Dumatel.TermComp,Dumatel.Reduce,Dumatel.CritPair,Dumatel.KBC,Dumatel.Bool,Dumatel.BTerm,Dumatel.ReduceBT,Dumatel.UKBB,Dumatel.Prover,Dumatel.DemoTest.Test,Dumatel.DemoTest.T_kbcTrad,Dumatel.DemoTest.T_ukb,Dumatel.DemoTest.T_logicSimp,Dumatel.DemoTest.T_nat,Dumatel.DemoTest.T_list,Prelude0,Prelude0_0,Prelude1,Prelude2,Prelude2_0,Prelude3,Prelude3_0,Prelude3_1,Prelude4,Bool0,BTerm0,BTerm1,Prover0,Parse1,Parse2,Parse3,Prover1,Prover2,Prover3,Dumatel.DemoTest.Test0
Could not find module `Prelude':
it is a member of package base-1.0, which is hidden
(imported from Dumatel.hs)
---------------------------------------------------
And this differs from what it was with Cabal-1.0.
I does not want to compile things.
How to fix this, please?
The file dm.cabal is
------------------------------------------------------
name: dumatel
version: 1.3
build-depends: data
exposed-modules:
"Dumatel" "Dumatel.Prelude" "Dumatel.Prelude5"
"Dumatel.TermComp" "Dumatel.Reduce" "Dumatel.CritPair"
"Dumatel.KBC" "Dumatel.Bool" "Dumatel.BTerm" "Dumatel.ReduceBT"
"Dumatel.UKBB" "Dumatel.Prover"
"Dumatel.DemoTest.Test" "Dumatel.DemoTest.T_kbcTrad"
"Dumatel.DemoTest.T_ukb" "Dumatel.DemoTest.T_logicSimp"
"Dumatel.DemoTest.T_nat" "Dumatel.DemoTest.T_list"
.
other-modules:
Prelude0 Prelude0_0 Prelude1 Prelude2 Prelude2_0 Prelude3
Prelude3_0 Prelude3_1 Prelude4 Bool0 BTerm0 BTerm1 Prover0 Parse1
Parse2 Parse3 Prover1 Prover2 Prover3
"Dumatel.DemoTest.Test0"
.
ghc-options:
-fglasgow-exts -fallow-undecidable-instances
-fallow-overlapping-instances -fno-warn-overlapping-patterns
-fwarn-unused-binds -fwarn-unused-matches -fwarn-unused-imports
---------------------------------------------------------------
When upgrading Cabal, `make setup' has produced many messages like
--------------
Distribution/Compat/Directory.hs:2:24:
Warning: `copyFile' is exported by `copyFile' and `module System.Directory'
Distribution/Compat/FilePath.hs:298:15:
Warning: This binding for `pre' shadows an existing binding
In a case alternative
--------------
./setup configure ...
produced
----------------------
Configuring Cabal-1.1.1...
configure: Using install prefix: /home/mechvel/ghc/cabal/1.1.1/inst
configure: Using compiler: /home/mechvel/ghc/6.4.1-aug-1/binary/inst/bin/ghc
configure: Compiler flavor: GHC
configure: Compiler version: 6.4.1.20050806
configure: Using package tool: /home/mechvel/ghc/6.4.1-aug-1/binary/inst/bin/ghc-pkg
configure: No haddock found
configure: Using happy: /usr/bin/happy
configure: Using alex: /usr/bin/alex
configure: Using hsc2hs: /home/mechvel/ghc/6.4.1-aug-1/binary/inst/bin/hsc2hs
configure: No c2hs found
configure: No cpphs found
configure: No greencard found
configure: Dependency base-any: using base-1.0
configure: Dependency util-any: using util-1.0
-----------------------------------------
./setup build produced
------------------------------
...
...
Compiling Distribution.Compat.Directory ( ./Distribution/Compat/Directory.hs, dist/build/Distribution/Compat/Directory.o )
Distribution/Compat/Directory.hs:2:8:
Warning: `findExecutable' is exported by `findExecutable' and
`module System.Directory'
...
...
Linking ...
Preprocessing library Cabal-1.1.1...
Preprocessing executables for Cabal-1.1.1...
Building Cabal-1.1.1...
hsSourceDirs: ["."]
------------------------------------
./setup install --user
produced
----------------------------------------------
building GHCi library
/home/mechvel/ghc/cabal/1.1.1/inst/lib/Cabal-1.1.1/
ghc-6.4.1.20050806/HSCabal-1.1.1.o... done.
Creating user package database in
/home/mechvel/.ghc/i386-linux-6.4.1.20050806/package.conf
Reading package info from ".installed-pkg-config" ... done.
Saving old package config file... done.
Writing new package config file... done.
Installing:
/home/mechvel/ghc/cabal/1.1.1/inst/lib/Cabal-1.1.1/ghc-6.4.1.20050806 &
/home/mechvel/ghc/cabal/1.1.1/inst/bin Cabal-1.1.1...
Registering Cabal-1.1.1...
-------------------------------------------
Regards,
-----------------
Serge Mechveliani
mechvel at botik.ru
More information about the Glasgow-haskell-users
mailing list