NetBSD Problem Report #43746
From www@NetBSD.org Thu Aug 12 10:21:15 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 7F8C963BBBA
for <gnats-bugs@gnats.NetBSD.org>; Thu, 12 Aug 2010 10:21:15 +0000 (UTC)
Message-Id: <20100812102115.085B963B883@www.NetBSD.org>
Date: Thu, 12 Aug 2010 10:21:15 +0000 (UTC)
From: edorofeyev@gmail.com
Reply-To: edorofeyev@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Compiler crash when building subversion-devel from pkgsrc
X-Send-Pr-Version: www-1.0
>Number: 43746
>Category: pkg
>Synopsis: Compiler crash when building subversion-devel from pkgsrc
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 12 10:25:01 +0000 2010
>Closed-Date: Tue May 28 07:22:15 +0000 2019
>Last-Modified: Tue May 28 07:22:15 +0000 2019
>Originator: Eugene Dorofeyev
>Release: 5.0
>Organization:
>Environment:
NetBSD netbsddns1 5.0 NetBSD 5.0 (GENERIC) #0: Sun Apr 26 18:50:08 UTC 2009 builds@b6.netbsd.org:/home/builds/ab/netbsd-5-0-RELEASE/i386/200904260229Z-obj/home/builds/ab/netbsd-5-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
The NetBSD server runs on VMware with the following configuration:
Processor 32 bit X 1.953 GHz
Memory 64 Mb
Hard Disk 5.00 Gb
Virtual Hardware version 7
Building of subversion-base package fails:
libtool: compile: cc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.6.21\" "-DPACKAGE_STRING=\"sqlite 3.6.21\"" -DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE=\"sqlite\" -DVERSION=\"3.6.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_READLINE=1 -I. -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -O2 -MT sqlite3.lo -MD -MP -MF .deps/sqlite3.Tpo -c sqlite3.c -fPIC -DPIC -o .libs/sqlite3.o
sqlite3.c: In function 'sqlite3_free_table':
sqlite3.c:83453: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.NetBSD.org/Misc/send-pr.html> for instructions.
gmake: *** [sqlite3.lo] Error 1
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/databases/sqlite3
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/databases/sqlite3
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/devel/subversion-base
>How-To-Repeat:
Installed & updated pkgsrc. Then
cd /usr/pkgsrc/devel/subversion-base
make
After a short period of time, compilation process stops with output written in Full Description.
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 14 Aug 2010 12:22:06 +0000
State-Changed-Why:
I feel it reached to memory limit.
Could you assigin more memory to VM, or add more swap, then try again?
From: "Eugene Dorofeyev" <edorofeyev@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/43746 (Compiler crash when building subversion-devel from
pkgsrc)
Date: Mon, 16 Aug 2010 10:43:23 +0300
I cannot assign more memory because its prepaid limit, but I will try to
extend some swap space, and then will try again.
I forgot to mention that I was using stable branch 2009Q4 (I guess; I
installed
NetBSD with pkgsrc at the end of the previous year).
After I switched to 2010Q2, and I also had problems with compilation
SQLite3.
But after some time I finally was able to build subversion-base.
I also made a mistake when titled "Compiler crash when building
subversion-devel
from pkgsrc", it was subversion-base.
On Sat, 14 Aug 2010 15:22:08 +0300, <obache@netbsd.org> wrote:
> Synopsis: Compiler crash when building subversion-devel from pkgsrc
>
> State-Changed-From-To: open->feedback
> State-Changed-By: obache@NetBSD.org
> State-Changed-When: Sat, 14 Aug 2010 12:22:06 +0000
> State-Changed-Why:
> I feel it reached to memory limit.
> Could you assigin more memory to VM, or add more swap, then try again?
>
>
From: "Eugene Dorofeyev" <edorofeyev@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/43746 (Compiler crash when building subversion-devel from
pkgsrc)
Date: Thu, 26 Aug 2010 17:22:37 +0300
I added 750 Mb to swap space by creating a file on disk as described in
http://www.netbsd.org/docs/misc/#adding-swap
I also modified /etc/fstab and rebooted the system.
After that I went to /usr/pkgsrc/devel/subversion-base, issued
make clean
make clean-depends
unset PKG_PATH
and typed make. The build error remained the same:
===> Building for sqlite3-3.6.23.1
if /bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"sqlite\"
-DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.6.23.1\"
-DPACKAGE_STRING=\"sqlite\ 3.6.23.1\"
-DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE=\"sqlite\"
-DVERSION=\"3.6.23.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1
-DHAVE_GMTIME_R=1 -DHAVE_READLINE=1 -I. -I. -I/usr/include
-DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -O2
-I/usr/include -MT sqlite3.lo -MD -MP -MF ".deps/sqlite3.Tpo" -c -o
sqlite3.lo sqlite3.c; \
then mv -f ".deps/sqlite3.Tpo" ".deps/sqlite3.Plo"; else rm -f
".deps/sqlite3.Tpo"; exit 1; fi
libtool: compile: cc -DPACKAGE_NAME=\"sqlite\"
-DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.6.23.1\"
"-DPACKAGE_STRING=\"sqlite 3.6.23.1\""
-DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE=\"sqlite\"
-DVERSION=\"3.6.23.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1
-DHAVE_GMTIME_R=1 -DHAVE_READLINE=1 -I. -DSQLITE_THREADSAFE=1
-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -O2 -MT sqlite3.lo -MD -MP -MF
.deps/sqlite3.Tpo -c sqlite3.c -fPIC -DPIC -o .libs/sqlite3.o
sqlite3.c: In function 'sqlite3_create_module':
sqlite3.c:86889: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.NetBSD.org/Misc/send-pr.html> for instructions.
gmake: *** [sqlite3.lo] Error 1
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/databases/sqlite3
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/databases/sqlite3
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/devel/subversion-base
On Sat, 14 Aug 2010 15:22:08 +0300, <obache@netbsd.org> wrote:
> Synopsis: Compiler crash when building subversion-devel from pkgsrc
>
> State-Changed-From-To: open->feedback
> State-Changed-By: obache@NetBSD.org
> State-Changed-When: Sat, 14 Aug 2010 12:22:06 +0000
> State-Changed-Why:
> I feel it reached to memory limit.
> Could you assigin more memory to VM, or add more swap, then try again?
>
>
State-Changed-From-To: feedback->open
State-Changed-By: obache@NetBSD.org
State-Changed-When: Fri, 27 Aug 2010 00:37:50 +0000
State-Changed-Why:
provided feedback.
State-Changed-From-To: open->feedback
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 13 Nov 2010 08:58:26 +0000
State-Changed-Why:
It's happend when try to build database/sqlite3, not subversion-base itself.
sqlite3 contains huge size (over 4M) souce code, so I feel that it is hard to
build with optimization on low memory environment.
Could you try to install database/sqlite3 with CFLAGS+=-O0 in /etc/mk.conf?
From: Eugene Dorofeyev <edorofeyev@gmail.com>
To: gnats-bugs@netbsd.org
Cc: obache@netbsd.org, pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,
gnats-admin@netbsd.org
Subject: Re: pkg/43746 (Compiler crash when building subversion-devel from pkgsrc)
Date: Sun, 20 Feb 2011 11:57:45 +0200
--0016e6daa93a6524c7049cb3c71d
Content-Type: text/plain; charset=ISO-8859-1
Yes, it works now. I run:
cd /usr/pkgsrc/databases/sqlite3
vi /etc/mk.conf, added line "CFLAGS+=-O0", then
make clean
make
make install
Compiled & installed without errors. The package sqlite3-3.6.23.1 appeared
in pkg_info list.
2010/11/13 <obache@netbsd.org>
> Synopsis: Compiler crash when building subversion-devel from pkgsrc
>
> State-Changed-From-To: open->feedback
> State-Changed-By: obache@NetBSD.org
> State-Changed-When: Sat, 13 Nov 2010 08:58:26 +0000
> State-Changed-Why:
> It's happend when try to build database/sqlite3, not subversion-base
> itself.
> sqlite3 contains huge size (over 4M) souce code, so I feel that it is hard
> to
> build with optimization on low memory environment.
>
> Could you try to install database/sqlite3 with CFLAGS+=-O0 in /etc/mk.conf?
>
>
>
>
--
Eugene Dorofeyev
(sent via Gmail)
--0016e6daa93a6524c7049cb3c71d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div>Yes, it works now. I run:</div><div><br></div><div>cd /usr/pkgsrc/data=
bases/sqlite3</div><div>vi /etc/mk.conf, added line "CFLAGS+=3D-O0&quo=
t;, then</div><div>make clean</div><div>make</div><div>make install</div><d=
iv>
<br></div><div>Compiled & installed without errors. The package sqlite3=
-3.6.23.1 appeared in pkg_info list.</div><div><br></div><br><div class=3D"=
gmail_quote">2010/11/13 <span dir=3D"ltr"><<a href=3D"mailto:obache@net=
bsd.org">obache@netbsd.org</a>></span><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;"><div class=3D"im">Synopsis: Compiler crash =
when building subversion-devel from pkgsrc<br>
<br>
</div>State-Changed-From-To: open->feedback<br>
<div class=3D"im">State-Changed-By: obache@NetBSD.org<br>
</div>State-Changed-When: Sat, 13 Nov 2010 08:58:26 +0000<br>
State-Changed-Why:<br>
It's happend when try to build database/sqlite3, not subversion-base it=
self.<br>
sqlite3 contains huge size (over 4M) souce code, so I feel that it is hard =
to<br>
build with optimization on low memory environment.<br>
<br>
Could you try to install database/sqlite3 with CFLAGS+=3D-O0 in /etc/mk.con=
f?<br>
<br>
<br>
<br>
</blockquote></div><br><br clear=3D"all"><br>-- <br>Eugene Dorofeyev<br>(se=
nt via Gmail)<br>
--0016e6daa93a6524c7049cb3c71d--
State-Changed-From-To: feedback->open
State-Changed-By: obache@NetBSD.org
State-Changed-When: Mon, 21 Feb 2011 11:02:58 +0000
State-Changed-Why:
got feedback. Can pkgsrc do something for this issue?
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/43746 (Compiler crash when building subversion-devel from
pkgsrc)
Date: Tue, 22 Feb 2011 04:15:18 +0000
On Mon, Feb 21, 2011 at 11:03:00AM +0000, obache@NetBSD.org wrote:
> State-Changed-Why:
> got feedback. Can pkgsrc do something for this issue?
Is there any way to detect low-memory machines? Should we add one? It's
not the first time people have had random trouble from running out of
memory while compiling. On the other hand, what counts as low memory?
I guess it could be as simple as PKGSRC_CONSERVE_MEMORY=yes in mk.conf...
--
David A. Holland
dholland@netbsd.org
State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Tue, 28 May 2019 07:22:15 +0000
State-Changed-Why:
ICompiler running out of memory. Not an issue in subversion itself.
Submitter says the workaround worked.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.