Ticket #1352 (closed bug: fixed)

Opened 6 years ago

Last modified 5 years ago

Fix configure of readline performed as part of GHC install

Reported by: thorkilnaur Owned by:
Priority: normal Milestone:
Component: Build System Version: 6.7
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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

Attachments

fix_configure_of_readline_performed_as_part_of_GHC_install_1352.patch.gz Download (122.2 KB) - added by thorkilnaur 6 years ago.
Fix configure of readline performed as part of GHC install

Change History

Changed 6 years ago by thorkilnaur

Fix configure of readline performed as part of GHC install

Changed 6 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

This should be fixed now that we don't reconfigure when installing.

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.