Closed
Description
A bizarre bug, but luckily a pretty reproducible one. cabal install curl
works fine, but adding the --allow-newer
flag makes the installation go kaput. I've reproduced this with both cabal-install-1.22.8.0
/Cabal-1.22.5.0
/GHC 7.10.3 and cabal-install-1.24.0.0
/Cabal-1.24.0.0
/GHC 8.0.1 on two different 64-bit Linux machines. Here's the gist of the error with Cabal-1.24.0.0
:
$ /opt/cabal/1.24/bin/cabal install curl --allow-newer -j1
Resolving dependencies...
cabal: Entering directory '/tmp/cabal-tmp-18165/curl-1.3.8'
Configuring curl-1.3.8...
checking for gcc... /usr/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... /usr/bin/gcc -E
configure: creating ./config.status
config.status: creating curl.buildinfo
Building curl-1.3.8...
Preprocessing library curl-1.3.8...
[1 of 8] Compiling Network.Curl.Debug ( Network/Curl/Debug.hs, dist/build/Network/Curl/Debug.o )
[2 of 8] Compiling Network.Curl.Code ( Network/Curl/Code.hs, dist/build/Network/Curl/Code.o )
[3 of 8] Compiling Network.Curl.Types ( Network/Curl/Types.hs, dist/build/Network/Curl/Types.o )
Network/Curl/Types.hs:32:1: error:
Failed to load interface for ‘Data.IntMap’
It is a member of the hidden package ‘containers-0.5.7.1’.
Perhaps you need to add ‘containers’ to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.
cabal: Leaving directory '/tmp/cabal-tmp-18165/curl-1.3.8'
Failed to install curl-1.3.8
cabal: Error: some packages failed to install:
curl-1.3.8 failed during the building phase. The exception was:
ExitFailure 1
Here are the full -v3
build logs for Cabal-1.22
and Cabal-1.24
.
Metadata
Metadata
Assignees
Labels
No labels