NetBSD Problem Report #43146

From www@NetBSD.org  Sat Apr 10 12:18:09 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 C5EFE63BCF6
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 10 Apr 2010 12:18:09 +0000 (UTC)
Message-Id: <20100410121809.4593563B8BC@www.NetBSD.org>
Date: Sat, 10 Apr 2010 12:18:09 +0000 (UTC)
From: cheusov@tut.by
Reply-To: cheusov@tut.by
To: gnats-bugs@NetBSD.org
Subject: devel/xulrunner fails to build on Linux
X-Send-Pr-Version: www-1.0

>Number:         43146
>Category:       pkg
>Synopsis:       devel/xulrunner fails to build on Linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tnn
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 10 12:20:01 +0000 2010
>Closed-Date:    Sun May 02 03:02:14 +0000 2010
>Last-Modified:  Sun May 02 03:02:14 +0000 2010
>Originator:     Aleksey Cheusov
>Release:        no NetBSD
>Organization:
home
>Environment:
Linux syn-proc5 2.6.26-bpo.2-vserver-686-bigmem #1 SMP Fri Apr 17 23:23:22 UTC 2009 i686 GNU/Linux

>Description:
Building devel/xulrunner fails at "build" stage like the following.
As a result firefox cannot be built.

Full report is here:
http://mova.org/~cheusov/pub/pkgsrc-distbb/Linux/current/logs/20100403.0159/devel_xulrunner_xulrunner-1.9.2.3/stage_build.html


cd Linux2.6_x86_glibc_PTH_OPT.OBJ ; sh "/tmp/obj_pkgsrc/devel/xulrunner/work/mozilla-1.9.2
/security/nss/cmd/shlibsign/."/sign.sh "/tmp/obj_pkgsrc/devel/xulrunner/work/mozilla-1.9.2
/dist" \
        "/tmp/obj_pkgsrc/devel/xulrunner/work/mozilla-1.9.2/security/nss/cmd/shlibsign/Lin
ux2.6_x86_glibc_PTH_OPT.OBJ" Linux \
        "/tmp/obj_pkgsrc/devel/xulrunner/work/mozilla-1.9.2/dist/lib" "/tmp/obj_pkgsrc/dev
