Subject: pkg/37019: [fix] lang/stalin doesn't build in current
To: None <,,>
From: Aleksej Saushev <>
List: pkgsrc-bugs
Date: 09/22/2007 21:35:00
>Number:         37019
>Category:       pkg
>Synopsis:       lang/stalin does not build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 22 21:35:00 +0000 2007
>Originator:     Aleksej Saushev <>
>Release:        NetBSD 4.99.31
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
	lang/stalin does not build in current pkgsrc, and even with workaround
	it fails with current GCC
	cd lang/gcc && make

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.