Subject: pkg/33189: devel/clisp fails to build for amd64 (And probably alpha)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <martijnb@atlas.ipv6.stack.nl>
List: pkgsrc-bugs
Date: 04/04/2006 08:15:01
>Number:         33189
>Category:       pkg
>Synopsis:       devel/clisp fails to build for amd64 (And probably alpha)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 04 08:15:01 +0000 2006
>Originator:     martijnb@atlas.ipv6.stack.nl
>Release:        NetBSD 3.99.17
>Organization:
	
>Environment:
	
	
System: NetBSD atlas.ipv6.stack.nl 3.99.17 NetBSD 3.99.17 (ATLAS) #2: Tue Mar 21 19:50:15 CET 2006 martijnb@atlas.ipv6.stack.nl:/usr/obj/sys/arch/amd64/compile/ATLAS amd64
Architecture: x86_64
Machine: amd64
>Description:
	devel/clisp fails to build for amd64. After its initial build, it'll 
	die:
[...]

cp -p cfgunix.lisp config.lisp
chmod +w config.lisp
echo '(setq *clhs-root-default* "http://www.lisp.org/HyperSpec/")' >> config.lisp
./lisp.run -B . -N locale -Efile UTF-8 -Eterminal UTF-8 -Emisc 1:1 -norc -m 1400KW -x "(and (load \"init.lisp\") (sys::%saveinitmem) (ext::exit)) (ext::exit t)"
Cannot map memory to address 0x4000000000000 .
[spvw_mmap.d:359] errno = EFBIG: File too large.
./lisp.run: Not enough memory for Lisp.
*** Error code 1

>How-To-Repeat:
	build clisp on an amd64 and watch it fail.
>Fix:
	Some googling revealed that disabling mmap support should help. This
was also suggested for alpha. See the diff.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/clisp/Makefile,v
retrieving revision 1.51
diff -r1.51 Makefile
30a31,37
> 
> # (ab)use MODULES to disable mmap too, as this will automagically fix the
> # makemake call
> .if ${MACHINE_ARCH:Malpha} || ${MACHINE_ARCH:Mamd64} || ${MACHINE_ARCH:Mx86_64}
> MODULES+=		--disable-mmap
> .endif
> 
31a39
> 

>Unformatted: