Alex install failure

Simon Peyton Jones simonpj at microsoft.com
Fri Aug 18 22:42:49 UTC 2017


That's what I did.   It then succeeds in installing one package, and fails in the same way on the next one.  So I can install packages one at a time, by deleting the lock file manually each time.  Bizarre.

Simon

| -----Original Message-----
| From: Herbert Valerio Riedel [mailto:hvriedel at gmail.com]
| Sent: 18 August 2017 11:59
| To: Simon Peyton Jones <simonpj at microsoft.com>
| Subject: Re: Alex install failure
| 
| Try removing
| 
| /home/simonpj/.ghc/x86_64-linux-8.2.1/package.conf.d/package.cache.lock
| 
| 
| 
| On Fri, Aug 18, 2017 at 12:25 PM, Simon Peyton Jones via ghc-devs <ghc-
| devs at haskell.org> wrote:
| > Friends
| >
| > I’m trying to update my installation of alex, on Unix (Ubuntu).  But I
| > get the dump below
| >
| > It’s complaining about a lock file being an invalid argument (see
| > highlight below).
| >
| > If I manually remove the file I get past that, it successfully
| > installs tf-random, but the same thing happens on the next package.
| > So I can install packages one at a time, but that’s silly.
| >
| > Any ideas?
| >
| > Simon
| >
| >
| >
| > cabal install alex
| >
| > Resolving dependencies...
| >
| > Configuring tf-random-0.5...
| >
| > Building tf-random-0.5...
| >
| > Failed to install tf-random-0.5
| >
| > Build log ( /home/simonpj/.cabal/logs/tf-random-0.5.log ):
| >
| > cabal: Entering directory '/tcabal mp/cabal-tmp-26141/tf-random-0.5'
| >
| > Configuring tf-random-0.5...
| >
| > Building tf-random-0.5...
| >
| > Preprocessing library tf-random-0.5...
| >
| > [1 of 4] Compiling System.Random.TF.Gen ( src/System/Random/TF/Gen.hs,
| > dist/build/System/Random/TF/Gen.o )
| >
| > [2 of 4] Compiling System.Random.TF.Init (
| > src/System/Random/TF/Init.hs, dist/build/System/Random/TF/Init.o )
| >
| >
| >
| > src/System/Random/TF/Init.hs:94:5: warning: [-Wdeprecations]
| >
| >     In the use of ‘bitSize’ (imported from Data.Bits):
| >
| >     Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead"
| >
| >    |
| >
| > 94 |   | bitSize n > 64 = error "mkTFGen: case where size of Int > 64
| not
| > implemented"
| >
| >    |     ^^^^^^^
| >
| > [3 of 4] Compiling System.Random.TF ( src/System/Random/TF.hs,
| > dist/build/System/Random/TF.o )
| >
| > [4 of 4] Compiling System.Random.TF.Instances (
| > src/System/Random/TF/Instances.hs,
| > dist/build/System/Random/TF/Instances.o )
| >
| > Creating package registration file:
| >
| > /tmp/pkgConf-tf-random-05965166491189641421.5
| >
| > Installing library in
| >
| > /home/simonpj/.cabal/lib/x86_64-linux-ghc-8.2.1/tf-random-0.5-ABDhxe3m
| > XYlHUEE5hzgewx
| >
| > Registering tf-random-0.5...
| >
| > cabal: '/usr/local/bin/ghc-pkg' exited with an error:
| >
| > ghc-pkg: Couldn't open database
| >
| > /home/simonpj/.ghc/x86_64-linux-8.2.1/package.conf.d for modification:
| >
| > {handle:
| >
| > /home/simonpj/.ghc/x86_64-linux-
| 8.2.1/package.conf.d/package.cache.lock}:
| >
| > hLock: invalid argument (Bad file descriptor)
| >
| > cabal: Leaving directory '/tmp/cabal-tmp-26141/tf-random-0.5'
| >
| > cabal: Error: some packages failed to install:
| >
| > QuickCheck-2.10.0.1 depends on tf-random-0.5 which failed to install.
| >
| > alex-3.2.1 depends on tf-random-0.5 which failed to install.
| >
| > tf-random-0.5 failed during the final install step. The exception was:
| >
| > ExitFailure 1
| >
| > simonpj at cam-05-unx:~/code/HEAD$
| >
| >
| > _______________________________________________
| > ghc-devs mailing list
| > ghc-devs at haskell.org
| > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.h
| > askell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc-
| devs&data=02%7C01%7Csimonpj%40microsoft.com%7C3f6ad797e3454147fa5e08d4e62
| 821e2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636386507413664213&sda
| ta=ex4vc7sfwhYQsoTNUKSrtdKZtIkDxDWor0CEKN0M4Wk%3D&reserved=0
| >


More information about the ghc-devs mailing list