NetBSD Problem Report #38440

From daniel.neri@sigicom.se  Wed Apr 16 11:46:17 2008
Return-Path: <daniel.neri@sigicom.se>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id F019B63B293
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 16 Apr 2008 11:46:16 +0000 (UTC)
Message-Id: <20080416114612.21856.qmail@dual.hq.sigicom.net>
Date: 16 Apr 2008 11:46:12 -0000
From: Daniel Neri <daniel.neri@sigicom.com>
To: gnats-bugs@gnats.NetBSD.org
Subject: Build of lang/ghc fails if $WRKOBJDIR is used
X-Send-Pr-Version: 3.95

>Number:         38440
>Category:       pkg
>Synopsis:       Build of lang/ghc fails if $WRKOBJDIR is used
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kristerw
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 16 11:50:01 +0000 2008
>Last-Modified:  Mon Apr 21 13:51:55 +0000 2008
>Originator:     Daniel Neri
>Release:        NetBSD 4.0_STABLE
>Organization:
Daniel Neri <daniel.neri@sigicom.com>
Sigicom AB, Stockholm, Sweden
>Environment:
System: NetBSD dual.hq.sigicom.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC.MP) #2: Thu Feb 7 15:22:56 CET 2008 dne@dual.hq.sigicom.net:/scratch/usr.obj/sys/arch/i386/compile/GENERIC.MP i386
Architecture: i386
Machine: i386
>Description:
	Build of lang/ghc fails during stage1 if $WRKOBJDIR is set, e.g. in /etc/mk.conf.

>How-To-Repeat:
$ grep WRKOBJDIR /etc/mk.conf
WRKOBJDIR?=/scratch/pkgsrc.obj

$ cd /usr/pkgsrc/lang/ghc
$ make

[lots of output snipped...]
/scratch/pkgsrc.obj/lang/ghc/work/ghc-6.4.2/ghc/compiler/ghc-inplace -H16m -O  -istage1/utils  -istage1/basicTypes  -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename  -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn  -istage1/vectorise  -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn  -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling  -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface  -istage1/cmm  -istage1/nativeGen -Wall -fno-warn-name-shadowing -fno-warn-orphans -Istage1 -cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT -i../compat -ignore-package Cabal    -c stranal/StrictAnal.lhs -o stage1/stranal/StrictAnal.o  -ohi stage1/stranal/StrictAnal.hi
<<ghc: 26304808 bytes, 8 GCs, 1454548/2816780 avg/max bytes residency (2 samples), 19M in use, 0.00 INIT (0.00 elapsed), 0.19 MUT (0.50 elapsed), 0.04 GC (0.06 elapsed) :ghc>>
gmake[1]: *** No rule to make target `stage1//scratch/pkgsrc.obj/lang/ghc/work/.buildlink/include/gmp.h', needed by `stage1/parser/cutils.o'.  Stop.
gmake: *** [stage1] Error 1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/lang/ghc
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/ghc


>Fix:
Unknown, except leaving $WRKOBJDIR unset.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->kristerw
Responsible-Changed-By: reed@NetBSD.org
Responsible-Changed-When: Mon, 21 Apr 2008 13:51:55 +0000
Responsible-Changed-Why:
Assign to maintainer.


>Unformatted:
 pkgsrc from CVS, updated 2008-04-16.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.