NetBSD Problem Report #51927

From www@NetBSD.org  Mon Jan 30 20:01:04 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id F33FF7A170
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 30 Jan 2017 20:01:03 +0000 (UTC)
Message-Id: <20170130200102.E63A17A2A9@mollari.NetBSD.org>
Date: Mon, 30 Jan 2017 20:01:02 +0000 (UTC)
From: roy@betweentheleaves.com
Reply-To: roy@betweentheleaves.com
To: gnats-bugs@NetBSD.org
Subject: firefox build fails with "debug" option
X-Send-Pr-Version: www-1.0

>Number:         51927
>Category:       pkg
>Synopsis:       firefox build fails with "debug" option
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    ryoon
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 30 20:05:00 +0000 2017
>Closed-Date:    Wed Mar 15 09:04:46 +0000 2017
>Last-Modified:  Wed Mar 15 09:04:46 +0000 2017
>Originator:     Roy Pittman
>Release:        NetBSD/amd64-7.0_STABLE, pkgsrc-2016Q4
>Organization:
>Environment:
NetBSD ratliff 7.0_STABLE NetBSD 7.0_STABLE (RATLIFF) #13: Sun Dec 25 16:29:39 MST 2016  roy@ratliff:/d0/build/netbsd-7/obj/amd64/sys/arch/amd64/compile/RATLIFF amd64
>Description:
When attempting to rebuild Mozilla Firefox 50.1.0 with PKG_OPTIONS.firefox+=oss set the build succeeds.
When attempting to rebuild Mozilla Firefox 50.1.0 with PKG_OPTIONS.firefox+=oss debug set the build fails in this way:

cd /d0/build/pkgsrc/www/firefox/work/firefox-50.1.0 && mkdir ../build
cd /d0/build/pkgsrc/www/firefox/work/firefox-50.1.0/../build && touch old-configure.vars
=> Generating pkg-config files for builtin libevent package.
=> Generating pkg-config file for builtin expat package.
Creating Python environment
New python executable in /d0/build/pkgsrc/www/firefox/work/build/_virtualenv/bin/python2.7
Also creating executable in /d0/build/pkgsrc/www/firefox/work/build/_virtualenv/bin/python
Installing setuptools, pip, wheel...done.
platform netbsd7 is not supported

Error processing command. Ignoring because optional. (optional:setup.py:python/psutil:build_ext:--inplace)
Reexecuting in the virtualenv
checking for a shell... /d0/build/pkgsrc/www/firefox/work/.tools/bin/sh
checking for host system type... x86_64-unknown-netbsd7.0
checking for target system type... x86_64-unknown-netbsd7.0
Traceback (most recent call last):
  File "/d0/build/pkgsrc/www/firefox/work/firefox-50.1.0/configure.py", line 94, in <module>
    sys.exit(main(sys.argv))
  File "/d0/build/pkgsrc/www/firefox/work/firefox-50.1.0/configure.py", line 22, in main
    sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
  File "/d0/build/pkgsrc/www/firefox/work/firefox-50.1.0/python/mozbuild/mozbuild/configure/__init__.py", line 241, in run
    self._value_for(option)
  File "/d0/build/pkgsrc/www/firefox/work/firefox-50.1.0/python/mozbuild/mozbuild/configure/__init__.py", line 305, in _value_for
    return self._value_for_option(obj)
  File "/d0/build/pkgsrc/www/firefox/work/firefox-50.1.0/python/mozbuild/mozbuild/util.py", line 924, in method_call
    cache[args] = self.func(instance, *args)
  File "/d0/build/pkgsrc/www/firefox/work/firefox-50.1.0/python/mozbuild/mozbuild/configure/__init__.py", line 370, in _value_for_option
    % (e.arg, reason, e.old_arg, e.old_origin))
mozbuild.configure.options.InvalidOptionError: '--enable-debug-symbols=-g -O0 -fvar-tracking-assignments -fvar-tracking' implied by '--enable-debug' conflicts with '--enable-debug-symbols' from the command-line
*** Error code 1

Stop.
make[1]: stopped in /d0/nbsd/pkgsrc/www/firefox
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/firefox
1052 [roy@ratliff:../pkgsrc/www/firefox]$
>How-To-Repeat:
How to repeat the problem:
Attempt to build firefox-50.1.0 with PKG_OPTIONS.firefox+=oss debug set.
>Fix:
Not known to me.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Tue, 31 Jan 2017 08:50:17 +0000
Responsible-Changed-Why:
Ryo, can you please give it a look?
(over to MAINTAINER)


From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51927 CVS commit: pkgsrc/www/firefox
Date: Sat, 4 Feb 2017 11:12:04 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Sat Feb  4 11:12:04 UTC 2017

 Modified Files:
 	pkgsrc/www/firefox: options.mk

 Log Message:
 firefox: fix debug build. don't pass --enable-debug-symbols in debug option.
 as we do it, we create conflicting flags, and configure complains.

 PR pkg/51927


 To generate a diff of this commit:
 cvs rdiff -u -r1.33 -r1.34 pkgsrc/www/firefox/options.mk

 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: dholland@NetBSD.org
State-Changed-When: Tue, 14 Mar 2017 06:26:17 +0000
State-Changed-Why:
Is this fixed?


From: roy@betweentheleaves.com
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/51927 (firefox build fails with "debug" option)
Date: Tue, 14 Mar 2017 07:59:27 -0700

 On 2017-03-13 23:26, dholland@NetBSD.org wrote:
 > Synopsis: firefox build fails with "debug" option
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Tue, 14 Mar 2017 06:26:17 +0000
 > State-Changed-Why:
 > Is this fixed?
 Yes.  I successfully built firefox with the debug option. That problem 
 is fixed. However firefox continues to crash for reasons I do not 
 understand. Here are some data I collected:

 firefox_crash_2017/01/31@0815
 gdb results are:

 Core was generated by `firefox'.
 Program terminated with signal SIGSEGV, Segmentation fault.
 #0  0x00007f7ff690e6fa in ?? ()
 (gdb) bt
 #0  0x00007f7ff690e6fa in ?? ()
 #1  0x00007f7ff3c852f6 in ?? ()
 #2  0x0000000000000400 in ?? ()
 #3  0x0000000000000000 in ?? ()
 (gdb) quit
 1059 [roy@ratliff:~]$

 andthis:

 Core was generated by `firefox'.
 Program terminated with signal SIGSEGV, Segmentation fault.
 #0  0x00007f7ff690e6fa in ?? ()
 (gdb) bt
 #0  0x00007f7ff690e6fa in ?? ()
 #1  0x00007f7ff3c813e6 in ?? ()
 #2  0x0000000000000400 in ?? ()
 #3  0x0000000000000000 in ?? ()
 (gdb) quit
 1032 [roy@ratliff:/d2/home/roy]$ date
 Tue Mar  7 16:02:14 MST 2017
 1033 [roy@ratliff:/d2/home/roy]$

 I filed a PR on this:
 Thank you very much for your problem report.
 It has the internal identification `pkg/51966'.
 The individual assigned to look at your
 report is: pkg-manager.

      Category:       pkg
      Responsible:    pkg-manager
      Synopsis:       firefox crashes frequently
      Arrival-Date:   Sun Feb 12 20:40:00 +0000 2017

 Hope this helps

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 15 Mar 2017 09:04:46 +0000
State-Changed-Why:
This issue is fixed. (I saw 51966 but I have no idea what's going on so I
didn't say anything)


>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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.