*** setup configure Configuring Hipmunk-0.2... Flags chosen: small_base=True Dependency array -any: using array-0.2.0.0 Dependency base -any: using base-4.0.0.0 Dependency containers -any: using containers-0.2.0.0 Using Cabal-1.6.0.1 compiled by ghc-6.8 Using compiler: ghc-6.10.1 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/Hipmunk-0.2/ghc-6.10.1 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/Hipmunk-0.2 Documentation installed in: /usr/local/tmp/archive/install/share/doc/Hipmunk-0.2 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.15.1 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.2 found on system at: /usr/bin/gcc Using ghc version 6.10.1 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.1 found on system at: /usr/local/bin/ghc-pkg No greencard found Using haddock version 2.3.0 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library Hipmunk-0.2... Creating dist/build/Physics/Hipmunk (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --cflag=-IPhysics/Hipmunk --cflag=-Ichipmunk --cflag=-O3 --cflag=-ffast-math --cflag=-std=gnu99 --lflag=-lm --cflag=-I/usr/local/lib/ghc-6.10.1/base-4.0.0.0/include --cflag=-I/usr/local/lib/ghc-6.10.1/include --cflag=-IPAPI_INCLUDE_DIR --lflag=-L/usr/local/lib/ghc-6.10.1/containers-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/array-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/syb-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/base-4.0.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/integer-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/ghc-prim-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl --lflag=-lrt -o dist/build/Physics/Hipmunk/Common.hs Physics/Hipmunk/Common.hsc Creating dist/build/Physics/Hipmunk (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --cflag=-IPhysics/Hipmunk --cflag=-Ichipmunk --cflag=-O3 --cflag=-ffast-math --cflag=-std=gnu99 --lflag=-lm --cflag=-I/usr/local/lib/ghc-6.10.1/base-4.0.0.0/include --cflag=-I/usr/local/lib/ghc-6.10.1/include --cflag=-IPAPI_INCLUDE_DIR --lflag=-L/usr/local/lib/ghc-6.10.1/containers-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/array-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/syb-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/base-4.0.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/integer-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/ghc-prim-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl --lflag=-lrt -o dist/build/Physics/Hipmunk/Body.hs Physics/Hipmunk/Body.hsc Creating dist/build/Physics/Hipmunk (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --cflag=-IPhysics/Hipmunk --cflag=-Ichipmunk --cflag=-O3 --cflag=-ffast-math --cflag=-std=gnu99 --lflag=-lm --cflag=-I/usr/local/lib/ghc-6.10.1/base-4.0.0.0/include --cflag=-I/usr/local/lib/ghc-6.10.1/include --cflag=-IPAPI_INCLUDE_DIR --lflag=-L/usr/local/lib/ghc-6.10.1/containers-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/array-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/syb-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/base-4.0.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/integer-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/ghc-prim-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl --lflag=-lrt -o dist/build/Physics/Hipmunk/Shape.hs Physics/Hipmunk/Shape.hsc Creating dist/build/Physics/Hipmunk (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --cflag=-IPhysics/Hipmunk --cflag=-Ichipmunk --cflag=-O3 --cflag=-ffast-math --cflag=-std=gnu99 --lflag=-lm --cflag=-I/usr/local/lib/ghc-6.10.1/base-4.0.0.0/include --cflag=-I/usr/local/lib/ghc-6.10.1/include --cflag=-IPAPI_INCLUDE_DIR --lflag=-L/usr/local/lib/ghc-6.10.1/containers-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/array-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/syb-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/base-4.0.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/integer-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/ghc-prim-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl --lflag=-lrt -o dist/build/Physics/Hipmunk/Joint.hs Physics/Hipmunk/Joint.hsc Creating dist/build/Physics/Hipmunk (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --cflag=-IPhysics/Hipmunk --cflag=-Ichipmunk --cflag=-O3 --cflag=-ffast-math --cflag=-std=gnu99 --lflag=-lm --cflag=-I/usr/local/lib/ghc-6.10.1/base-4.0.0.0/include --cflag=-I/usr/local/lib/ghc-6.10.1/include --cflag=-IPAPI_INCLUDE_DIR --lflag=-L/usr/local/lib/ghc-6.10.1/containers-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/array-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/syb-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/base-4.0.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/integer-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/ghc-prim-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl --lflag=-lrt -o dist/build/Physics/Hipmunk/Space.hs Physics/Hipmunk/Space.hsc Creating dist/build/Physics/Hipmunk (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --cflag=-IPhysics/Hipmunk --cflag=-Ichipmunk --cflag=-O3 --cflag=-ffast-math --cflag=-std=gnu99 --lflag=-lm --cflag=-I/usr/local/lib/ghc-6.10.1/base-4.0.0.0/include --cflag=-I/usr/local/lib/ghc-6.10.1/include --cflag=-IPAPI_INCLUDE_DIR --lflag=-L/usr/local/lib/ghc-6.10.1/containers-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/array-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/syb-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/base-4.0.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/integer-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1/ghc-prim-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.1 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl --lflag=-lrt -o dist/build/Physics/Hipmunk/Internal.hs Physics/Hipmunk/Internal.hsc Building Hipmunk-0.2... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc -package-name Hipmunk-0.2 --make -hide-all-packages -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -IPhysics/Hipmunk -Ichipmunk -optP-include -optPdist/build/autogen/cabal_macros.h -#include "wrapper.h" -odir dist/build -hidir dist/build -stubdir dist/build -package array-0.2.0.0 -package base-4.0.0.0 -package containers-0.2.0.0 -O -Wall -XCPP -XForeignFunctionInterface Physics.Hipmunk Physics.Hipmunk.Common Physics.Hipmunk.Body Physics.Hipmunk.Shape Physics.Hipmunk.Joint Physics.Hipmunk.Space Physics.Hipmunk.Internal [1 of 7] Compiling Physics.Hipmunk.Common ( dist/build/Physics/Hipmunk/Common.hs, dist/build/Physics/Hipmunk/Common.o ) [2 of 7] Compiling Physics.Hipmunk.Internal ( dist/build/Physics/Hipmunk/Internal.hs, dist/build/Physics/Hipmunk/Internal.o ) [3 of 7] Compiling Physics.Hipmunk.Body ( dist/build/Physics/Hipmunk/Body.hs, dist/build/Physics/Hipmunk/Body.o ) [4 of 7] Compiling Physics.Hipmunk.Shape ( dist/build/Physics/Hipmunk/Shape.hs, dist/build/Physics/Hipmunk/Shape.o ) [5 of 7] Compiling Physics.Hipmunk.Joint ( dist/build/Physics/Hipmunk/Joint.hs, dist/build/Physics/Hipmunk/Joint.o ) [6 of 7] Compiling Physics.Hipmunk.Space ( dist/build/Physics/Hipmunk/Space.hs, dist/build/Physics/Hipmunk/Space.o ) Physics/Hipmunk/Space.hsc:531:2: Couldn't match expected type `Maybe (Either (ForeignPtr ()) Shape)' against inferred type `IO (Either (ForeignPtr ()) Shape)' In a stmt of a 'do' expression: Right shape <- M.lookup (castPtr ptr) ent In the expression: do ent <- readIORef entities Right shape <- M.lookup (castPtr ptr) ent return shape In the definition of `retriveShape': retriveShape (P _ entities _) ptr = do ent <- readIORef entities Right shape <- M.lookup (castPtr ptr) ent return shape *** Trying again with preferred-versions *** setup configure Configuring Hipmunk-0.2... Flags chosen: small_base=True Dependency array -any: using array-0.2.0.0 Dependency base -any && <4: using base-3.0.3.0 Dependency containers -any: using containers-0.2.0.0 Using Cabal-1.6.0.1 compiled by ghc-6.8 Using compiler: ghc-6.10.1 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/Hipmunk-0.2/ghc-6.10.1 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/Hipmunk-0.2 Documentation installed in: /usr/local/tmp/archive/install/share/doc/Hipmunk-0.2 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.15.1 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.2 found on system at: /usr/bin/gcc Using ghc version 6.10.1 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.1 found on system at: /usr/local/bin/ghc-pkg No greencard found Using haddock version 2.3.0 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library Hipmunk-0.2... Building Hipmunk-0.2... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc -package-name Hipmunk-0.2 --make -hide-all-packages -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -IPhysics/Hipmunk -Ichipmunk -optP-include -optPdist/build/autogen/cabal_macros.h -#include "wrapper.h" -odir dist/build -hidir dist/build -stubdir dist/build -package array-0.2.0.0 -package base-3.0.3.0 -package containers-0.2.0.0 -O -Wall -XCPP -XForeignFunctionInterface Physics.Hipmunk Physics.Hipmunk.Common Physics.Hipmunk.Body Physics.Hipmunk.Shape Physics.Hipmunk.Joint Physics.Hipmunk.Space Physics.Hipmunk.Internal [1 of 7] Compiling Physics.Hipmunk.Common ( dist/build/Physics/Hipmunk/Common.hs, dist/build/Physics/Hipmunk/Common.o ) [2 of 7] Compiling Physics.Hipmunk.Internal ( dist/build/Physics/Hipmunk/Internal.hs, dist/build/Physics/Hipmunk/Internal.o ) [3 of 7] Compiling Physics.Hipmunk.Body ( dist/build/Physics/Hipmunk/Body.hs, dist/build/Physics/Hipmunk/Body.o ) [4 of 7] Compiling Physics.Hipmunk.Shape ( dist/build/Physics/Hipmunk/Shape.hs, dist/build/Physics/Hipmunk/Shape.o ) [5 of 7] Compiling Physics.Hipmunk.Joint ( dist/build/Physics/Hipmunk/Joint.hs, dist/build/Physics/Hipmunk/Joint.o ) [6 of 7] Compiling Physics.Hipmunk.Space ( dist/build/Physics/Hipmunk/Space.hs, dist/build/Physics/Hipmunk/Space.o ) Physics/Hipmunk/Space.hsc:531:2: Couldn't match expected type `Maybe (Either (ForeignPtr ()) Shape)' against inferred type `IO (Either (ForeignPtr ()) Shape)' In a stmt of a 'do' expression: Right shape <- M.lookup (castPtr ptr) ent In the expression: do ent <- readIORef entities Right shape <- M.lookup (castPtr ptr) ent return shape In the definition of `retriveShape': retriveShape (P _ entities _) ptr = do ent <- readIORef entities Right shape <- M.lookup (castPtr ptr) ent return shape