GHC 6.10.4 compilation failure: libffi failed to compile
The libffi failed to compile with the error: "configure: error: source directory already configured; run "make distclean" there first"
To solve this one must specify the full path when invoking the configure script. To do this the part of the "ghc-xxx/libffi/Makefile" should be changed to:
from
CC=$(WhatGccIsCalled) $(SHELL) configure \
to
CC=$(WhatGccIsCalled) $(SHELL) `pwd`/configure \