NetBSD Problem Report #49350

From tsutsui@ceres.dti.ne.jp  Sat Nov  1 04:08:10 2014
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(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 44DA7A66AB
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  1 Nov 2014 04:08:10 +0000 (UTC)
Message-Id: <201411010408.sA14851q002654@mirage.localdomain>
Date: Sat, 1 Nov 2014 13:08:05 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: inconsistent GCC_REQD for c++11 nullptr
X-Send-Pr-Version: 3.95

>Number:         49350
>Category:       pkg
>Synopsis:       inconsistent GCC_REQD for c++11 nullptr
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ryoon
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 01 04:10:00 +0000 2014
>Last-Modified:  Thu Jan 01 08:35:00 +0000 2015
>Originator:     Izumi Tsutsui
>Release:        NetBSD 6.1.5 + pkgsrc updated around 20141101
>Organization:
>Environment:
System: NetBSD/i386 6.1.5
Architecture: i386
Machine: i386
>Description:
inputmethod/mozc-server/Makefile.common says:
---
USE_LANGUAGES=  c c++
# nullptr requires -std=c++11, and -std=c++11 requires gcc 4.7 or later
GCC_REQD+=      4.7
CXXFLAGS+=      -std=c++11
---

but www/firefox/mozilla-common.mk claims:
---
# GCC 4.6 is required to support nullptr.
GCC_REQD+=              4.6
---

so annoying large two sets of gcc versions are built and installed
for these major two packages only to handle nullptr in a few sources.

>How-To-Repeat:
Build the above two packages on NetBSD/i386 6.1.5.

>Fix:
For now, I would like to change www/firefox/mozilla-common.mk
to have GCC_REQD=4.7 as mozc-server/Makefile.common at least
for NetBSD 6.x because 
 - firefox-33.x is not in the pkgsrc-20xxQn releases yet
 - there is a report gcc 4.6 is broken on NetBSD 6.x:
   http://mail-index.netbsd.org/tech-pkg/2014/10/22/msg013717.html

In the perfect world, someone[tm] will prepare some magic .mk file
which handles "requirement of c++11 nullptr"?

---

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Sun, 02 Nov 2014 10:04:31 +0000
Responsible-Changed-Why:
Over to maintainer.


From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Cc: 
Subject: Re: pkg/49350: inconsistent GCC_REQD for c++11 nullptr
Date: Tue, 04 Nov 2014 05:28:59 +0900 (JST)

 Hi,

 From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>, Date: Sat,  1 Nov 2014 04:10:04 +0000 (UTC)

 >>Number:         49350
 >>Category:       pkg
 >>Synopsis:       inconsistent GCC_REQD for c++11 nullptr
 >>Confidential:   no
 >>Severity:       non-critical
 >>Priority:       medium
 >>Responsible:    pkg-manager
 >>State:          open
 >>Class:          change-request
 >>Submitter-Id:   net
 >>Arrival-Date:   Sat Nov 01 04:10:00 +0000 2014
 >>Originator:     Izumi Tsutsui
 >>Release:        NetBSD 6.1.5 + pkgsrc updated around 20141101
 >>Organization:
 >>Environment:
 > System: NetBSD/i386 6.1.5
 > Architecture: i386
 > Machine: i386
 >>Description:
 > inputmethod/mozc-server/Makefile.common says:
 > ---
 > USE_LANGUAGES=  c c++
 > # nullptr requires -std=c++11, and -std=c++11 requires gcc 4.7 or later
 > GCC_REQD+=      4.7
 > CXXFLAGS+=      -std=c++11
 > ---
 > 
 > but www/firefox/mozilla-common.mk claims:
 > ---
 > # GCC 4.6 is required to support nullptr.
 > GCC_REQD+=              4.6
 > ---

 nullptr requires -std=c++03 really. It was my misunderstanding.
 GCC_REQD in mozc-server should be 4.6.

 > so annoying large two sets of gcc versions are built and installed
 > for these major two packages only to handle nullptr in a few sources.
 > 
 >>How-To-Repeat:
 > Build the above two packages on NetBSD/i386 6.1.5.
 > 
 >>Fix:
 > For now, I would like to change www/firefox/mozilla-common.mk
 > to have GCC_REQD=4.7 as mozc-server/Makefile.common at least
 > for NetBSD 6.x because 
 >  - firefox-33.x is not in the pkgsrc-20xxQn releases yet
 >  - there is a report gcc 4.6 is broken on NetBSD 6.x:
 >    http://mail-index.netbsd.org/tech-pkg/2014/10/22/msg013717.html
 > 
 > In the perfect world, someone[tm] will prepare some magic .mk file
 > which handles "requirement of c++11 nullptr"?
 > 
 > ---

 Under my netbsd-6/amd64 chroot test environment on NetBSD/amd64 7.99.1,
 lang/gcc46 is built without any error.
 I will build lang/gcc46 under NetBSD 6.1.4 virtual machine later.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: ryoon@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/49350: inconsistent GCC_REQD for c++11 nullptr
Date: Tue, 4 Nov 2014 01:48:49 +0100

 On Mon, Nov 03, 2014 at 08:30:00PM +0000, Ryo ONODERA wrote:
 >  nullptr requires -std=c++03 really. It was my misunderstanding.
 >  GCC_REQD in mozc-server should be 4.6.

 nullptr is certainly post-C++03, but likely accepted in default mode.
 It was one of the first features supported by GCC, so 4.6 sounds about
 right.

 Joerg

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/49350: inconsistent GCC_REQD for c++11 nullptr
Date: Tue, 11 Nov 2014 20:40:40 +0900

 > nullptr requires -std=c++03 really. It was my misunderstanding.
 > GCC_REQD in mozc-server should be 4.6.

 One my concern is there is no gcc46-libs package.
 (i.e. whole gcc46 package binaries are required)

 > Under my netbsd-6/amd64 chroot test environment on NetBSD/amd64 7.99.1,
 > lang/gcc46 is built without any error.
 > I will build lang/gcc46 under NetBSD 6.1.4 virtual machine later.

 I've just tried to build pkgsrc-2014Q3 lang/gcc46 on
 NetBSD/i386 6.1.5 and NetBSD/amd64, then there is no error.
 (so there might be some environment specific problem)

 ---
 Izumi Tsutsui

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49350: inconsistent GCC_REQD for c++11 nullptr
Date: Thu, 01 Jan 2015 17:33:35 +0900 (JST)

 Hi,

 I had silently fixed GCC_REQD pattern of mozc-server. Sorry.
 And we have now gcc46-libs.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

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