ports/107380: lang/ghc fails to properly find readline and misbuilds

Brandon S Allbery KF8NH allbery at ece.cmu.edu
Sun Dec 31 20:00:36 UTC 2006


>Number:         107380
>Category:       ports
>Synopsis:       lang/ghc fails to properly find readline and misbuilds
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 31 20:00:30 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Brandon S Allbery KF8NH
>Release:        6.2-PRERELEASE
>Organization:
Carnegie Mellon University
>Environment:
FreeBSD rushlight.kf8nh.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #4: Mon Dec 25 01:38:05 EST 2006     root at rushlight.kf8nh.com:/usr/obj/usr/src/sys/TIRUN  i386
>Description:
The lang/ghc port builds ghc (which is written in ghc) by using a minimal bootstrap compiler distribution.  The ghc build is patched to use this uninstalled bootstrap compiler "in place".  Unfortunately, this patching is incomplete; the configure script in the ghc/ subdirectory wants to run the ghc-pkg command from the bootstrap compiler, but fails to find it.  This results in ghc building with incomplete readline support, so that running ghci results in a prompt in raw tty mode with no line editing capabilities.  (In a proper bootstrap situation, building the stage1 compiler would be followed by building stage2 and stage3; these later stages do not use the bootstrap ghc-pkg, so would correctly detect readline.)

>How-To-Repeat:
cd /usr/ports/lang/ghc
make install clean
# hash -r or rehash as needed
ghci
>Fix:
There are two possible ways to fix this:  patch ghc/configure to run the bootstrap ghc-pkg, or arrange for bootstrap ghc-pkg to be in $PATH.  (Presumably this also requires something to be done about libgmp.so.6, but that's also true for the bootstrap ghc itself.)  It's up to the port maintainer to decide which is preferable.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list