Wrong invocation of configure script in libffi and integer-gmp
Similar to the fixed cabal issue: https://github.com/haskell/cabal/pull/1021
The autoconf generated configure script tries to automatically determine the location of the configure script. If the name (argv[0]) of the configure script does not include a path separator autoconf will first scan the path for a file named "configure" before defaulting to the current directory.
The libffi and integer-gmp make files previously called configure by doing "$(SHELL) configure" this will result in it finding any files named "configure" in the path and using the location of that file as the basedir to look for the build's sub directoris. The result is that the libffi/integer-gmp header files, etc. are not found, resulting in a build failure when trying to compile GHC.
Changing the makefiles to use "$(SHELL) ./configure" will avoid this behaviour, the presence of a path separator causes autoconf to default to checking the current directory first.
Trac metadata
Trac field | Value |
---|---|
Version | 7.7 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |