Resolving dependency issue while installing keter vis stack - haskell-stack

I am trying to install the keter executable to the implicit "global-project" of stack. I use stack install keter from the directory to do this. When I do so, I get the error.
In the dependencies for keter-1.4.3.2:
http-reverse-proxy-0.5.0.1 from stack configuration does not match >=0.4.2 && <0.5 (latest matching version is 0.4.5)
unix-compat-0.5.0.1 from stack configuration does not match >=0.3 && <0.5 (latest matching version is 0.4.3.1)
needed since keter is a build target.
Some different approaches to resolving this:
* Set 'allow-newer: true' in <$HOME>/.stack/config.yaml to ignore all version constraints and build anyway.
* Consider trying 'stack solver', which uses the cabal-install solver to attempt to find some working build configuration. This can be convenient when dealing with many complicated
constraint errors, but results may be unpredictable.
* Recommended action: try adding the following to your extra-deps in <$HOME>/.stack/global-project/stack.yaml:
http-reverse-proxy-0.4.5#sha256:7f2a181ec848e8fdc0bdb4d6e775e488897957ee7ae0a2b82a623360168ccf96
unix-compat-0.4.3.1#sha256:a291f209e9c9723204c49c978ed2c53997dbc9666e53fe7bf7a3548b2c8bb22c
When I follow the recommended action, (i.e., I add the following to /.stack/global-project/stack.yaml):
extra-deps:
- http-reverse-proxy-0.4.5#sha256:7f2a181ec848e8fdc0bdb4d6e775e488897957ee7ae0a2b82a623360168ccf96
- unix-compat-0.4.3.1#sha256:a291f209e9c9723204c49c978ed2c53997dbc9666e53fe7bf7a3548b2c8bb22c
I get a different error when I do stack install keter a second time.
Completed 8 action(s).
-- While building package keter-1.4.3.2 using:
/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Logs have been written to: /.stack/global-project/.stack-work/logs/keter-1.4.3.2.log
Configuring keter-1.4.3.2...
Preprocessing library for keter-1.4.3.2..
Building library for keter-1.4.3.2..
[ 1 of 18] Compiling Codec.Archive.TempTarball ( Codec/Archive/TempTarball.hs, .stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/build/Codec/Archive/TempTarball.o )
[ 2 of 18] Compiling Data.Conduit.LogFile ( Data/Conduit/LogFile.hs, .stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/build/Data/Conduit/LogFile.o )
[ 3 of 18] Compiling Data.Conduit.Process.Unix ( Data/Conduit/Process/Unix.hs, .stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/build/Data/Conduit/Process/Unix.o )
/tmp/stack2837/keter-1.4.3.2/Data/Conduit/Process/Unix.hs:65:20: error:
• The constructor ‘ProcessHandle’ should have 3 arguments, but has been given 2
• In the pattern: ProcessHandle m _
In an equation for ‘processHandleMVar’:
processHandleMVar (ProcessHandle m _) = m
|
65 | processHandleMVar (ProcessHandle m _) = m
| ^^^^^^^^^^^^^^^^^
My guess is that keter still ends up trying to use the 0.5* versions when building, which have different signatures and so the build breaks. Any ideas on how to correctly install keter?
Here is some debug information:
`stack exec -- ghc -v`
Glasgow Haskell Compiler, Version 8.2.2, stage 2 booted by GHC version 8.0.2
Using binary package database: <$HOME>/.stack/programs/x86_64-linux/ghc-tinfo6-8.2.2/lib/ghc-8.2.2/package.conf.d/package.cache
Using binary package database: <$HOME>/.stack/snapshots/x86_64-linux-tinfo6/lts-11.5/8.2.2/pkgdb/package.cache
Using binary package database: <$HOME>/.stack/global-project/.stack-work/install/x86_64-linux-tinfo6/lts-11.5/8.2.2/pkgdb/package.cache
package flags []
loading package database <$HOME>/.stack/programs/x86_64-linux/ghc-tinfo6-8.2.2/lib/ghc-8.2.2/package.conf.d
loading package database <$HOME>/.stack/snapshots/x86_64-linux-tinfo6/lts-11.5/8.2.2/pkgdb
loading package database <$HOME>/.stack/global-project/.stack-work/install/x86_64-linux-tinfo6/lts-11.5/8.2.2/pkgdb
wired-in package ghc-prim mapped to ghc-prim-0.5.1.1
wired-in package integer-gmp mapped to integer-gmp-1.0.1.0
wired-in package base mapped to base-4.10.1.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.12.0.0
wired-in package ghc mapped to ghc-8.2.2
wired-in package dph-seq not found.
wired-in package dph-par not found.
*** Deleting temp files:
Deleting:
*** Deleting temp dirs:
Deleting:
ghc: no input files
Usage: For basic information, try the `--help' option.
stack --version
Version 1.9.1, Git revision f9d0042c141660e1d38f797e1d426be4a99b2a3c (6168 commits) x86_64 hpack-0.31.0

Related

Bitbake tries to fetch sources from unavailable URL and they fail

I'm currently trying to set up an environment for Yocto project for my personal study.
I was clueless about where to start Yocto so I bought the book Embedded Linux Projects Using Yocto Project Cookbook but it keeps failing to build the environment.
I've run only simple commands. I ran source oe-init-build-env <dir name> to make a directory and ran bitbake core-image-minimal.
But bitbake command keeps giving me errors like this. This is the log.
WARNING: Host distribution "Ubuntu-18.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100%
|#################################################################################| Time: 00:00:25Parsing of 891 .bb files complete (0 cached, 891 parsed). 1287 targets, 61 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.24.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-18.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "qemuarm"
DISTRO = "poky"
DISTRO_VERSION = "1.7.3"
TUNE_FEATURES = "arm armv5 thumb dsp"
TARGET_FPU = "soft"
meta
meta-yocto
meta-yocto-bsp = "dizzy:58863ad092c9a279e305c841dbb4353de2ecfae8"
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL http://www.zlib.net/zlib-1.2.8.tar.xz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://www.multiprecision.org/mpc/download/mpc-1.0.2.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.gmplib.org/pub/gmp-6.0.0/gmp-6.0.0a.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL http://ymorin.is-a-geek.org/download/kconfig-frontends/kconfig-frontends-3.12.0.0.tar.xz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://download.gna.org/cryptodev-linux/cryptodev-linux-1.6.tar.gz, attempting MIRRORS if available
WARNING: Checksum failure encountered with download of http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz - will attempt other sources if available
WARNING: Renaming /opt/yocto/poky/qemuarm/downloads/bzip2-1.0.6.tar.gz to /opt/yocto/poky/qemuarm/downloads/bzip2-1.0.6.tar.gz_bad-checksum_2ae3e6c958d83d2855a37f13fe29fd95
WARNING: Failed to fetch URL http://gnome-build-stage-1.googlecode.com/files/uuid-1.6.2.tar.gz, attempting MIRRORS if available
WARNING: Checksum failure encountered with download of http://rpm5.org/files/popt/popt-1.16.tar.gz - will attempt other sources if available
WARNING: Renaming /opt/yocto/poky/qemuarm/downloads/popt-1.16.tar.gz to /opt/yocto/poky/qemuarm/downloads/popt-1.16.tar.gz_bad-checksum_9e09d0bf772649c5ba385c48ba2d3547
WARNING: Failed to fetch URL http://zlib.net/pigz/pigz-2.3.1.tar.gz, attempting MIRRORS if available
WARNING: Checksum failure encountered with download of http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.14-0.20131024.src.rpm;extract=rpm-5.4.14.tar.gz - will attempt other sources if available
WARNING: Renaming /opt/yocto/poky/qemuarm/downloads/rpm-5.4.14-0.20131024.src.rpm to /opt/yocto/poky/qemuarm/downloads/rpm-5.4.14-0.20131024.src.rpm_bad-checksum_6a8d9bc6a7e0162d7ff72fefc9e841e5
WARNING: Failed to fetch URL http://downloads.sourceforge.net/expat/expat-2.1.0.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://invisible-island.net/byacc/byacc-20140422.tgz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://pkg-shadow.alioth.debian.org/releases/shadow-4.2.1.tar.xz, attempting MIRRORS if available
I checked the URLs in the log and it turned out they are all 404 pages. And most importantly, it terminates by showing this message.
ERROR: Error executing a python function in /opt/yocto/poky/meta/recipes-devtools/gcc/gcc-source_4.9.bb:
The stack trace of python calls that resulted in this exception/failure was:
File: 'do_preconfigure', lineno: 12, function: <module>
0008: cmd = d.expand("sed -i 's/BUILD_INFO=info/BUILD_INFO=/' /opt/yocto/poky/qemuarm/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/gcc/configure")
0009: subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)
0010:
0011:
*** 0012:do_preconfigure(d)
0013:
File: 'do_preconfigure', lineno: 5, function: do_preconfigure
0001:
0002:def do_preconfigure(d):
0003: import subprocess
0004: cmd = d.expand('PATH=/opt/yocto/poky/scripts:/opt/yocto/poky/qemuarm/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:/opt/yocto/poky/qemuarm/tmp/sysroots/qemuarm/usr/bin/crossscripts:/opt/yocto/poky/qemuarm/tmp/sysroots/x86_64-linux/usr/sbin:/opt/yocto/poky/qemuarm/tmp/sysroots/x86_64-linux/usr/bin:/opt/yocto/poky/qemuarm/tmp/sysroots/x86_64-linux/sbin:/opt/yocto/poky/qemuarm/tmp/sysroots/x86_64-linux/bin:/opt/yocto/poky/scripts:/opt/yocto/poky/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2020.824.0_x64__79rhkp1fndgsc:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Users/kimth/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/kimth/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/:/mnt/c/Users/kimth/AppData/Roaming/TinyTeX/bin/win32:/snap/bin cd /opt/yocto/poky/qemuarm/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1 && gnu-configize')
*** 0005: subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)
0006: # See 0044-gengtypes.patch, we need to regenerate this file
0007: bb.utils.remove(d.expand("/opt/yocto/poky/qemuarm/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/gcc/gengtype-lex.c"))
0008: cmd = d.expand("sed -i 's/BUILD_INFO=info/BUILD_INFO=/' /opt/yocto/poky/qemuarm/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/gcc/configure")
0009: subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)
File: '/usr/lib/python2.7/subprocess.py', lineno: 223, function: check_output
0219: if retcode:
0220: cmd = kwargs.get("args")
0221: if cmd is None:
0222: cmd = popenargs[0]
*** 0223: raise CalledProcessError(retcode, cmd, output=output)
0224: return output
0225:
0226:
0227:def list2cmdline(seq):
Exception: CalledProcessError: Command 'PATH=/opt/yocto/poky/scripts:/opt/yocto/poky/qemuarm/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:/opt/yocto/poky/qemuarm/tmp/sysroots/qemuarm/usr/bin/crossscripts:/opt/yocto/poky/qemuarm/tmp/sysroots/x86_64-linux/usr/sbin:/opt/yocto/poky/qemuarm/tmp/sysroots/x86_64-linux/usr/bin:/opt/yocto/poky/qemuarm/tmp/sysroots/x86_64-linux/sbin:/opt/yocto/poky/qemuarm/tmp/sysroots/x86_64-linux/bin:/opt/yocto/poky/scripts:/opt/yocto/poky/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2020.824.0_x64__79rhkp1fndgsc:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Users/kimth/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/kimth/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/:/mnt/c/Users/kimth/AppData/Roaming/TinyTeX/bin/win32:/snap/bin cd /opt/yocto/poky/qemuarm
I feel like I need to modify conf files to fetch available URLs but I'm new to Yocto and Bitbake so I'm very lost now. I would appreciate if anyone could tell me where to find solutions. Thank you and stay safe everyone.
You seem to use quite an old yocto version 1.7.3 while there is already 3.3 released. This means also you try to build recipes for some packages that are also old and hence some URLs might be unavailable. Might it be an option for you to use a newer version?
If this is no option for you, one thing to try would be setting MIRROR (see [1]) to a mirror [2] where those packages are still available. But this approach I would not prefer.
[1] https://www.yoctoproject.org/docs/1.7/bitbake-user-manual/bitbake-user-manual.html#var-MIRRORS
[2] could be: http://downloads.yoctoproject.org/mirror/sources/
1.7.3 is a very old release of the project, originally released in 2015 with a last point release in 2016. The fetcher warnings you see aren't the problem, they're warnings but it will fall back to the project mirrors. If it hadn't fallen back correctly, it would have shown errors as well as the warnings. The bigger problem is in fact this:
WARNING: Host distribution "Ubuntu-18.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Since Ubuntu 18.04 is three years newer than the project release you're using, there is no way it would be compatible with that release. You need to use a host OS from the era of the release, so Ubuntu 16.04 may work better. This is because the host OS provides gcc used to build the cross tools and the newer gcc versions don't tend to work with 100% of old code without tweaks.
So in short, use an older distro if you want to try and get that to build.

how to use CPACK_NSIS_WELCOME_TITLE and CPACK_NSIS_FINISH_TITLE?

Using CPack and NSIS to package my application. Everything works well, with the exception of the following: I cannot figure out how to use CPACK_NSIS_WELCOME_TITLE and CPACK_NSIS_FINISH_TITLE.
All of my CPack options/customizations are in 1 place, just prior to calling INCLUDE (CPack). Here are examples of what I've tried:
SET ( CPACK_NSIS_WELCOME_TITLE "afasfasf asfafasf test!!!" )
SET ( CPACK_NSIS_FINISH_TITLE "blah blah blah testing" )
I've also tried the "3LINES" versions like this:
SET ( CPACK_NSIS_WELCOME_TITLE_3LINES "This is the title line.\nMore text.\nThird line." )
SET ( CPACK_NSIS_FINISH_TITLE_3LINES "afaf afafaf afasfaf affaf test test test afafasf afasfasf" )
While the installer is created without error, I don't see any of this text appearing anywhere on the welcome screen, the finish screen, or any other screen.
This is the version of cmake/cpack I'm using:
C:\src\Project\build64>"\Program Files\CMake\bin\cpack.exe" --version
cpack version 3.16.0-rc3
The end of the console output it generates seems to indicate there were no problems:
...
CPack: Create package using NSIS
CPack: Install projects
CPack: - Install project: Project [Debug]
CPack: Create package
CPack: - package: C:/src/Project/build64/project_v1.0.1.exe generated.
FinalizeBuildStatus:
Deleting file "x64\Debug\PACKAGE\PACKAGE.tlog\unsuccessfulbuild".
Touching "x64\Debug\PACKAGE\PACKAGE.tlog\PACKAGE.lastbuildstate".
Done Building Project "C:\src\Project\build64\PACKAGE.vcxproj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
According to the documentation (3.16.4 and 3.17.0-rc1) the variables you mention (CPACK_NSIS_WELCOME_TITLE, CPACK_NSIS_FINISH_TITLE, CPACK_NSIS_WELCOME_TITLE_3LINES, CPACK_NSIS_FINISH_TITLE_3LINES) have been introduced only recently in CMake 3.17.0-rc1. As you are using CMake version 3.16.0-rc3 you need to upgrade.

Julia Error Building Mongo.jl Package on Windows 10

I installed Julia v0.6.2 on Windows 10.
Every other package was installed without a problem, but Mongo.jl give me this error while building it.
Pkg.build("Mongo")
INFO: Building LibBSON
===============================[ ERROR: LibBSON ]===============================
LoadError: None of the selected providers can install dependency libbson.
Use BinDeps.debug(package_name) to see available providers
while loading C:\Users\"user"\.julia\v0.6\LibBSON\deps\build.jl, in expression starting on line 27
================================================================================
INFO: Building Mongo
================================[ ERROR: Mongo ]================================
LoadError: None of the selected providers can install dependency libmongoc.
Use BinDeps.debug(package_name) to see available providers
while loading C:\Users\"user"\.julia\v0.6\Mongo\deps\build.jl, in expression starting on line 26
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: LibBSON and Mongo had build errors.
- packages with build errors remain installed in C:\Users\ciko9\.julia\v0.6
- build the package(s) and all dependencies with Pkg.build("LibBSON", "Mongo")
- build a single package by running its deps/build.jl script
================================================================================
I already opened an issue on github, but I'd like to fix it asap. Any idea on how to solve this problem?
The solution is first to install manually the mongo c drivers.
Second, to copy the mongo-c-drivers folder to the mongo e libbson folder inside julia, then make a new file deps.jl for each package and write this:
# Macro to load a library
macro checked_lib(libname, path)
((VERSION >= v"0.4.0-dev+3844" ? Base.Libdl.dlopen_e : Base.dlopen_e)(path) == C_NULL) && error("Unable to load \n\n$libname ($path)\n\nPlease re-run Pkg.build(package), and restart Julia.")
quote const $(esc(libname)) = $path end
end
# Load dependencies
#checked_lib libbson "C:\\Users\\"userName"\\.julia\\v0.6\\LibBSON\\mongo-c-driver\\bin\\libbson-1.0.dll"
# Load-hooks

Unable to build a simple application sending a HTTP request

I want to perform a HTTP request using the simplest way. I decided to use conduits. Here is my main file:
{-# LANGUAGE OverloadedStrings #-}
import Network.HTTP.Conduit -- the main module
-- The streaming interface uses conduits
import Data.Conduit
import Data.Conduit.Binary (sinkFile)
import qualified Data.ByteString.Lazy as L
import Control.Monad.IO.Class (liftIO)
main :: IO ()
main = do
simpleHttp "http://www.example.com/foo.txt" >>= L.writeFile "foo.txt"
And .cabal:
executable AAA
main-is: Main.hs
hs-source-dirs: src
build-depends: base ==4.6.*, text ==0.11.*, http-conduit, transformers, bytestring
I can't build it, the error is:
$ cabal build
Building AAA-0.1.0.0...
Preprocessing executable 'AAA' for
AAA-0.1.0.0...
src/Main.hs:6:8:
Could not find module `Data.Conduit.Binary'
Perhaps you meant
Data.Conduit.List (needs flag -package conduit-1.1.4)
Data.Conduit.Lift (needs flag -package conduit-1.1.4)
Use -v to see a list of the files searched for.
I've already installed all the libraries shown in the .cabal file by saying cabal install xxx.
What's up with this?
Update:
Couldn't match type `L.ByteString'
with `bytestring-0.10.0.2:Data.ByteString.Lazy.Internal.ByteString'
Expected type: bytestring-0.10.0.2:Data.ByteString.Lazy.Internal.ByteString
-> IO ()
Actual type: L.ByteString -> IO ()
In the return type of a call of `L.writeFile'
In the second argument of `(>>=)', namely `L.writeFile "foo.txt"'
In a stmt of a 'do' block:
simpleHttp "http://www.example.com/foo.txt"
>>= L.writeFile "foo.txt"
So the problem is that your program imports Data.Conduit.Binary which isn't installed. It lives in the conduit-extra package, so you have to add it to your dependencies and install it if you want to use it.
Your main function doesn't actually use it though, so you can just remove the import and it should fix the current error. You will however get a new error when attempting to build since you also import Data.Conduit which isn't listed in your cabal file either. To fix this error remove the import or add conduit to your build-depends.
Seems like now you have two (at least) versions of bytestring installed, and different packages don't agree on which one has to be used.
I suggest reinstalling http-conduit.

