id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
3732,GHC 6.10.4 compilation failure: libffi failed to compile,guest,,"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 \
}}}
",bug,closed,normal,,Compiler,6.10.4,fixed,,,Linux,ia64,Building GHC failed,,,,,
