[GHC] #7992: Wrong invocation of configure script in libffi and integer-gmp
GHC
ghc-devs at haskell.org
Mon Jun 17 17:25:23 CEST 2013
#7992: Wrong invocation of configure script in libffi and integer-gmp
--------------------------------+-------------------------------------------
Reporter: merijn | Owner:
Type: bug | Status: new
Priority: normal | Component: Build System
Version: 7.7 | Keywords: patch
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Building GHC failed | Blockedby:
Blocking: | Related:
--------------------------------+-------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7992>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list