Subject: pkg/33377: gmake 3.81 won't build ghc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <dholland@eecs.harvard.edu>
List: pkgsrc-bugs
Date: 04/27/2006 15:10:01
>Number:         33377
>Category:       pkg
>Synopsis:       gmake 3.81 won't build ghc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 27 15:10:00 +0000 2006
>Originator:     David A. Holland
>Release:        NetBSD 3.99.10 (-20051026) (pkgsrc of 20060425)
>Organization:
>Environment:
	
	
System: NetBSD tanaqui 3.99.10 NetBSD 3.99.10 (TANAQUI) #3: Wed Oct 26 18:52:27 EDT 2005 root@tanaqui:/usr/src/sys/arch/i386/compile/TANAQUI i386
Architecture: i386
Machine: i386
>Description:

gmake 3.81 (just committed to pkgsrc) fails to build lang/ghc; it goes
into some kind of pathological tree search. There's some reason to
suspect that it might actually finish if left for long enough;
however, "long enough", if it exists, appears to be well over 12 hours
even on a reasonably fast machine.

The issue is known to the gmake maintainers:

   http://savannah.gnu.org/bugs/?func=detailitem&item_id=15584

but they don't seem to have fixed it in time for the 3.81 release.

>How-To-Repeat:

	cd /usr/pkgsrc/devel/gmake && make update
	cd /usr/pkgsrc/lang/ghc && make

	and when the build seems to stop making progress, use ps and
	watch gmake rack up cpu time. (It takes a while to get to the
	necessary point.)

>Fix:

Reverting to gmake 3.80nb5 cures the problem.

There's some chance that updating to ghc 6.4.2 might also, but it's
not too likely. (I haven't tried this, because it's not entirely
trivial.)

>Unformatted: