*** setup configure Configuring scenegraph-0.1.0.1... Dependency GLUT >=2.1: using GLUT-2.2.2.0 Dependency OpenGL >=2.2: using OpenGL-2.4.0.1 Dependency array -any: using array-0.3.0.2 Dependency base -any: using base-4.3.1.0 Dependency containers -any: using containers-0.4.0.0 Dependency fgl -any: using fgl-5.4.2.3 Dependency haskell98 -any: using haskell98-1.1.0.1 Dependency hmatrix -any: using hmatrix-0.10.0.2 Dependency mtl -any: using mtl-2.0.1.0 Dependency old-time -any: using old-time-1.0.0.6 Dependency process -any: using process-1.0.1.5 Using Cabal-1.10.1.0 compiled by ghc-7.0 Using compiler: ghc-7.0.1.20101215 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/scenegraph-0.1.0.1/ghc-7.0.1.20101215 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/scenegraph-0.1.0.1 Documentation installed in: /usr/local/tmp/archive/install/share/doc/scenegraph-0.1.0.1 Using alex version 2.3.3 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 1.11 found on system at: /usr/local/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.4.5 found on system at: /usr/bin/gcc Using ghc version 7.0.1.20101215 found on system at: /usr/local/bin/ghc Using ghc-pkg version 7.0.1.20101215 found on system at: /usr/local/bin/ghc-pkg No greencard found Using haddock version 2.9.0 found on system at: /usr/local/bin/haddock Using happy version 1.18.6 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.17 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 lhc found No lhc-pkg found No nhc98 found Using pkg-config version 0.25 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 No uhc found *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library scenegraph-0.1.0.1... Building scenegraph-0.1.0.1... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc --make -package-name scenegraph-0.1.0.1 -hide-all-packages -fbuilding-cabal-package -i -idist/build -isrc -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package-id GLUT-2.2.2.0-dde1cf597ad7778e8fc9dafc03a74f06 -package-id OpenGL-2.4.0.1-f4d4ffa27bf9761a3e1eac4cd05b7305 -package-id array-0.3.0.2-1df307f7aa24807848edcd21ee4a14a9 -package-id base-4.3.1.0-08d1542e223f30665b846c92c4416607 -package-id containers-0.4.0.0-1236a68ef8c55ed622ff38b137573e8e -package-id fgl-5.4.2.3-8c6e40446a77303302d572a91805e6d8 -package-id haskell98-1.1.0.1-c82f735e4083fb2c95241ca6f2f41c16 -package-id hmatrix-0.10.0.2-30726643956c04a8989484ad447588cd -package-id mtl-2.0.1.0-ba14a5c53c0b24ecf99f34ee652aa1fd -package-id old-time-1.0.0.6-87ed084260d10db5d35dd177177a6de0 -package-id process-1.0.1.5-4d8777fa163b5557472641155e93faf6 -O -XHaskell98 -XOverlappingInstances -XUndecidableInstances Graphics.SceneGraph Graphics.SceneGraph.Basic Graphics.SceneGraph.Vector Graphics.SceneGraph.Render Graphics.SceneGraph.SimpleViewport Graphics.SceneGraph.GraphViz Graphics.SceneGraph.Library Graphics.SceneGraph.Dump Graphics.SceneGraph.Textures [ 1 of 14] Compiling Graphics.SceneGraph.TGA ( src/Graphics/SceneGraph/TGA.hs, dist/build/Graphics/SceneGraph/TGA.o ) [ 2 of 14] Compiling Graphics.SceneGraph.ReadImage ( src/Graphics/SceneGraph/ReadImage.hs, dist/build/Graphics/SceneGraph/ReadImage.o ) [ 3 of 14] Compiling Graphics.SceneGraph.MySTM ( src/Graphics/SceneGraph/MySTM.hs, dist/build/Graphics/SceneGraph/MySTM.o ) [ 4 of 14] Compiling Graphics.SceneGraph.Utils ( src/Graphics/SceneGraph/Utils.hs, dist/build/Graphics/SceneGraph/Utils.o ) [ 5 of 14] Compiling Graphics.SceneGraph.Textures ( src/Graphics/SceneGraph/Textures.hs, dist/build/Graphics/SceneGraph/Textures.o ) [ 6 of 14] Compiling Graphics.SceneGraph.Vector ( src/Graphics/SceneGraph/Vector.hs, dist/build/Graphics/SceneGraph/Vector.o ) [ 7 of 14] Compiling Graphics.SceneGraph.Matrix ( src/Graphics/SceneGraph/Matrix.hs, dist/build/Graphics/SceneGraph/Matrix.o ) src/Graphics/SceneGraph/Matrix.hs:41:29: Could not deduce (Floating a) from the context (Element a) arising from a use of `sin' Possible fix: add (Floating a) to the context of the type signature for `rotateM'' In the expression: sin theta In an equation for `s': s = sin theta In an equation for `rotateM'': rotateM' theta v = fromLists [[t * x * x + c, t * x * y - s * z, ....], [t * x * y + s * z, t * y * y + c, ....], [t * x * z - s * y, t * y * z + s * x, ....], ....] where t = 1 - cos theta c = cos theta s = sin theta [x', y', z'] = toList v .... src/Graphics/SceneGraph/Matrix.hs:51:33: No instance for (Product GLdouble) arising from a use of `multiply' Possible fix: add an instance declaration for (Product GLdouble) In the second argument of `($)', namely `m `multiply` (asColumn v)' In the second argument of `($)', namely `toColumns $ m `multiply` (asColumn v)' In the expression: head $ toColumns $ m `multiply` (asColumn v)