Cannot install Yesod Haskell web framework on Mac OSX

I've no idea how to fix this. Does anybody have any ideas?
I'm getting the following error messages when I try:
~ >>> cabal install yesod
Resolving dependencies...
Configuring aeson-0.5.0.0...
Preprocessing library aeson-0.5.0.0...
Preprocessing test suites for aeson-0.5.0.0...
Building aeson-0.5.0.0...
[ 1 of 10] Compiling Data.Aeson.Types.Internal ( Data/Aeson/Types/Internal.hs, dist/build/Data/Aeson/Types/Internal.o )
[ 2 of 10] Compiling Data.Aeson.Functions ( Data/Aeson/Functions.hs, dist/build/Data/Aeson/Functions.o )
[ 3 of 10] Compiling Data.Aeson.Types.Class ( Data/Aeson/Types/Class.hs, dist/build/Data/Aeson/Types/Class.o )
[ 4 of 10] Compiling Data.Aeson.Types ( Data/Aeson/Types.hs, dist/build/Data/Aeson/Types.o )
[ 5 of 10] Compiling Data.Aeson.Parser.Internal ( Data/Aeson/Parser/Internal.hs, dist/build/Data/Aeson/Parser/Internal.o )
SpecConstr
Function `$j_sqbP{v} [lid]'
has two call patterns, but the limit is 1
Use -fspec-constr-count=n to set the bound
Use -dppr-debug to see specialisations
SpecConstr
Function `$j_sqbP{v} [lid]'
has two call patterns, but the limit is 1
Use -fspec-constr-count=n to set the bound
Use -dppr-debug to see specialisations
SpecConstr
Function `$j_sqbT{v} [lid]'
has two call patterns, but the limit is 1
Use -fspec-constr-count=n to set the bound
Use -dppr-debug to see specialisations
SpecConstr
Function `$j_sqbP{v} [lid]'
has two call patterns, but the limit is 1
Use -fspec-constr-count=n to set the bound
Use -dppr-debug to see specialisations
SpecConstr
Function `$j_sqbT{v} [lid]'
has two call patterns, but the limit is 1
Use -fspec-constr-count=n to set the bound
Use -dppr-debug to see specialisations
SpecConstr
Function `$j_sqbP{v} [lid]'
has two call patterns, but the limit is 1
Use -fspec-constr-count=n to set the bound
Use -dppr-debug to see specialisations
SpecConstr
Function `$j_sqbT{v} [lid]'
has two call patterns, but the limit is 1
Use -fspec-constr-count=n to set the bound
Use -dppr-debug to see specialisations
SpecConstr
Function `$j_sqc0{v} [lid]'
has two call patterns, but the limit is 1
Use -fspec-constr-count=n to set the bound
Use -dppr-debug to see specialisations
SpecConstr
Function `ks3{v sqhn} [lid]'
has one call pattern, but the limit is 0
Use -fspec-constr-count=n to set the bound
Use -dppr-debug to see specialisations
[ 6 of 10] Compiling Data.Aeson.Parser ( Data/Aeson/Parser.hs, dist/build/Data/Aeson/Parser.o )
[ 7 of 10] Compiling Data.Aeson.Encode ( Data/Aeson/Encode.hs, dist/build/Data/Aeson/Encode.o )
[ 8 of 10] Compiling Data.Aeson.Generic ( Data/Aeson/Generic.hs, dist/build/Data/Aeson/Generic.o )
[ 9 of 10] Compiling Data.Aeson ( Data/Aeson.hs, dist/build/Data/Aeson.o )
[10 of 10] Compiling Data.Aeson.TH ( Data/Aeson/TH.hs, dist/build/Data/Aeson/TH.o )
Data/Aeson/Generic.hs:31:8:
Could not find module `Control.Monad.State.Strict':
Perhaps you haven't installed the profiling libraries for package `mtl-2.0.1.0'?
Use -v to see a list of the files searched for.
Configuring control-monad-attempt-0.3.0.1...
Preprocessing library control-monad-attempt-0.3.0.1...
Building control-monad-attempt-0.3.0.1...
[1 of 1] Compiling Control.Monad.Attempt ( Control/Monad/Attempt.hs, dist/build/Control/Monad/Attempt.o )
[1 of 1] Compiling Control.Monad.Attempt ( Control/Monad/Attempt.hs, dist/build/Control/Monad/Attempt.p_o )
Control/Monad/Attempt.hs:33:1:
Failed to load interface for `Control.Monad.Trans.Class':
Perhaps you haven't installed the profiling libraries for package `transformers-0.2.2.0'?
Use -v to see a list of the files searched for.
Configuring email-validate-0.2.7...
Preprocessing library email-validate-0.2.7...
Building email-validate-0.2.7...
[1 of 1] Compiling Text.Email.Validate ( Text/Email/Validate.hs, dist/build/Text/Email/Validate.o )
Text/Email/Validate.hs:11:8:
Could not find module `Text.Parsec.Char':
Perhaps you haven't installed the profiling libraries for package `parsec-3.1.1'?
Use -v to see a list of the files searched for.
Configuring enumerator-0.4.18...
Preprocessing library enumerator-0.4.18...
Building enumerator-0.4.18...
[ 1 of 10] Compiling Data.Enumerator.Util ( lib/Data/Enumerator/Util.hs, dist/build/Data/Enumerator/Util.o )
[ 2 of 10] Compiling Data.Enumerator.Internal ( lib/Data/Enumerator/Internal.hs, dist/build/Data/Enumerator/Internal.o )
[ 3 of 10] Compiling Data.Enumerator.List[boot] ( lib/Data/Enumerator/List.hs-boot, dist/build/Data/Enumerator/List.o-boot )
[ 4 of 10] Compiling Data.Enumerator.Compatibility ( lib/Data/Enumerator/Compatibility.hs, dist/build/Data/Enumerator/Compatibility.o )
[ 5 of 10] Compiling Data.Enumerator ( lib/Data/Enumerator.hs, dist/build/Data/Enumerator.o )
lib/Data/Enumerator.hs:63:11:
Warning: `Enumerator' is exported by `module Data.Enumerator.Internal' and `Enumerator'
lib/Data/Enumerator.hs:63:11:
Warning: `Iteratee' is exported by `module Data.Enumerator.Internal' and `Iteratee'
lib/Data/Enumerator.hs:63:11:
Warning: `Enumeratee' is exported by `module Data.Enumerator.Internal' and `Enumeratee'
lib/Data/Enumerator.hs:63:11:
Warning: `>>==' is exported by `module Data.Enumerator.Internal' and `(>>==)'
lib/Data/Enumerator.hs:63:11:
Warning: `==<<' is exported by `module Data.Enumerator.Internal' and `(==<<)'
lib/Data/Enumerator.hs:63:11:
Warning: `$$' is exported by `module Data.Enumerator.Internal' and `($$)'
lib/Data/Enumerator.hs:63:11:
Warning: `>==>' is exported by `module Data.Enumerator.Internal' and `(>==>)'
lib/Data/Enumerator.hs:63:11:
Warning: `<==<' is exported by `module Data.Enumerator.Internal' and `(<==<)'
[ 6 of 10] Compiling Data.Enumerator.List ( lib/Data/Enumerator/List.hs, dist/build/Data/Enumerator/List.o )
[ 7 of 10] Compiling Data.Enumerator.Binary ( lib/Data/Enumerator/Binary.hs, dist/build/Data/Enumerator/Binary.o )
lib/Data/Enumerator/Binary.hs:721:25:
Warning: This binding for `eof' shadows the existing binding
bound at lib/Data/Enumerator/Binary.hs:716:29
lib/Data/Enumerator/Binary.hs:788:17:
Warning: This binding for `rem' shadows the existing binding
imported from Prelude at lib/Data/Enumerator/Binary.hs:98:1-92
[ 8 of 10] Compiling Data.Enumerator.IO ( lib/Data/Enumerator/IO.hs, dist/build/Data/Enumerator/IO.o )
[ 9 of 10] Compiling Data.Enumerator.Text ( lib/Data/Enumerator/Text.hs, dist/build/Data/Enumerator/Text.o )
SpecConstr
Function `$j_sn5C{v} [lid]'
has five call patterns, but the limit is 3
Use -fspec-constr-count=n to set the bound
Use -dppr-debug to see specialisations
lib/Data/Enumerator/Text.hs:744:25:
Warning: This binding for `eof' shadows the existing binding
bound at lib/Data/Enumerator/Text.hs:739:29
[10 of 10] Compiling Data.Enumerator.Trans ( lib/Data/Enumerator/Trans.hs, dist/build/Data/Enumerator/Trans.o )
lib/Data/Enumerator.hs:80:18:
Could not find module `Data.Functor.Identity':
Perhaps you haven't installed the profiling libraries for package `transformers-0.2.2.0'?
Use -v to see a list of the files searched for.
Configuring shakespeare-0.10.2...
Preprocessing library shakespeare-0.10.2...
Building shakespeare-0.10.2...
[1 of 2] Compiling Text.Shakespeare.Base ( Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o )
[2 of 2] Compiling Text.Shakespeare ( Text/Shakespeare.hs, dist/build/Text/Shakespeare.o )
Text/Shakespeare.hs:20:8:
Could not find module `Text.ParserCombinators.Parsec':
Perhaps you haven't installed the profiling libraries for package `parsec-3.1.1'?
Use -v to see a list of the files searched for.
Configuring simple-sendfile-0.2.0...
Preprocessing library simple-sendfile-0.2.0...
Building simple-sendfile-0.2.0...
[1 of 3] Compiling Network.Sendfile.Types ( Network/Sendfile/Types.hs, dist/build/Network/Sendfile/Types.o )
[2 of 3] Compiling Network.Sendfile.MacOS ( dist/build/Network/Sendfile/MacOS.hs, dist/build/Network/Sendfile/MacOS.o )
[3 of 3] Compiling Network.Sendfile ( Network/Sendfile.hs, dist/build/Network/Sendfile.o )
Network/Sendfile/MacOS.hsc:19:8:
Could not find module `Network.Socket':
Perhaps you haven't installed the profiling libraries for package `network-2.3.0.2'?
Use -v to see a list of the files searched for.
Configuring transformers-base-0.4.1...
Preprocessing library transformers-base-0.4.1...
Building transformers-base-0.4.1...
[1 of 1] Compiling Control.Monad.Base ( src/Control/Monad/Base.hs, dist/build/Control/Monad/Base.o )
src/Control/Monad/Base.hs:63:10:
Warning: orphan instance: instance Applicative (L.ST s)
src/Control/Monad/Base.hs:67:10:
Warning: orphan instance: instance Applicative (S.ST s)
src/Control/Monad/Base.hs:28:8:
Could not find module `Control.Monad.Trans.Cont':
Perhaps you haven't installed the profiling libraries for package `transformers-0.2.2.0'?
Use -v to see a list of the files searched for.
Configuring xss-sanitize-0.3.1...
Preprocessing library xss-sanitize-0.3.1...
Preprocessing test suites for xss-sanitize-0.3.1...
Building xss-sanitize-0.3.1...
[1 of 2] Compiling Text.HTML.SanitizeXSS.Css ( Text/HTML/SanitizeXSS/Css.hs, dist/build/Text/HTML/SanitizeXSS/Css.o )
[2 of 2] Compiling Text.HTML.SanitizeXSS ( Text/HTML/SanitizeXSS.hs, dist/build/Text/HTML/SanitizeXSS.o )
Text/HTML/SanitizeXSS.hs:19:8:
Could not find module `Network.URI':
Perhaps you haven't installed the profiling libraries for package `network-2.3.0.2'?
Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
aeson-0.5.0.0 failed during the building phase. The exception was:
ExitFailure 1
asn1-data-0.6.1.2 depends on enumerator-0.4.18 which failed to install.
attoparsec-enumerator-0.3 depends on enumerator-0.4.18 which failed to
install.
authenticate-0.10.4 depends on transformers-base-0.4.1 which failed to
install.
blaze-builder-enumerator-0.2.0.3 depends on enumerator-0.4.18 which failed to
install.
certificate-1.0.1 depends on enumerator-0.4.18 which failed to install.
conduit-0.0.4 depends on transformers-base-0.4.1 which failed to install.
control-monad-attempt-0.3.0.1 failed during the building phase. The exception
was:
ExitFailure 1
data-object-yaml-0.3.4 depends on transformers-base-0.4.1 which failed to
install.
email-validate-0.2.7 failed during the building phase. The exception was:
ExitFailure 1
enumerator-0.4.18 failed during the building phase. The exception was:
ExitFailure 1
hamlet-0.10.7.1 depends on shakespeare-0.10.2 which failed to install.
http-enumerator-0.7.2.5 depends on transformers-base-0.4.1 which failed to
install.
lifted-base-0.1.0.2 depends on transformers-base-0.4.1 which failed to
install.
monad-control-0.3.1 depends on transformers-base-0.4.1 which failed to
install.
persistent-0.6.4.4 depends on transformers-base-0.4.1 which failed to install.
persistent-template-0.6.3.1 depends on transformers-base-0.4.1 which failed to
install.
pool-0.1.2 depends on transformers-base-0.4.1 which failed to install.
shakespeare-0.10.2 failed during the building phase. The exception was:
ExitFailure 1
shakespeare-css-0.10.6 depends on shakespeare-0.10.2 which failed to install.
shakespeare-i18n-0.0.0 depends on shakespeare-0.10.2 which failed to install.
shakespeare-js-0.10.4 depends on shakespeare-0.10.2 which failed to install.
shakespeare-text-0.10.3 depends on shakespeare-0.10.2 which failed to install.
simple-sendfile-0.2.0 failed during the building phase. The exception was:
ExitFailure 1
tls-0.8.5 depends on enumerator-0.4.18 which failed to install.
tls-extra-0.4.2 depends on enumerator-0.4.18 which failed to install.
transformers-base-0.4.1 failed during the building phase. The exception was:
ExitFailure 1
wai-0.4.3 depends on enumerator-0.4.18 which failed to install.
wai-extra-0.4.6 depends on enumerator-0.4.18 which failed to install.
wai-logger-0.1.2 depends on enumerator-0.4.18 which failed to install.
warp-0.4.6.3 depends on simple-sendfile-0.2.0 which failed to install.
xml-enumerator-0.4.4.1 depends on enumerator-0.4.18 which failed to install.
xss-sanitize-0.3.1 failed during the building phase. The exception was:
ExitFailure 1
yaml-0.5.1.2 depends on transformers-base-0.4.1 which failed to install.
yesod-0.9.4.1 depends on xss-sanitize-0.3.1 which failed to install.
yesod-auth-0.7.9 depends on xss-sanitize-0.3.1 which failed to install.
yesod-core-0.9.4.1 depends on transformers-base-0.4.1 which failed to install.
yesod-form-0.3.4.2 depends on xss-sanitize-0.3.1 which failed to install.
yesod-json-0.2.3 depends on transformers-base-0.4.1 which failed to install.
yesod-persistent-0.2.2 depends on transformers-base-0.4.1 which failed to
install.
zlib-enum-0.2.1 depends on enumerator-0.4.18 which failed to install.
You're trying to build Yesod, and all of its dependencies, with profiling libraries, but the existing packages you have installed — mtl, parsec, and so on — don't have the profiling libraries installed. If you want to compile a package with profiling libraries, all of its dependencies must have the profiling libraries installed too. Presumably, you turned on profiling in your ~/.cabal/config at some point after having already installed packages.
One solution would be to explicitly cabal install --reinstall each package it's complaining about, but it's probably easier to cabal install --reinstall world (or save your ~/.cabal/config, rm -r ~/.cabal ~/.ghc and start over).
If you don't really care that much about profiling libraries, just comment out the library-profiling: True line in your ~/.cabal/config.

Resources