[Haskell-cafe] Trouble building library with cabal-install 1.24

Amy de Buitléir amy at nualeargais.ie
Fri May 6 09:40:13 UTC 2016


I'm trying to use cabal-install 1.24. To start fresh, I removed ~/.cabal and
~/.ghc, and then used the old cabal(-install) executable to do cabal update
and cabal install cabal-install.

Unfortunately, it seems that cabal-install is building everything except my
library!

$  cabal --version
cabal-install version 1.24.0.0
compiled using version 1.24.0.0 of the Cabal library

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3

$ cat cabal.project.local
tests: True

program-options
  ghc-options: -Werror

$ cabal new-build --enable-test -v
Project settings changed, reconfiguring...
creating /home/eamybut/néal/creatur/dist-newstyle
creating /home/eamybut/néal/creatur/dist-newstyle/cache
creating /home/eamybut/.cabal/store/ghc-7.10.3
Reading installed packages...
/usr/local/ghc-7.10.3/bin/ghc-pkg dump
'--package-db=/home/eamybut/.cabal/store/ghc-7.10.3/package.db' -v0
/usr/local/ghc-7.10.3/bin/ghc --print-libdir -Werror
In order, the following will be built:
cond-0.4.1.1 (lib:cond) (requires build)
primitive-0.6.1.0 (lib:primitive) (requires build)
random-1.1 (lib:random) (requires build)
MonadRandom-0.4.2.3 (lib:MonadRandom) (requires build)
regex-base-0.93.2 (lib:regex-base) (requires build)
regex-posix-0.95.2 (lib:regex-posix) (requires build)
tf-random-0.5 (lib:tf-random) (requires build)
QuickCheck-2.8.2 (lib:QuickCheck) (requires build)
xml-1.3.14 (lib:xml) (requires build)
test-framework-0.8.1.1 (lib:test-framework) (requires build)
test-framework-hunit-0.3.0.2 (lib:test-framework-hunit) (requires build)
test-framework-quickcheck2-0.3.0.3 (lib:test-framework-quickcheck2) (requires
build)
creatur-5.9.12 (lib:creatur test:creatur-tests) *test (first run)
creating /home/eamybut/néal/creatur/dist-newstyle/build
creating /home/eamybut/néal/creatur/dist-newstyle/tmp
Extracting
/home/eamybut/.cabal/packages/hackage.haskell.org/cond/0.4.1.1/cond-0.4.1.1.tar.
gz
to /home/eamybut/néal/creatur/dist-newstyle/tmp/cond-4543...
Extracting
Extracting
Extracting
/home/eamybut/.cabal/packages/hackage.haskell.org/primitive/0.6.1.0/primitive-0.
6.1.0.tar.gz
/home/eamybut/.cabal/packages/hackage.haskell.org/random/1.1/random-1.1.tar.gz
/home/eamybut/.cabal/packages/hackage.haskell.org/regex-base/0.93.2/regex-base-0
.93.2.tar.gz
Updating cond.cabal with the latest revision from the index.
to /home/eamybut/néal/creatur/dist-newstyle/tmp/primitive-4543...
to /home/eamybut/néal/creatur/dist-newstyle/tmp/random-4543...
to /home/eamybut/néal/creatur/dist-newstyle/tmp/regex-base-4543...
creating dist
Updating primitive.cabal with the latest revision from the index.
Updating random.cabal with the latest revision from the index.
Updating regex-base.cabal with the latest revision from the index.
Configuring cond-0.4.1.1...
creating dist
creating dist
creating dist
/home/eamybut/.cabal/bin/cabal act-as-setup --build-type=Simple -- configure
Configuring primitive-0.6.1.0...
Configuring random-1.1...
Configuring regex-base-0.93.2...
--verbose=2 --builddir=dist --ghc
--prefix=/home/eamybut/.cabal/store/ghc-7.10.3/cond-0.4.1.1-d6f8f52c204603b82b24
b34eb8efb77ce69172f7e29c5da408121c1e840e7bca
--bindir=/home/eamybut/.cabal/store/ghc-7.10.3/cond-0.4.1.1-d6f8f52c204603b82b24
b34eb8efb77ce69172f7e29c5da408121c1e840e7bca/bin
/home/eamybut/.cabal/bin/cabal act-as-setup --build-type=Simple -- configure
/home/eamybut/.cabal/bin/cabal act-as-setup --build-type=Simple -- configure
/home/eamybut/.cabal/bin/cabal act-as-setup --build-type=Simple -- configure
--libdir=/home/eamybut/.cabal/store/ghc-7.10.3/cond-0.4.1.1-d6f8f52c204603b82b24
b34eb8efb77ce69172f7e29c5da408121c1e840e7bca/lib
--verbose=2 --builddir=dist --ghc
--verbose=2 --builddir=dist --ghc
--verbose=2 --builddir=dist --ghc
--libsubdir=
--prefix=/home/eamybut/.cabal/store/ghc-7.10.3/primitive-0.6.1.0-b7ddd297d5514a8
7874afe52df39e3953f43ebb68440dbf31be727064e02c914
--prefix=/home/eamybut/.cabal/store/ghc-7.10.3/random-1.1-b26d9915a884bbc1b303e6
d2667f43890fe97c8ce038e14ab1c9b19e493af5c1
--prefix=/home/eamybut/.cabal/store/ghc-7.10.3/regex-base-0.93.2-b143cb5bc118558
645f7ba3efa292084e0faa0371afb4065baebdd6202d7600d
--libexecdir=/home/eamybut/.cabal/store/ghc-7.10.3/cond-0.4.1.1-d6f8f52c204603b8
2b24b34eb8efb77ce69172f7e29c5da408121c1e840e7bca/libexec
--bindir=/home/eamybut/.cabal/store/ghc-7.10.3/primitive-0.6.1.0-b7ddd297d5514a8
7874afe52df39e3953f43ebb68440dbf31be727064e02c914/bin
--bindir=/home/eamybut/.cabal/store/ghc-7.10.3/random-1.1-b26d9915a884bbc1b303e6
d2667f43890fe97c8ce038e14ab1c9b19e493af5c1/bin
--bindir=/home/eamybut/.cabal/store/ghc-7.10.3/regex-base-0.93.2-b143cb5bc118558
645f7ba3efa292084e0faa0371afb4065baebdd6202d7600d/bin
--datadir=/home/eamybut/.cabal/store/ghc-7.10.3/cond-0.4.1.1-d6f8f52c204603b82b2
4b34eb8efb77ce69172f7e29c5da408121c1e840e7bca/share
--libdir=/home/eamybut/.cabal/store/ghc-7.10.3/primitive-0.6.1.0-b7ddd297d5514a8
7874afe52df39e3953f43ebb68440dbf31be727064e02c914/lib
--libdir=/home/eamybut/.cabal/store/ghc-7.10.3/random-1.1-b26d9915a884bbc1b303e6
d2667f43890fe97c8ce038e14ab1c9b19e493af5c1/lib
--libdir=/home/eamybut/.cabal/store/ghc-7.10.3/regex-base-0.93.2-b143cb5bc118558
645f7ba3efa292084e0faa0371afb4065baebdd6202d7600d/lib
--datasubdir=
--libsubdir=
--libsubdir=
--libsubdir=
--docdir=/home/eamybut/.cabal/store/ghc-7.10.3/cond-0.4.1.1-d6f8f52c204603b82b24
b34eb8efb77ce69172f7e29c5da408121c1e840e7bca/share/doc
--libexecdir=/home/eamybut/.cabal/store/ghc-7.10.3/primitive-0.6.1.0-b7ddd297d55
14a87874afe52df39e3953f43ebb68440dbf31be727064e02c914/libexec
--libexecdir=/home/eamybut/.cabal/store/ghc-7.10.3/random-1.1-b26d9915a884bbc1b3
03e6d2667f43890fe97c8ce038e14ab1c9b19e493af5c1/libexec
--libexecdir=/home/eamybut/.cabal/store/ghc-7.10.3/regex-base-0.93.2-b143cb5bc11
8558645f7ba3efa292084e0faa0371afb4065baebdd6202d7600d/libexec
--htmldir=/home/eamybut/.cabal/store/ghc-7.10.3/cond-0.4.1.1-d6f8f52c204603b82b2
4b34eb8efb77ce69172f7e29c5da408121c1e840e7bca/share/doc/html
--datadir=/home/eamybut/.cabal/store/ghc-7.10.3/primitive-0.6.1.0-b7ddd297d5514a
87874afe52df39e3953f43ebb68440dbf31be727064e02c914/share
--datadir=/home/eamybut/.cabal/store/ghc-7.10.3/random-1.1-b26d9915a884bbc1b303e
6d2667f43890fe97c8ce038e14ab1c9b19e493af5c1/share
--datadir=/home/eamybut/.cabal/store/ghc-7.10.3/regex-base-0.93.2-b143cb5bc11855
8645f7ba3efa292084e0faa0371afb4065baebdd6202d7600d/share
--haddockdir=/home/eamybut/.cabal/store/ghc-7.10.3/cond-0.4.1.1-d6f8f52c204603b8
2b24b34eb8efb77ce69172f7e29c5da408121c1e840e7bca/share/doc/html
--datasubdir=
--datasubdir=
--datasubdir=
--sysconfdir=/home/eamybut/.cabal/store/ghc-7.10.3/cond-0.4.1.1-d6f8f52c204603b8
2b24b34eb8efb77ce69172f7e29c5da408121c1e840e7bca/etc
--docdir=/home/eamybut/.cabal/store/ghc-7.10.3/primitive-0.6.1.0-b7ddd297d5514a8
7874afe52df39e3953f43ebb68440dbf31be727064e02c914/share/doc
--docdir=/home/eamybut/.cabal/store/ghc-7.10.3/random-1.1-b26d9915a884bbc1b303e6
d2667f43890fe97c8ce038e14ab1c9b19e493af5c1/share/doc
--docdir=/home/eamybut/.cabal/store/ghc-7.10.3/regex-base-0.93.2-b143cb5bc118558
645f7ba3efa292084e0faa0371afb4065baebdd6202d7600d/share/doc
--enable-library-vanilla --enable-library-profiling --enable-shared
--htmldir=/home/eamybut/.cabal/store/ghc-7.10.3/primitive-0.6.1.0-b7ddd297d5514a
87874afe52df39e3953f43ebb68440dbf31be727064e02c914/share/doc/html
--htmldir=/home/eamybut/.cabal/store/ghc-7.10.3/random-1.1-b26d9915a884bbc1b303e
6d2667f43890fe97c8ce038e14ab1c9b19e493af5c1/share/doc/html
--htmldir=/home/eamybut/.cabal/store/ghc-7.10.3/regex-base-0.93.2-b143cb5bc11855
8645f7ba3efa292084e0faa0371afb4065baebdd6202d7600d/share/doc/html
--disable-executable-dynamic --disable-profiling --profiling-detail=default
--haddockdir=/home/eamybut/.cabal/store/ghc-7.10.3/primitive-0.6.1.0-b7ddd297d55
14a87874afe52df39e3953f43ebb68440dbf31be727064e02c914/share/doc/html
--haddockdir=/home/eamybut/.cabal/store/ghc-7.10.3/random-1.1-b26d9915a884bbc1b3
03e6d2667f43890fe97c8ce038e14ab1c9b19e493af5c1/share/doc/html
--haddockdir=/home/eamybut/.cabal/store/ghc-7.10.3/regex-base-0.93.2-b143cb5bc11
8558645f7ba3efa292084e0faa0371afb4065baebdd6202d7600d/share/doc/html
--library-profiling-detail=default --enable-optimization --disable-debug-info
--sysconfdir=/home/eamybut/.cabal/store/ghc-7.10.3/primitive-0.6.1.0-b7ddd297d55
14a87874afe52df39e3953f43ebb68440dbf31be727064e02c914/etc
--sysconfdir=/home/eamybut/.cabal/store/ghc-7.10.3/random-1.1-b26d9915a884bbc1b3
03e6d2667f43890fe97c8ce038e14ab1c9b19e493af5c1/etc
--sysconfdir=/home/eamybut/.cabal/store/ghc-7.10.3/regex-base-0.93.2-b143cb5bc11
8558645f7ba3efa292084e0faa0371afb4065baebdd6202d7600d/etc
--disable-library-for-ghci --disable-split-objs --disable-executable-stripping
--enable-library-vanilla --enable-library-profiling --enable-shared
--enable-library-vanilla --enable-library-profiling --enable-shared
--enable-library-vanilla --enable-library-profiling --enable-shared
--disable-library-stripping --package-db=clear --package-db=global
--disable-executable-dynamic --disable-profiling --profiling-detail=default
--disable-executable-dynamic --disable-profiling --profiling-detail=default
--disable-executable-dynamic --disable-profiling --profiling-detail=default
--package-db=/home/eamybut/.cabal/store/ghc-7.10.3/package.db
--library-profiling-detail=default --enable-optimization --disable-debug-info
--library-profiling-detail=default --enable-optimization --disable-debug-info
--library-profiling-detail=default --enable-optimization --disable-debug-info
--ipid=cond-0.4.1.1-d6f8f52c204603b82b24b34eb8efb77ce69172f7e29c5da408121c1e840e
7bca
--disable-library-for-ghci --disable-split-objs --disable-executable-stripping
--disable-library-for-ghci --disable-split-objs --disable-executable-stripping
--disable-library-for-ghci --disable-split-objs --disable-executable-stripping
--dependency=base=base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d
--disable-library-stripping --package-db=clear --package-db=global
--disable-library-stripping --package-db=clear --package-db=global
--disable-library-stripping --package-db=clear --package-db=global
--disable-tests --disable-coverage --exact-configuration --disable-benchmarks
--package-db=/home/eamybut/.cabal/store/ghc-7.10.3/package.db
--package-db=/home/eamybut/.cabal/store/ghc-7.10.3/package.db
--package-db=/home/eamybut/.cabal/store/ghc-7.10.3/package.db
--with-ghc=/usr/local/ghc-7.10.3/bin/ghc
--ipid=primitive-0.6.1.0-b7ddd297d5514a87874afe52df39e3953f43ebb68440dbf31be7270
64e02c914
--ipid=random-1.1-b26d9915a884bbc1b303e6d2667f43890fe97c8ce038e14ab1c9b19e493af5
c1
--flags=splitbase --flags=newbase
--with-ghc-pkg=/usr/local/ghc-7.10.3/bin/ghc-pkg --ghc-option=-Werror
--dependency=base=base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d
--dependency=base=base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d
--ipid=regex-base-0.93.2-b143cb5bc118558645f7ba3efa292084e0faa0371afb4065baebdd6
202d7600d
--dependency=ghc-prim=ghc-prim-0.4.0.0-6cdc86811872333585fa98756aa7c51e
--dependency=time=time-1.6-3b93b66397d7b7d84c3a87826ae1549fc4e47935065267f486fdc
3425d250cd5
--dependency=array=array-0.5.1.0-960bf9ae8875cc30355e086f8853a049
--dependency=transformers=transformers-0.5.2.0-c4818cc3cc5467e714fd3fd12dcbf7740
9ca3ca7292b47a5830cfcb4fb5911e2
--disable-tests --disable-coverage --exact-configuration --disable-benchmarks
--dependency=base=base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d
Redirecting build log to {handle: /home/eamybut/.cabal/logs/cond-0.4.1.1.log}
--disable-tests --disable-coverage --exact-configuration --disable-benchmarks
--with-ghc=/usr/local/ghc-7.10.3/bin/ghc
--dependency=bytestring=bytestring-0.10.6.0-9a873bcf33d6ce2fd2698ce69e2c1c66
--with-ghc=/usr/local/ghc-7.10.3/bin/ghc
--with-ghc-pkg=/usr/local/ghc-7.10.3/bin/ghc-pkg --ghc-option=-Werror
--dependency=containers=containers-0.5.6.2-59326c33e30ec8f6afd574cbac625bbb
--with-ghc-pkg=/usr/local/ghc-7.10.3/bin/ghc-pkg --ghc-option=-Werror
--dependency=mtl=mtl-2.2.1-f8863ab628c53078d6adbcf7634212242d99bcdf1c73497f1131e
24fcafd4187
--disable-tests --disable-coverage --exact-configuration --disable-benchmarks
Redirecting build log to {handle: /home/eamybut/.cabal/logs/random-1.1.log}
--with-ghc=/usr/local/ghc-7.10.3/bin/ghc
Redirecting build log to {handle:
--with-ghc-pkg=/usr/local/ghc-7.10.3/bin/ghc-pkg --ghc-option=-Werror
/home/eamybut/.cabal/logs/primitive-0.6.1.0.log}
Redirecting build log to {handle:
/home/eamybut/.cabal/logs/regex-base-0.93.2.log}
Building regex-base-0.93.2...
/home/eamybut/.cabal/bin/cabal act-as-setup --build-type=Simple -- build
--verbose=2 --builddir=dist
Redirecting build log to {handle:
/home/eamybut/.cabal/logs/regex-base-0.93.2.log}
Building random-1.1...
/home/eamybut/.cabal/bin/cabal act-as-setup --build-type=Simple -- build
--verbose=2 --builddir=dist
Redirecting build log to {handle: /home/eamybut/.cabal/logs/random-1.1.log}
Building primitive-0.6.1.0...
/home/eamybut/.cabal/bin/cabal act-as-setup --build-type=Simple -- build
--verbose=2 --builddir=dist
Redirecting build log to {handle:
/home/eamybut/.cabal/logs/primitive-0.6.1.0.log}
Building cond-0.4.1.1...
/home/eamybut/.cabal/bin/cabal act-as-setup --build-type=Simple -- build
--verbose=2 --builddir=dist
Redirecting build log to {handle: /home/eamybut/.cabal/logs/cond-0.4.1.1.log}
Extracting
/home/eamybut/.cabal/packages/hackage.haskell.org/xml/1.3.14/xml-1.3.14.tar.gz
to /home/eamybut/néal/creatur/dist-newstyle/tmp/xml-4543...
Updating xml.cabal with the latest revision from the index.
creating dist
Configuring xml-1.3.14...
/home/eamybut/.cabal/bin/cabal act-as-setup --build-type=Simple -- configure
--verbose=2 --builddir=dist --ghc
--prefix=/home/eamybut/.cabal/store/ghc-7.10.3/xml-1.3.14-b04f5878120533b38458e7
afa38083e761daf4b6cf823ee2a31d1d5bba8de548
--bindir=/home/eamybut/.cabal/store/ghc-7.10.3/xml-1.3.14-b04f5878120533b38458e7
afa38083e761daf4b6cf823ee2a31d1d5bba8de548/bin
--libdir=/home/eamybut/.cabal/store/ghc-7.10.3/xml-1.3.14-b04f5878120533b38458e7
afa38083e761daf4b6cf823ee2a31d1d5bba8de548/lib
--libsubdir=
--libexecdir=/home/eamybut/.cabal/store/ghc-7.10.3/xml-1.3.14-b04f5878120533b384
58e7afa38083e761daf4b6cf823ee2a31d1d5bba8de548/libexec
--datadir=/home/eamybut/.cabal/store/ghc-7.10.3/xml-1.3.14-b04f5878120533b38458e
7afa38083e761daf4b6cf823ee2a31d1d5bba8de548/share
--datasubdir=
--docdir=/home/eamybut/.cabal/store/ghc-7.10.3/xml-1.3.14-b04f5878120533b38458e7
afa38083e761daf4b6cf823ee2a31d1d5bba8de548/share/doc
--htmldir=/home/eamybut/.cabal/store/ghc-7.10.3/xml-1.3.14-b04f5878120533b38458e
7afa38083e761daf4b6cf823ee2a31d1d5bba8de548/share/doc/html
--haddockdir=/home/eamybut/.cabal/store/ghc-7.10.3/xml-1.3.14-b04f5878120533b384
58e7afa38083e761daf4b6cf823ee2a31d1d5bba8de548/share/doc/html
--sysconfdir=/home/eamybut/.cabal/store/ghc-7.10.3/xml-1.3.14-b04f5878120533b384
58e7afa38083e761daf4b6cf823ee2a31d1d5bba8de548/etc
--enable-library-vanilla --enable-library-profiling --enable-shared
--disable-executable-dynamic --disable-profiling --profiling-detail=default
--library-profiling-detail=default --enable-optimization --disable-debug-info
--disable-library-for-ghci --disable-split-objs --disable-executable-stripping
--disable-library-stripping --package-db=clear --package-db=global
--package-db=/home/eamybut/.cabal/store/ghc-7.10.3/package.db
--ipid=xml-1.3.14-b04f5878120533b38458e7afa38083e761daf4b6cf823ee2a31d1d5bba8de5
48
--dependency=base=base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d
--dependency=bytestring=bytestring-0.10.6.0-9a873bcf33d6ce2fd2698ce69e2c1c66
--dependency=text=text-1.2.2.1-ba97440de9fbd614cd8b02c1d9fda7e9073a288481e7e539c
2629ac910e67bf4
--disable-tests --disable-coverage --exact-configuration --disable-benchmarks
--with-ghc=/usr/local/ghc-7.10.3/bin/ghc
--with-ghc-pkg=/usr/local/ghc-7.10.3/bin/ghc-pkg --ghc-option=-Werror
Redirecting build log to {handle: /home/eamybut/.cabal/logs/xml-1.3.14.log}
Building xml-1.3.14...
/home/eamybut/.cabal/bin/cabal act-as-setup --build-type=Simple -- build
--verbose=2 --builddir=dist
Redirecting build log to {handle: /home/eamybut/.cabal/logs/xml-1.3.14.log}

That's the last line. No mention of actually building creatur (my library).

$ find dist-newstyle
dist-newstyle
dist-newstyle/tmp
dist-newstyle/cache
dist-newstyle/cache/source-hashes
dist-newstyle/cache/improved-plan
dist-newstyle/cache/plan.json
dist-newstyle/cache/compiler
dist-newstyle/cache/elaborated-plan
dist-newstyle/cache/solver-plan
dist-newstyle/cache/config
dist-newstyle/build

$ find dist
dist

$ cabal info creatur
* creatur          (library)
    Synopsis:      Framework for artificial life experiments.
    Versions available: 4.2.0, 4.3.2, 4.3.3, 5.7.3, 5.8.0, 5.8.2, 5.9.9, 5.9.10,
                        5.9.11 (and 51 others)
    Versions installed: [ Not installed ]
. . .

I'm using the same cabal file I've used with sandboxes.



More information about the Haskell-Cafe mailing list