
$ system_profiler SPSoftwareDataType | grep "System Version" System Version: Mac OS X 10.6.7 (10J869) $ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.0.2 $ cabal --version cabal-install version 0.10.2 using version 1.10.1.0 of the Cabal library $ cabal install hipmunkplayground ... Updating documentation index /Users/andrew/Library/Haskell/doc/index.html cabal: Error: some packages failed to install: GLFW-0.4.2 failed during the building phase. The exception was: ExitFailure 1 HipmunkPlayground-5.2.0.3 depends on GLFW-0.4.2 which failed to install. Cheers, Andrew Pennebaker www.yellosoft.us

On Tue, Apr 26, 2011 at 1:38 AM, Andrew Pennebaker < andrew.pennebaker@gmail.com> wrote:
$ system_profiler SPSoftwareDataType | grep "System Version" System Version: Mac OS X 10.6.7 (10J869) $ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.0.2 $ cabal --version cabal-install version 0.10.2 using version 1.10.1.0 of the Cabal library $ cabal install hipmunkplayground ... Updating documentation index /Users/andrew/Library/Haskell/doc/index.html cabal: Error: some packages failed to install: GLFW-0.4.2 failed during the building phase. The exception was: ExitFailure 1 HipmunkPlayground-5.2.0.3 depends on GLFW-0.4.2 which failed to install.
GLFW is the package that failed to install. The reason for that should be in the scroll back somewhere but it can often be hard to find when it's buried in a huge list of compilation messages. If you try with just GLFW, eg., cabal install GLFW, then it should be easier to spot the error. Since you're on a mac, I would highly recommend getting the latest haskell platform. You're on 7.0.2 which has bug fixes that are relevant to build failures on OSX, as I understand it. Jason

Thanks for the tip. GHC 7.0.3 does seem to fix a couple bugs, and maybe even
run faster than GHC 7.0.2.
But it doesn't solve the problem.
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.3
$ cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library
$ cabal install hipmunk
(works)
$ cabal install hipmunkplayground
(dozens of GLFW warnings)
...
Updating documentation index /Users/andrew/Library/Haskell/doc/index.html
cabal: Error: some packages failed to install:
GLFW-0.4.2 failed during the building phase. The exception was:
ExitFailure 1
HipmunkPlayground-5.2.0.3 depends on GLFW-0.4.2 which failed to install.
$ cabal install glfw
(dozens of GLFW warnings)
...
cabal: Error: some packages failed to install:
GLFW-0.4.2 failed during the building phase. The exception was:
ExitFailure 1
Cheers,
Andrew Pennebaker
www.yellosoft.us
On Tue, Apr 26, 2011 at 4:49 AM, Jason Dagit
On Tue, Apr 26, 2011 at 1:38 AM, Andrew Pennebaker < andrew.pennebaker@gmail.com> wrote:
$ system_profiler SPSoftwareDataType | grep "System Version" System Version: Mac OS X 10.6.7 (10J869) $ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.0.2 $ cabal --version cabal-install version 0.10.2 using version 1.10.1.0 of the Cabal library $ cabal install hipmunkplayground ... Updating documentation index /Users/andrew/Library/Haskell/doc/index.html cabal: Error: some packages failed to install: GLFW-0.4.2 failed during the building phase. The exception was: ExitFailure 1 HipmunkPlayground-5.2.0.3 depends on GLFW-0.4.2 which failed to install.
GLFW is the package that failed to install. The reason for that should be in the scroll back somewhere but it can often be hard to find when it's buried in a huge list of compilation messages. If you try with just GLFW, eg., cabal install GLFW, then it should be easier to spot the error.
Since you're on a mac, I would highly recommend getting the latest haskell platform. You're on 7.0.2 which has bug fixes that are relevant to build failures on OSX, as I understand it.
Jason

On Wed, Apr 27, 2011 at 9:46 PM, Albert Y. C. Lai
Perhaps the linker ran out of memory.
I don't think so. In my experience, when gnu ld crashes from out of memory it gets a segfault, which translates to error code 9, (or was it 11?), and then cabal will print ExitFailure 9 (or was it 11?). Similarly, ExitFailure 127 means cabal couldn't find an executable it needed to run. Jason

On Tue, Apr 26, 2011 at 1:14 PM, Andrew Pennebaker < andrew.pennebaker@gmail.com> wrote:
Thanks for the tip. GHC 7.0.3 does seem to fix a couple bugs, and maybe even run faster than GHC 7.0.2.
But it doesn't solve the problem.
It's hard to help because I still don't know what problem you're having. The error code from the attempted GLFW install is not included in your abbreviated log. As I recommended before try this command: cabal install GLFW-0.4.2 That will attempt only the GLFW install which will mean less output to look through for the error message. Jason
participants (3)
-
Albert Y. C. Lai
-
Andrew Pennebaker
-
Jason Dagit