Resolving dependencies... Configuring extensible-exceptions-0.1.1.4... Building extensible-exceptions-0.1.1.4... Preprocessing library extensible-exceptions-0.1.1.4... [1 of 1] Compiling Control.Exception.Extensible ( Control/Exception/Extensible.hs, dist/build/Control/Exception/Extensible.o ) In-place registering extensible-exceptions-0.1.1.4... Running Haddock for extensible-exceptions-0.1.1.4... Running hscolour for extensible-exceptions-0.1.1.4... Preprocessing library extensible-exceptions-0.1.1.4... Preprocessing library extensible-exceptions-0.1.1.4... Haddock coverage: 100% ( 2 / 2) in 'Control.Exception.Extensible' Documentation created: dist/doc/html/extensible-exceptions/index.html, dist/doc/html/extensible-exceptions/extensible-exceptions.txt Creating package registration file: /tmp/pkgConf-extensible-exceptions-0.1.1278722862233665123.4 Installing library in /home/builder/rebuild/build-cache/tmp-install/lib/x86_64-linux-ghc-7.10.2/extensible-exceptions-0.1.1.4-CmaSmA8CMpz45lfrjKH2bq Registering extensible-exceptions-0.1.1.4... Installed extensible-exceptions-0.1.1.4 Downloading BerkeleyDB-0.7.2... Configuring BerkeleyDB-0.7.2... Building BerkeleyDB-0.7.2... Preprocessing library BerkeleyDB-0.7.2... In file included from dist/build/Database/Berkeley/Db_hsc_make.c:1:0: Db.hsc: In function ‘main’: Db.hsc:150:16: error: ‘DB_NOSERVER_HOME’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:35:10: note: in definition of macro ‘hsc_const’ if ((x) < 0) \ ^ Db.hsc:150:16: note: each undeclared identifier is reported only once for each function it appears in /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:35:10: note: in definition of macro ‘hsc_const’ if ((x) < 0) \ ^ Db.hsc:151:16: error: ‘DB_NOSERVER_ID’ undeclared (first use in this function) /opt/ghc/7.10.2/lib/ghc-7.10.2/template-hsc.h:35:10: note: in definition of macro ‘hsc_const’ if ((x) < 0) \ ^ compiling dist/build/Database/Berkeley/Db_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/Database/Berkeley/Db_hsc_make.c -o dist/build/Database/Berkeley/Db_hsc_make.o -fno-stack-protector -D__GLASGOW_HASKELL__=710 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -IDatabase/Berkeley/ -DUSE_DB_CXX -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/opt/ghc/7.10.2/lib/ghc-7.10.2/bytes_6elQVSg5cWdFrvRnfxTUrH/include -I/opt/ghc/7.10.2/lib/ghc-7.10.2/base_GDytRqRVSUX7zckgKqJjgw/include -I/opt/ghc/7.10.2/lib/ghc-7.10.2/integ_2aU3IZNMF9a7mQ0OzsZ0dS/include -I/opt/ghc/7.10.2/lib/ghc-7.10.2/include -I/opt/ghc/7.10.2/lib/ghc-7.10.2/include/ Failed to install BerkeleyDB-0.7.2 cabal: Error: some packages failed to install: BerkeleyDB-0.7.2 failed during the building phase. The exception was: ExitFailure 1