NetBSD Problem Report #37019

From asau@hotbox.ru  Sat Sep 22 21:31:18 2007
Return-Path: <asau@hotbox.ru>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 9B96D63B86C
	for <gnats-bugs@gnats.netbsd.org>; Sat, 22 Sep 2007 21:31:18 +0000 (UTC)
Message-Id: <877imimlpe.fsf@hotbox.ru>
Date: Sun, 23 Sep 2007 01:31:09 +0400
From: Aleksej Saushev <asau@inbox.ru>
Reply-To: Aleksej Saushev <asau@inbox.ru>
To: gnats-bugs@NetBSD.org
Subject: [fix] lang/stalin doesn't build in current

>Number:         37019
>Category:       pkg
>Synopsis:       lang/stalin does not build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    asau
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 22 21:35:00 +0000 2007
>Last-Modified:  Sat Apr 11 13:33:10 +0000 2009
>Originator:     Aleksej Saushev <asau@inbox.ru>
>Release:        NetBSD 4.99.31
>Organization:
>Environment:
System: NetBSD asau.local 4.99.31 NetBSD 4.99.31 (KERN) #1: Sat Sep 22 22:47:48 MSD 2007 bsd@asau.local:/usr/obj/sys/arch/i386/compile/KERN i386
Architecture: i386
Machine: i386
>Description:
	lang/stalin does not build in current pkgsrc, and even with workaround
	it fails with current GCC
>How-To-Repeat:
	cd lang/gcc && make
>Fix:

Use the following command:

	make CFLAGS=-O0 SUBST_CLASSES=fix-gc SUBST_STAGE.fix-gc=post-patch SUBST_FILES.fix-gc=stalin-ia32.c SUBST_SED.fix-gc='-e "s,<gc.h>,<gc/gc.h>,"'

Location of boehm-gc header file has changed, it's now "gc/gc.h".

Note CFLAGS. I tried -O3 and -O2 on my system, cc takes long to work,
consuming much of swap space. I didn't wait till it ends, thus -O0.

>Release-Note:

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/37019: [fix] lang/stalin doesn't build in current
Date: Sun, 23 Sep 2007 17:18:19 +0900

 On Sun, 23 Sep 2007 06:35:00 +0900, Aleksej Saushev <asau@inbox.ru> wrot=
 e:

 > Location of boehm-gc header file has changed, it's now "gc/gc.h".

 Added follwing line to lang/stalin/Makefile also fixes this problem?

 CPPFLAGS+=3D	-I${BUILDLINK_PREFIX.boehm-gc}/include/gc

 -- =

 "Of course I love NetBSD":-)
 OBATA Akio / obache@NetBSD.org

From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/37019 CVS commit: pkgsrc/lang/stalin
Date: Sun, 23 Sep 2007 15:30:24 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sun Sep 23 15:30:23 UTC 2007

 Modified Files:
 	pkgsrc/lang/stalin: Makefile

 Log Message:
 Fixed build problem reported by Aleksej Saushev in PR 37019.
 Location of boehm-gc header files has been changed.


 To generate a diff of this commit:
 cvs rdiff -r1.30 -r1.31 pkgsrc/lang/stalin/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: pkgsrc-bugs@netbsd.org
Subject: Re: pkg/37019: [fix] lang/stalin doesn't build in current
Date: Mon, 24 Sep 2007 21:38:56 +0900

 On Mon, 24 Sep 2007 00:35:04 +0900, Manuel Bouyer <bouyer@antioche.eu.or=
 g> wrote:

 > On Sun, Sep 23, 2007 at 02:33:16PM +0400, Aleksej Saushev wrote:
 >> "OBATA Akio" <obache@netbsd.org> writes:
 >>
 >> >  Added follwing line to lang/stalin/Makefile also fixes this proble=
 m?
 >> >
 >> >  CPPFLAGS+=3D3D	-I${BUILDLINK_PREFIX.boehm-gc}/include/gc
 >>
 >> Except for optimisation flags, I still have to add "CFLAGS=3D-O0".
 >
 > I can confirm this. In the i386 and amd64 bulk builds I have to kill
 > the cc process, because it seems to make no progress after several 10s=

 > of hours running.
 >
 > more specifically, it builds fine on i386 2.1 and 3.1, it fails on
 > i386 4.0 and amd64 2.1, 3.1 and 4.0

 Then, Is it OK to commit followin patch?

 Index: Makefile
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /cvsroot/pkgsrc/lang/stalin/Makefile,v
 retrieving revision 1.31
 diff -u -r1.31 Makefile
 --- Makefile    23 Sep 2007 15:30:23 -0000      1.31
 +++ Makefile    24 Sep 2007 12:31:41 -0000
 @@ -17,8 +17,8 @@

   .include "../../mk/bsd.prefs.mk"

 -.if (${MACHINE_ARCH} =3D=3D "sparc")
 -CFLAGS:=3D               ${CFLAGS:C/-O[0-9]*/-O0/}
 +.if (${MACHINE_ARCH} =3D=3D "sparc") || (${MACHINE_ARCH} =3D=3D "amd64"=
 ) || (${MACHINE_ARCH} =3D=3D "i386" && ${OS_VERSION:R} >=3D 4)
 +BUILDLINK_TRANSFORM+=3D  rename:-O[0-9]*:-O0
   .endif
   CPPFLAGS+=3D             -I${BUILDLINK_PREFIX.boehm-gc}/include/gc

Responsible-Changed-From-To: pkg-manager->asau
Responsible-Changed-By: asau@NetBSD.org
Responsible-Changed-When: Sat, 11 Apr 2009 13:33:10 +0000
Responsible-Changed-Why:
Take.


>Unformatted:

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.