NetBSD Problem Report #53429

From tsutsui@ceres.dti.ne.jp  Sun Jul  8 00:29:16 2018
Return-Path: <tsutsui@ceres.dti.ne.jp>
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 1936A7A158
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  8 Jul 2018 00:29:16 +0000 (UTC)
Message-Id: <201807080028.w680Skpd025771@ceres.dti.ne.jp>
Date: Sun, 8 Jul 2018 09:28:46 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: pkgsrc/www/firefox 61.0.1 doesn't start on NetBSD/amd64 8.0_RC2
X-Send-Pr-Version: 3.95

>Number:         53429
>Category:       pkg
>Synopsis:       pkgsrc/www/firefox 61.0.1 doesn't start on NetBSD/amd64 8.0_RC2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ryoon
>State:          needs-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 08 00:30:00 +0000 2018
>Closed-Date:    
>Last-Modified:  Sat Jul 21 18:04:57 +0000 2018
>Originator:     Izumi Tsutsui
>Release:        NetBSD 8.0_RC2 + pkgsrc-2018Q2 + firefox updates
>Organization:
>Environment:
System: NetBSD mirage 8.0_RC2 NetBSD 8.0_RC2 (GENERIC) #0: Mon Jun 25 13:01:26 UTC 2018 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
firefox 61.0.1 built on NetBSD/amd64 8.0_RC2 (which has gcc 5.5.0
so pkgsrc firefox requires pkgsrc pkgsrc/lang/gcc6) fails to start
as following:

% /usr/pkg/bin/firefox
/usr/lib/libstdc++.so.7: version CXXABI_1.3 required by /usr/pkg/lib/firefox/firefox not defined
%

Note /usr/lib/libstdc++.so.7 comes from NetBSD 7.1.2 before 8.0_RC2
updates.

>How-To-Repeat:
- cvs checkout pkgsrc-2018Q2
- apply following updates for firefox 61.0.1 builds
 http://mail-index.netbsd.org/pkgsrc-changes/2018/07/06/msg178009.html
 http://mail-index.netbsd.org/pkgsrc-changes/2018/07/06/msg178010.html
- make package-install
- exec /usr/pkg/bin/firefox

>Fix:
No idea, but I've been suggested as the following:

>> netbsd>=8 gcc is built with --disable-libstdcxx-dual-abi and
>> has a major number of 8, pkgsrc should probably follow the same.

>> libstdc++ had to break backwards compatibility for C++11, and
>> they tried to provide a library which does the old code and
>> the new at the same time. it is very hard to comprehend problems
>> that arise from it. so joerg increased the major number by 1.
>> pkgsrc gcc didn't yet

On the other hand, firefox package doesn't seem to have a dependency
against gcc6-libs.  I wonder if USE_PKGSRC_GCC_RUNTIME (defined in
pkgsrc/mk/compiler/gcc.mk) is necessary of not.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Sun, 08 Jul 2018 08:23:56 +0000
Responsible-Changed-Why:
Ryo, can you please give it a look?
(over to MAINTAINER)


From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/53429: pkgsrc/www/firefox 61.0.1 doesn't start on NetBSD/amd64
	 8.0_RC2
Date: Wed, 11 Jul 2018 01:07:10 +0900

 Adding "USE_PKGSRC_GCC_RUNTIME= yes" in mozilla.mk
 works around, i.e. /usr/pkg/lib/firefox pulls
 /usr/lib/libstdc++.so.8 rather than /usr/lib/libstdc++.so.7
 from NetBSD 7.x.
 (I'm not sure if it's intended behavior though)

From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53429 CVS commit: pkgsrc/www/firefox
Date: Sun, 15 Jul 2018 23:15:02 +0000

 Module Name:	pkgsrc
 Committed By:	ryoon
 Date:		Sun Jul 15 23:15:02 UTC 2018

 Modified Files:
 	pkgsrc/www/firefox: Makefile mozilla-common.mk

 Log Message:
 Fix PR pkg/53429. Use libstdc++ from pkgsrc gcc61-libs to fix runtime error
 BUmp PKGREVISION


 To generate a diff of this commit:
 cvs rdiff -u -r1.337 -r1.338 pkgsrc/www/firefox/Makefile
 cvs rdiff -u -r1.111 -r1.112 pkgsrc/www/firefox/mozilla-common.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->needs-pullups
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 21 Jul 2018 18:04:57 +0000
State-Changed-Why:
Need this in 2018Q2.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.