GHC 6.8.1 Build Failure on Mac OS X Intel 10.4.10

kenny lu haskellmail at gmail.com
Thu Nov 15 10:10:01 EST 2007


Hi,
initially, I faced the same problem. i.e.,
 ghc-pkg: dependency readline doesn't exist (use --force to override)

Thus, I tried
./configure --with-readline-include=/opt/local/include/readline --
with-readline-libraries=/opt/local/lib

and build again, then I hit another error,



Preprocessing library readline-1.0.1.0...
Readline.hsc: In function 'main':
Readline.hsc:723: error: 'UNDO_DELETE' undeclared (first use in this
function)
Readline.hsc:723: error: (Each undeclared identifier is reported only once
Readline.hsc:723: error: for each function it appears in.)
Readline.hsc:724: error: 'UNDO_INSERT' undeclared (first use in this
function)
Readline.hsc:725: error: 'UNDO_BEGIN' undeclared (first use in this
function)
Readline.hsc:726: error: 'UNDO_END' undeclared (first use in this function)
Readline.hsc:1089: error: 'MULT_MATCH' undeclared (first use in this
function)
Readline.hsc:1112: error: 'SINGLE_MATCH' undeclared (first use in this
function)
compiling dist/build/System/Console/Readline_hsc_make.c failed
command was: gcc -c -D__GLASGOW_HASKELL__=608 -I/Users/luzm/ghc-6.8.1/includes
-I/Users/luzm/ghc-6.8.1/gmp/gmpbuild -D__GLASGOW_HASKELL__=608 -Iinclude
dist/build/System/Console/Readline_hsc_make.c -o
dist/build/System/Console/Readline_hsc_make.o
make[1]: *** [readline/GNUmakefile] Error 1
make: *** [stage1] Error 2



I am using fink instead of darwin port, I have readline installed.

zhuo-ming-lus-computer:~ luzm$ fink list *readline*
Information about 1733 packages read in 1 seconds.
     readline         4.3-1028     Comfortable terminal input library
 i   readline-shlibs  4.3-1028     Comfortable terminal input library
 i   readline5        5.0-1004     Comfortable terminal input library
 i   readline5-sh...  5.0-1004     Comfortable terminal input library


I am wondering whether I am using the right version of libreadline.

zhuo-ming-lus-computer:~ luzm$ ls -l /opt/local/lib
total 4584
-r-xr-xr-x   1 root  admin  416860 Jan 10  2007 libreadline.5.0.dylib
-r-xr-xr-x   1 root  admin  448032 Jan 10  2007 libreadline.5.1.dylib
-r-xr-xr-x   1 root  admin  448032 Jan 10  2007 libreadline.5.dylib
-rw-r--r--   1 root  admin  573692 Jan 10  2007 libreadline.a
-r-xr-xr-x   1 root  admin  448032 Jan 10  2007 libreadline.dylib



Regards,
Kenny








On 11/13/07, Simon Marlow <simonmarhaskell at gmail.com> wrote:
>
> Denis Bueno wrote:
> > On Nov 9, 2007 4:38 AM, Bjorn Bringert <bringert at cs.chalmers.se> wrote:
> >> I have this in my ~/.profile so that I don't have to keep giving
> >> flags to configure for every single thing I build against MacPorts
> >> libraries:
> >>
> >> export CPATH=/opt/local/include
> >> export LIBRARY_PATH=/opt/local/lib
> >> export LD_LIBRARY_PATH=/opt/local/lib
> >
> > Thanks, Paul and Bjorn.  Indeed, this did the trick.  Any thoughts why
> > ./configure claimed to have discovered readline on its own, but then
> > was unable to use it?  Or maybe, for some reason, the message is
> > unrelated?
>
> There are two separate tests: (1) whether your installed GHC claims to
> have
> a readline package, which succeeded, and (2) whether the C library for
> readline can be found, and this latter test failed.  The build itself
> should not have failed though - it should just have built GHC without
> readline support.  I think I fixed the bug that caused this recently, and
> I'll make sure the fix gets merged into 6.8.2.
>
> Cheers,
>         Simon
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20071115/9b954908/attachment-0001.htm


More information about the Glasgow-haskell-users mailing list