Skip to content

Fix configure of readline performed as part of GHC install

On Mac OS X 10.4.9, make install of a recent GHC HEAD reports:

...
rm -f -f stamp/configure.library.*.readline
ifBuildable/ifBuildable readline setup/Setup configure \
                                     \
                                    --prefix=/Users/thorkilnaur/tn/install/ghc-HEAD-for-HughesPJ-wrong-fill-indent-20070506_1304 \
                                    --with-compiler=/Users/thorkilnaur/tn/install/ghc-HEAD-for-HughesPJ-wrong-fill-indent-20070506_1304/bin/ghc \
                                    --datasubdir=ghc
configure: Reading installed packages...
Configuring readline-1.0...
configure: Dependency base-any: using base-2.1
configure: Using install prefix: /Users/thorkilnaur/tn/install/ghc-HEAD-for-HughesPJ-wrong-fill-indent-20070506_1304
configure: Binaries installed in: /Users/thorkilnaur/tn/install/ghc-HEAD-for-HughesPJ-wrong-fill-indent-20070506_1304/bin
configure: Libraries installed in: /Users/thorkilnaur/tn/install/ghc-HEAD-for-HughesPJ-wrong-fill-indent-20070506_1304/lib/readline-1.0/ghc-6.7.20070506
configure: Private binaries installed in: /Users/thorkilnaur/tn/install/ghc-HEAD-for-HughesPJ-wrong-fill-indent-20070506_1304/libexec
configure: Data files installed in: /Users/thorkilnaur/tn/install/ghc-HEAD-for-HughesPJ-wrong-fill-indent-20070506_1304/share/ghc
configure: Using compiler: /Users/thorkilnaur/tn/install/ghc-HEAD-for-HughesPJ-wrong-fill-indent-20070506_1304/bin/ghc
configure: Compiler flavor: GHC
configure: Compiler version: 6.7.20070506
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for tputs in -lncurses... yes
checking for readline in -lreadline... yes
checking for rl_readline_version in -lreadline... no
configure: error: readline not found, so this package cannot be built
See `config.log' for more details.
configure: Using package tool: /Users/thorkilnaur/tn/install/ghc-HEAD-for-HughesPJ-wrong-fill-indent-20070506_1304/bin/ghc-pkg
configure: Using ar found on system at: /usr/bin/ar
configure: Using haddock found on system at: /usr/local/bin/haddock
configure: Using ld found on system at: /usr/bin/ld
configure: No pfesetup found
configure: Using ranlib found on system at: /usr/bin/ranlib
configure: Using runghc found on system at: /Users/thorkilnaur/tn/install/ghc-6.6-for-buildbot-20070221_1000/bin/runghc
configure: Using runhugs found on system at: /Users/thorkilnaur/tn/HugsCvsRepository/hugs98/src/runhugs
configure: Using tar found on system at: /usr/bin/tar
configure: Using happy: /usr/local/bin/happy
configure: Using alex: /usr/local/bin/alex
configure: Using hsc2hs: /Users/thorkilnaur/tn/install/ghc-6.6-for-buildbot-20070221_1000/bin/hsc2hs
configure: No c2hs found
configure: No cpphs found
configure: No greencard found
make[1]: *** [stamp/configure.library.install.readline] Error 1
make: *** [install] Error 1

The problem seems to be that the --with-readline-includes and --with-readline-libraries configure arguments are not passed to the Cabal configure which is carried out during installation. The attached patch solves the problem in my case, but I am not an expert in these matters, so entirely different things may be called for.

Best regards Thorkil

Trac metadata
Trac field Value
Version 6.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information