el/xulrunner/work/mozilla-1.9.2/dist/lib/libsoftokn3.so"
/tmp/obj_pkgsrc/devel/xulrunner/work/mozilla-1.9.2/security/nss/cmd/shlibsign/Linux2.6_x86
_glibc_PTH_OPT.OBJ/shlibsign -v -i /tmp/obj_pkgsrc/devel/xulrunner/work/mozilla-1.9.2/dist
/lib/libsoftokn3.so
/tmp/obj_pkgsrc/devel/xulrunner/work/mozilla-1.9.2/security/nss/cmd/shlibsign/./sign.sh: l
ine 2: 26003 Segmentation fault      "${2}"/shlibsign -v -i "${5}"
gmake[4]: *** [/tmp/obj_pkgsrc/devel/xulrunner/work/mozilla-1.9.2/dist/lib/libsoftokn3.chk
] Error 139
gmake[4]: Leaving directory `/tmp/obj_pkgsrc/devel/xulrunner/work/mozilla-1.9.2/security/nss/cmd/shlibsign'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/tmp/obj_pkgsrc/devel/xulrunner/work/mozilla-1.9.2/security/manager'
gmake[2]: *** [libs_tier_toolkit] Error 2
gmake[2]: Leaving directory `/tmp/obj_pkgsrc/devel/xulrunner/work/mozilla-1.9.2'
gmake[1]: *** [tier_toolkit] Error 2
gmake[1]: Leaving directory `/tmp/obj_pkgsrc/devel/xulrunner/work/mozilla-1.9.2'
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /srv/pkgsrc/devel/xulrunner
*** Error code 1

>How-To-Repeat:
Try to build devel/xulrunner on Debian/etch.

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->tnn
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 10 Apr 2010 13:29:12 +0000
Responsible-Changed-Why:
Over to maintainer
(if you can't handle it, please assign it to linux-pkg-people, thanks)


From: Tobias Nygren <tnn@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/43146: devel/xulrunner fails to build on Linux
Date: Sun, 11 Apr 2010 09:30:01 +0200

  >> >How-To-Repeat:
  >> Try to build devel/xulrunner on Debian/etch.

 I went to the debian site and noticed debian "etch" is quite old, even
 by debian standards. I'm fairly certain I tried the firefox 3.6 package
 on debian "lenny" before I imported it, so apt-get dist-upgrade is the
 best advice I can give for the time being.

From: Stefan Schaeckeler <schaecsn@gmx.net>
To: gnats-bugs@NetBSD.org, tnn@NetBSD.org, cheusov@tut.by
Cc: 
Subject: Re: pkg/43146: devel/xulrunner fails to build on Linux
Date: Tue, 13 Apr 2010 21:18:44 -0700 (PDT)

 Compiliation also stops at the same point under Slackware linux.

 That's how the slackware folks are compiling devel/xulrunnerhttp://repository.slacky.eu/slackware-13.0/network/xulrunner/1.9.1.3/src/xulrunner.SlackBuild

 After make extract (or make patch?), I used a slighly modified configuration line and xulrunner compiles fine:

  ./configure  --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --enable-shared --with-default-mozilla-five-home=/usr/lib/XXX  --enable-application=xulrunner --enable-svg --enable-svg-renderer=cairo --enable-canvas --enable-default-toolkit=cairo-gtk2 --enable-system-cairo --enable-xft --enable-pango --enable-extensions=default --enable-xprint --enable-xinerama --enable-crypto --enable-system-sqlite --disable-accessibility --disable-short-wchar --disable-installer --disable-updater --disable-tests --disable-pedantic --disable-mailnews --disable-short-wchar --disable-javaxpcom --with-system-zlib  --with-system-mng --with-system-bz2 --enable-nspr-autoconf --without-system-nspr --with-pthreads --with-x --program-prefix= --program-suffix=   --disable-gnomevfs --disable-dbus --disable-gnomeui  --disable-libnotify  --disable-crashreporter

 (I added the last 4 arguments to disable gnome and a dependency with curl)


 To contrast, this is pkgsrc configuration line, e.g. the one that causese the segmentation fault:

 ./configure  --enable-application=xulrunner --enable-libxul --disable-tests --disable-pedantic --enable-crypto --enable-optimize=-O2 --with-pthreads --disable-javaxpcom --enable-default-toolkit=cairo-gtk2 --enable-svg --enable-mathml --enable-system-cairo --with-system-jpeg --with-system-zlib --with-system-bz2 --enable-system-sqlite --disable-crashreporter --disable-libnotify --disable-necko-wifi --disable-gnomevfs --disable-dbus --disable-gnomeui --disable-libnotify --enable-jemalloc --disable-debug --enable-jit --with-libintl-prefix=/usr/current --without-libiconv-prefix --prefix=/usr/current --build=i386-slackware-linux --host=i386-slackware-linux --mandir=/usr/current/man --enable-threadsafe --with-nspr-cflags='-I/tmp/current/devel/xulrunner/work/mozilla-1.9.2/dist/include/nspr' --with-nspr-libs='-Wl,-R/usr/current/lib/${MOZILLA_PKG_NAME} -L/tmp/current/devel/xulrunner/work/mozilla-1.9.2/dist/lib -lplds4 -lplc4 -lnspr4 -L/usr/lib -L/usr/current/lib/python2.6/config -L/usr
  /current/lib -lpthread -ldl' --with-dist-dir=../../dist --includedir=/tmp/current/devel/xulrunner/work/mozilla-1.9.2/dist/include --bindir=/tmp/current/devel/xulrunner/work/mozilla-1.9.2/dist/bin --libdir=/tmp/current/devel/xulrunner/work/mozilla-1.9.2/dist/lib --with-sync-build-files=/tmp/current/devel/xulrunner/work/mozilla-1.9.2 --enable-jemalloc --cache-file=../.././config.cache --srcdir=.


 I don't know which options cause the segmentation fault, though.

 Best, Stefan Schäckeler

From: Tobias Nygren <tnn@NetBSD.org>
To: schaecsn@gmx.net
Cc: gnats-bugs@NetBSD.org, cheusov@tut.by
Subject: Re: pkg/43146: devel/xulrunner fails to build on Linux
Date: Wed, 14 Apr 2010 08:58:37 +0200

 Could you guys try to complile without the jemalloc and mozilla-jit
 options?

From: Aleksey Cheusov <vle@gmx.net>
To: gnats-bugs@NetBSD.org
Cc: tnn@NetBSD.org,  gnats-admin@netbsd.org,  pkgsrc-bugs@netbsd.org
Subject: Re: pkg/43146: devel/xulrunner fails to build on Linux
Date: Wed, 14 Apr 2010 18:32:43 +0300

 >  Could you guys try to complile without the jemalloc and mozilla-jit
 >  options?

 The same.

 Cmd: bmake package PKG_OPTIONS.xulrunner='-mozilla-jemalloc -mozilla-jit' USE_DESTDIR=yes

 -- 
 Best regards, Aleksey Cheusov.

From: Stefan Schaeckeler <schaecsn@gmx.net>
To: tnn@NetBSD.org
Cc: gnats-bugs@NetBSD.org, cheusov@tut.by
Subject: Re: pkg/43146: devel/xulrunner fails to build on Linux
Date: Wed, 14 Apr 2010 09:31:15 -0700 (PDT)

 > Could you guys try to complile without the jemalloc and mozilla-jit
 > options?

 I compiled xulrunner via

 # bmake PKG_OPTIONS.xulrunner="-mozilla-jemalloc -mozilla-jit"

 The problem remains. 


 May I point out that shlibsign crashes. That seems to be a helper-program and perhaps unrelated to jemalloc and jit.


 - Stefan

From: Bernd Ernesti <netbsd@lists.veego.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/43146: devel/xulrunner fails to build on Linux
Date: Wed, 14 Apr 2010 21:44:20 +0200

 On Wed, Apr 14, 2010 at 04:35:01PM +0000, Stefan Schaeckeler wrote:
 [..]
 >  May I point out that shlibsign crashes. That seems to be a helper-program and perhaps unrelated to jemalloc and jit.

 IMHO that crashes on NetBSD too but is not so problematic there.
 I see a core dump on the console when I build some mozilla packages.

 Bernd

From: Bernd Ernesti <netbsd@lists.veego.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/43146: devel/xulrunner fails to build on Linux
Date: Wed, 14 Apr 2010 23:14:37 +0200

 On Thu, Apr 15, 2010 at 12:48:06AM +0400, Aleksej Saushev wrote:
 > Bernd Ernesti <netbsd@lists.veego.de> writes:
 > 
 > >  On Wed, Apr 14, 2010 at 04:35:01PM +0000, Stefan Schaeckeler wrote:
 > >  [..]
 > >  >  May I point out that shlibsign crashes. That seems to be a helper-program and perhaps unrelated to jemalloc and jit.
 > >  
 > >  IMHO that crashes on NetBSD too but is not so problematic there.
 > >  I see a core dump on the console when I build some mozilla packages.
 > 
 > JFYI, xulrunner is overly sensitive to optimization flags,
 > if you use non-default CFLAGS, turn them off for xulrunner.

 I do NOT set any CFLAGS.

 Bernd

 P.S. You have to reply to gnats-bugs@NetBSD.org and not to pkgsrc-bugs@NetBSD.org to
 get your reply into the gnats db.

From: Tobias Nygren <tnn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43146 CVS commit: pkgsrc/devel/xulrunner
Date: Wed, 21 Apr 2010 15:26:00 +0000

 Module Name:	pkgsrc
 Committed By:	tnn
 Date:		Wed Apr 21 15:26:00 UTC 2010

 Modified Files:
 	pkgsrc/devel/xulrunner: distinfo
 	pkgsrc/devel/xulrunner/patches: patch-me

 Log Message:
 Disable assembly routines in freebl on Linux.
 This works around the PR pkg/43146 crash, at least on debian 5.0/i386.


 To generate a diff of this commit:
 cvs rdiff -u -r1.29 -r1.30 pkgsrc/devel/xulrunner/distinfo
 cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/devel/xulrunner/patches/patch-me

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

State-Changed-From-To: open->feedback
State-Changed-By: tnn@NetBSD.org
State-Changed-When: Wed, 21 Apr 2010 15:35:32 +0000
State-Changed-Why:
commited a workaround


State-Changed-From-To: feedback->open
State-Changed-By: tnn@NetBSD.org
State-Changed-When: Fri, 23 Apr 2010 12:27:22 +0000
State-Changed-Why:
Got feedback. Fix is good, but there are PLIST problems.


From: Tobias Nygren <tnn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43146 CVS commit: pkgsrc
Date: Mon, 26 Apr 2010 12:38:00 +0000

 Module Name:	pkgsrc
 Committed By:	tnn
 Date:		Mon Apr 26 12:38:00 UTC 2010

 Modified Files:
 	pkgsrc/mail/thunderbird: distinfo
 	pkgsrc/mail/thunderbird/patches: patch-me
 	pkgsrc/www/seamonkey: distinfo
 	pkgsrc/www/seamonkey/patches: patch-me

 Log Message:
 replicate the PR pkg/43146 fix for the other mozilla products


 To generate a diff of this commit:
 cvs rdiff -u -r1.65 -r1.66 pkgsrc/mail/thunderbird/distinfo
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/mail/thunderbird/patches/patch-me
 cvs rdiff -u -r1.48 -r1.49 pkgsrc/www/seamonkey/distinfo
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/seamonkey/patches/patch-me

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

State-Changed-From-To: open->feedback
State-Changed-By: tnn@NetBSD.org
State-Changed-When: Tue, 27 Apr 2010 08:55:19 +0000
State-Changed-Why:
Ok to close this?


From: Aleksey Cheusov <vle@gmx.net>
To: gnats-bugs@NetBSD.org
Cc: tnn@NetBSD.org,  pkgsrc-bugs@netbsd.org,  gnats-admin@netbsd.org
Subject: Re: pkg/43146 (devel/xulrunner fails to build on Linux)
Date: Sat, 01 May 2010 07:27:47 +0300

 > Synopsis: devel/xulrunner fails to build on Linux

 > State-Changed-From-To: open->feedback
 > State-Changed-By: tnn@NetBSD.org
 > State-Changed-When: Tue, 27 Apr 2010 08:55:19 +0000
 > State-Changed-Why:
 > Ok to close this?

 Yes. Thanks.

 -- 
 Best regards, Aleksey Cheusov.

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 02 May 2010 03:02:14 +0000
State-Changed-Why:
confirmed fixed, thanks.


>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.